Application Development 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: 

need to change the way Function module exit is called.

Former Member
0 Kudos

Dear Abaper,

I want to know wheather is it possible to change the way a function module exit is called.In transaction IK11 i am using enhancement imrc0001 this function module is called only when clicking the save button. My requirement will be met only when desired result is obtained while clicking ENTER button.Now the desired result are obtained by Clicking SAVE button. As a result only after saving i am able to view. Is there any way to change by clicking Enter button itself we can call the IMRC0001 enhancement. Please guide me.

Thanks and regards,

Omprasath

1 REPLY 1

naveen_kumar116
Active Participant
0 Kudos

Hi,

Each action in the screen have some FCODE(SY-UCOMM) in that exit u can add code when the particular button is clicked then run it or else no need to run.

For Example SAVE has user command as SAV+(SY-UCOMM)

u can restrict it as.

IF SY-UCOMM = 'SAVE+'.

Run ur code.

Endif.