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

Get parameter in User-Exit

Former Member
0 Kudos
1,442

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.

6 REPLIES 6
Read only

Harsh_Bansal
Contributor
0 Kudos
699

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

Read only

0 Kudos
699

Its not coming there. But i checked the import parameters and it worked.

Thanks.

Read only

Harsh_Bansal
Contributor
0 Kudos
699

Okay great.

Read only

Former Member
0 Kudos
699

Check the tables/import/export tabs in the include program used in exit.

maybe you will get your solution there.

Read only

aromalr
Active Participant
0 Kudos
699

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

Read only

Former Member
0 Kudos
699

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>.