Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in module pool

Former Member
0 Likes
461

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
437

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

4 REPLIES 4
Read only

Former Member
0 Likes
437

usually the okcode is cleared in the PAI section.

Like...

MODULE USER_COMMAND_0100 INPUT.

  okcode_save = okcode.
  clear okcode.

  case okcode_save.
    ....

  endcase.

Read only

0 Likes
437

Hi Norman,

I've also tried this, but didn't work

Read only

Former Member
0 Likes
438

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

Read only

0 Likes
437

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.