‎2006 Dec 02 6:00 AM
Hi,
I have got screen with many fields and when i save the data by pressing save button. The data is getting saved successfully, and the cursor is highlighting in zfeestab-admnno, Over here at this screen field or any other screen field element if i press enter the system is re-accepting the SY-UCOMM for save code and re-saving the complete data again, which i dont want. I have cleared the OK_CODE of Like SY-UCOMM immediately after saving the data. After saving the data i have written the code as CLEAR OK_CODE. But still the system on any screen field is accepting the SY-UCOMM by default the last action triggered i.e, save data and is re-saving the same data.
Please assist on controlling the SY-UCOMM which is restoring the last user command input under it.
‎2006 Dec 02 6:07 AM
give declaration like this.
Data : ok_code like sy-ucomm,
save_ok like ok_code.
Module user_command_9000.
save_ok = ok_code.
clear ok_code.
case save_ok.
endcase.
Dont forget to give ok_code in element list of that screen.
‎2006 Dec 02 12:14 PM
Hi Sandeep,
you can clear the syst-ucomm variable only. Also as generic SAP standards after saving the data, the values in the Input fields are also cleared.
regards,
Mahesh