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

fcode in Selection-screen

Former Member
0 Likes
1,155

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,071

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,072

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

Read only

0 Likes
1,071

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

Read only

0 Likes
1,071

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

Read only

0 Likes
1,071

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

Read only

0 Likes
1,071

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

Read only

0 Likes
1,071

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

Read only

Former Member
0 Likes
1,071

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

Read only

Former Member
0 Likes
1,071

Thank you max it was a good tip.