Skip to Content
0
Former Member
Dec 02, 2005 at 12:39 PM

How to capture a screen field in a userexit

326 Views

Hi Every one,

I am working out on an userexit.

The program name and screen field of eeind is different for me21 and me21n.

I tried to get delivery date ( which is not available in my exit interface parameters)

For me21 the program name is SAPMM06E , screen number is 120 and screen field is RM06E-EEIND .

But for me21n the program name is SAPLMEGUI , screen number is 1211 and screen field is MEPO1211-EEIND.

Therefore i did something like this in ur user exit

FIELD-SYMBOLS: <fs_eeind> TYPE ANY ,

if sy-tcode eq 'ME21'.

ASSIGN ('(SAPMM06E)'RM06E-EEIND) TO <fs_eeind>.

else if sy-tcode eq 'ME21N'.

ASSIGN ('(SAPLMEGUI)'MEPO1211-EEIND) TO <fs_eeind>.

endif.

data : del_date type d.

d = <fs_eeind>.

unassign <fs_eeind>.

This is working fine In ME21.

But i am not able to get the same from enjoy version (ME21N)same logic is not working...

It is fetching empty value to Field symbol..

So it is also not giving sy-subrc = 4 etc.

It is executing but it is not reading value...

So any body can help in this regard wud be greatful to me.

Thanks in advance

Raja.