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

USER COMMAND CODE for the ICON "Back"

Former Member
0 Likes
752

Hello All,

I wanted to know if there is any command code for the user-command icon "back" that i can use while programming.

e.g. as for the icon "save" there is '&data_save' code which we can use.

I have used the code "&F03" for 'back" but it does not call the routine i have written for the same.

So if in case no other code for "Back" icon is available, what is the procedure to implement the "back" command through programming?

as when i click the icon,the code written inside the report should be executed along with the normal "back" function.

Thanks

5 REPLIES 5
Read only

former_member195383
Active Contributor
0 Likes
675

the function code is BACK

Read only

0 Likes
675

i have used that one already. it does not work. "back" does not follow the ususal "case" routine when clicked.

Read only

0 Likes
675

Actually u can set it to any value.....In PF-STATUS while configuring the function key u can give the function code there...

If u want to see the sy-ucomm wen u press back...then give /h and then press back. in debugging screen sy-ucomm value u can find out the value of sy-ucomm..then use the same in case statement

Reward points if the abv ans is useful...

Read only

0 Likes
675

Yes thats what i have done already which gave me the code "F03" for "Back" but that does not work when put in "case statement".

It does not go to the case statement for debugging,when clicked .

Thanks anyways.

Read only

0 Likes
675

Hi..

you do one thing..put /h. then click on back.At the bottom pART of the debugging screen u find

Field names section..There type sy-ucomm and press enter. The value of sy-ucomm can be seen...

Thats the value u need...Which u can use the same in case statement

and its case sensitive.chk the same.. and write it in quotes( ''). that is 'BACK' or 'F03'

Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 7:48 AM