‎2011 Nov 30 9:21 AM
Hi experts,
I have a Report with selection-screen. How can I catch the fcode when press f8 or f3 or any funktion button. Normally it is in sy-ucomm but when I push after showing alv or list it comes to initialization and sy-ucomm ist empty. is there any way or any FM to catch the fcode?
best regards
rana
‎2011 Nov 30 9:30 AM
Hi
What do you mean?
After going out from a list the program goes back to selection-screen: this is a normal behavior so which fcode you need to check?
Max
‎2011 Nov 30 9:30 AM
Hi
What do you mean?
After going out from a list the program goes back to selection-screen: this is a normal behavior so which fcode you need to check?
Max
‎2011 Nov 30 9:38 AM
hi,
Thanks for your reply. you are write that After going out from a list the program goes back to selection-screen. But first it comes to INITIALIZATION and prepare the screen once again. I have done some coding in INITIALIZATION Block.I want that when I press F3 or back icon that I can tell the system that it is fcode for back and do nothing. For this i need the fcode of the system. I hope that I was able to explain clearly.
best regards,
rana
‎2011 Nov 30 9:45 AM
Hi
Which kind of list you're using?
If you're using the ALV you can check what the user did by exporting parameters E_EXIT_CAUSED_BY_CALLER and
ES_EXIT_CAUSED_BY_USER, if it's normal abap list....I believe you need to manage an your own gui status.
Max
‎2011 Nov 30 9:54 AM
Hi,
Thanks for your Reply. I wnated to avoid that way When I have to do it one Question should I have to create the whole status or I can manipulate it for some buttons.
best regards,
rana
‎2011 Nov 30 10:32 AM
Hi
The problem is standard gui for ABAP LIST is managed by the system so I don't believe you can intercept it in your program, and when the INITIALIZATION is triggered I believe it's too late: because the program starts again, so it's like the program works for the first time.
I think you can try to set some parameter in ABAP memory in order to know if the program runs the first time or after pressing back, now it needs to know what you need to do in order to decide where the memory can be filled.
Max
‎2011 Dec 02 12:29 PM
hi,
Thanks for your Idea. I have set a flag in event at-selection-screen and this is the flag for proramm sart.In Event at-selection-screen I have cleared the all required fields from abap memory. Now the functions good.
best regards
rana
‎2011 Nov 30 9:35 AM
Hi,
You can see the fcode by debugging.
Come the selction screen and give the parameter i.e input values on selection.
command lien give /H for debugging and click on the button for which u want to find teh fcode.
It will lead to debug mode. There u can find the fucntion code for the particular action.
Regards,
Pravin
‎2011 Dec 02 12:30 PM