‎2006 Aug 10 2:24 PM
Hi,
I'm facing a problem in module pool, while editing the exit in standard transaction. The tabstrip is having module pool in it. on this screen, when i press ENTER, it generates the previously executed sy-ucomm.
For ex. if first time i insert one row in module pool, the empty row is inserted in the table control. After this when I press enter, it inserts one more empty row on this event.
This is a standard transaction, so I can't edit the menu.
Also I tried clearing sy-ucomm & function codes in the PBO, but no success.
Please help me with it.
‎2006 Aug 10 2:31 PM
Hi Hemath,
If I understand you correctly this is your problem.
Your are developing one user-exit which need to develop a subscreen , inside that you have table control , for adding rows you have a button , on clicking on that you are adding new rows, after this if you are pressing again it is creating new rows.
Then Try like this.
Try to clear the SY-UCOMM value in PAI of that subscreen after handling the sy-ucomm.
Or post your part of code .
Regards,
Raghav
‎2006 Aug 10 2:29 PM
usually the okcode is cleared in the PAI section.
Like...
MODULE USER_COMMAND_0100 INPUT.
okcode_save = okcode.
clear okcode.
case okcode_save.
....
endcase.
‎2006 Aug 10 2:31 PM
‎2006 Aug 10 2:31 PM
Hi Hemath,
If I understand you correctly this is your problem.
Your are developing one user-exit which need to develop a subscreen , inside that you have table control , for adding rows you have a button , on clicking on that you are adding new rows, after this if you are pressing again it is creating new rows.
Then Try like this.
Try to clear the SY-UCOMM value in PAI of that subscreen after handling the sy-ucomm.
Or post your part of code .
Regards,
Raghav
‎2006 Aug 10 2:33 PM
I've even tried this. I've cleared SY-UCOMM in PAI after handling the event as well as in PBO before coming to the screen.