‎2008 Jun 21 6:24 AM
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
‎2008 Jun 21 6:29 AM
‎2008 Jun 21 6:36 AM
i have used that one already. it does not work. "back" does not follow the ususal "case" routine when clicked.
‎2008 Jun 21 6:39 AM
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...
‎2008 Jun 21 6:43 AM
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.
‎2008 Jun 21 6:47 AM
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