2016 Jan 01 12:34 PM
Dear Experts,
In Table control Wizard, user perform's some action like 'Create' Push button, then user scrolls the tab in table control wizard the sy-ucomm remains same (previous action 'Create' ), so the data's created many times because of scrolling.
When user click (create So) push button (1) then scrolls the tab(pic 2nd position ) . sy-ucomm remains in create so pushbutton(sy-ucomm).
Tried by , after performing the (create so) pushbutton cleared the sy-ucomm but it remains same in while scrolling. Front end contents are scrolled but the order are created many times.
Kindly need guidance.
Regards,
Venkat.
Dear Experts,
In Table control Wizard, user perform's some action like 'Create' Push button, then user scrolls the tab in table control wizard the sy-ucomm remains same (previous action 'Create' ), so the data's created many times because of scrolling.
When user click (create So) push button (1) then scrolls the tab(pic 2nd position ) . sy-ucomm remains in create so pushbutton(sy-ucomm).
Tried by , after performing the (create so) pushbutton cleared the sy-ucomm but it remains same in while scrolling. Front end contents are scrolled but the order are created many times.
Kindly need guidance.
Regards,
Venkat.
2016 Jan 04 2:16 PM
2016 Jan 04 3:41 PM
Thank you replying Raymond.
Tried but not clearing.
Kindly see the steps i used .
In User command.
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'EXE'. " After selecting pushbutton.
CLEAR OK_CODE.
ENDCASE.
ENDMODULE.
After clicking scrolling ok_code is filled with 'EXE'.
Regards,
Venkat.
2016 Jan 04 3:56 PM
2016 Jan 05 6:30 AM
Ok_code is declared globally and i never used subscreen.
Regards,
Venkat.
2016 Jan 04 3:44 PM
Hi,
Usually, I move sy-ucomm to other variable and clean sy-ucomm. Ok_code for example.
2016 Jan 04 7:35 PM
Hi Venkat,
Write code like this -
Data: Ok_code like sy-ucomm,
ok_code_save like ok_code.
MODULE USER_COMMAND_0100 INPUT.
clear ok_code_save.
move ok_code to ok_code_save.
clear ok_code.
CASE OK_CODE_SAVE.
WHEN 'EXE'. " After selecting pushbutton.
....<Your Code>......
ENDCASE.
ENDMODULE.
Hope it will help you.
Regards,
2016 Mar 02 8:34 PM
I think you must clear sy-ucomm before the end of PAI module.
When you create a table wizard,
it generates a module for controlling the user command.
In this module, the first step is gv_ucomm = sy-ucomm.
When you scroll in the table,
in this module your gv_ucomm takes the valor of your last sy-ucomm.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |