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

Different Function Code for "SAVE" button

Former Member
0 Likes
1,867

Hi all,

I have a requirement to validate thge entries for the PO entered in the screens ME21,ME22,ME23,ME21n,ME22n,ME23n before saving the PO.

I have found the revelant EXIT for the validation.

Now the PO can be saved in different ways and through different screens from the above transactions.For eg from ME21 the user can go into the "Item detail specific screen" and "SAVE" the PO or can hit the "BACK" and press the "YES" button to save in the pop-message. Now this triggers different function codes for the "SAVE".

There might also be different other similar scenarios for saving the PO in different screens.

Can we capture all the function codes for the SAVE button before hand in the EXIT and validate the PO before saving for this function codes?

Is there any table which maintains this information from where it can be retrieved.Any other workaround for this?

Need your ideas on this.

Thanks,

stock

2 REPLIES 2
Read only

Former Member
0 Likes
881

hmmm are you really sure it´s a different fcode?

I´m quite sure once you hit "BACK" nad the hit "YES" your FCODE will be set to "SAVE" then.

Read only

Former Member
0 Likes
881

hi stock ,

i had the similar problem in DMS then what i did was i took all the ok-codes what were there for the revelent and put them in my code.................

the only solution i could get was this ....

you can go about by getting all the ok codes by pressing F1..........ask ur functional to give you different scenario's and try this is the only option i can suggest...................

To capture all the function codes you have to go to the se41 t-code give progname name as SAPLMEGUI and when you press f4 on the status yo will have these status avalable

APR

MECHOB

MEMASS

NORMAL

REQ

try hunting down all the revelent ok codes and best of luck.................