2012 Feb 13 8:49 AM
Hi experts,
I am performing an enhancement on me21n. I have found the required user-exit and would like to pick up the value from the screen field of material (MEPO1211-EMATN). I have found that that field has a parameter 'MAT' on it. How do i fetch the value from that parameter. I have used the following but it is not working.
DATA: pmat TYPE mepo1211-ematn.
GET PARAMETER ID 'MAT' FIELD pmat.
Thanks in advance guys.
2012 Feb 13 9:42 AM
Hi,
If you have found the correct user-exit, then screen field itself(MEPO1211-EMATN) will be having the value in it.
Try it and check.
Regards,
Harsh Bansal
2012 Feb 13 9:48 AM
Its not coming there. But i checked the import parameters and it worked.
Thanks.
2012 Feb 13 10:13 AM
2012 Feb 14 7:03 AM
Check the tables/import/export tabs in the include program used in exit.
maybe you will get your solution there.
2012 Feb 14 3:30 PM
Hi,
you can use field symbols to fetch the screen values.
eg.
FIELD_SYMBOLS : <FS> type ANY.
eg. ASSIGN ('<(PROGRAM NAME>)SCREEN FIELD') INTO <FS>.
if you use SET/GET parameter you are getting values from SAP memory. which means if some other users put values from another session you will get a different value using SET/GET parameter.
regards
aromal
2012 Feb 15 6:33 AM
Hi,
Try with
FIELD-SYMBOLS : <fs_ematn> TYPE ANY.
ASSIGN ('(SAPLMEGUI)MEPO1211-EMATN') INTO <fs_ematn>.
You will get the value of EMATN in variable <fs_ematn>.