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

Screen Design Save Data - Query

Former Member
0 Likes
397

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.

2 REPLIES 2
Read only

Former Member
0 Likes
367

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.

Read only

Former Member
0 Likes
367

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