Hello Adraino,
The code I gave you is a rare, apt and perhaps only solution. This involved discovery of the Function module used. I'm a bit disappointed that you are yet to make use of it .
If an ABAPer is with you, it is 2 minute job. Now it is a sort of user-exit tutorial for me.
- All this needs to be done in 210DEV during which you will be generating a Transport request which you will transport to other clients.
- Create a project say ZPMIWO--> tcode CMOD --> Create ---> Give Short text --> Click on Save
- Click on Enhancements Assignments button and give IWO10009 in the field --> Save
- Come back to Initial screen and Activate.
- Now run tcode SMOD --> Give value IWO10009 --> Display --> Components --> Double click on function module EXIT_SAPLCOIH_009 --> Double click on include ZXWOCU07. IF not created earlier system asks you to create which you'll agree and continue.
- now you are in the include. (If you are in Display mode turn on change mode by clicking on Change icon).
- Here you copy paste the code given to you and Activate. (Please remeber that you need to give your logic to retrieve PARNR value as already mentioned.)
Better get it done through ABAPer and match the procedure above. If this exit is already in use, then steps 1 to 4 are redundant.
Good luck
KJogeswaraRao