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: 

Assign value screen to my code.

ronaldo_aparecido
Contributor
0 Kudos

Hi gurus.

I need pass this scrren value to my code by field symbols:

I'm in include , inside of exit.

I think could be

FIELD-SYMBOLS <t1> TYPE any.

   ASSIGN '(EKKO_CI-Z_PEDARIB)SAPLMEGUI' TO <t1>.



Somebody can help me please.

Thanks.

1 ACCEPTED SOLUTION

fsandovalz1
Explorer
0 Kudos

the correct orden should be: '(program name)variable'.

example:

    DATA: l_name(50).
DATA: lv_kunde TYPE ref_kunnr.
FIELD-SYMBOLS: <tkomv> TYPE ref_kunnr.

l_name
= '(SAPMF02D)RF02D-REF_KUNNR'.
ASSIGN (l_name) TO <tkomv>.
IF sy-subrc = 0.
lv_kunde
= <tkomv>.
MESSAGE lv_kunde TYPE 'S'.
ENDIF.

3 REPLIES 3

fsandovalz1
Explorer
0 Kudos

the correct orden should be: '(program name)variable'.

example:

    DATA: l_name(50).
DATA: lv_kunde TYPE ref_kunnr.
FIELD-SYMBOLS: <tkomv> TYPE ref_kunnr.

l_name
= '(SAPMF02D)RF02D-REF_KUNNR'.
ASSIGN (l_name) TO <tkomv>.
IF sy-subrc = 0.
lv_kunde
= <tkomv>.
MESSAGE lv_kunde TYPE 'S'.
ENDIF.

0 Kudos

thanks fernando but how put scrren number  in this case ?

0 Kudos

You should use program name SAPLXM06 instead of the GUI, screen number is not necessary, also you can debug transaction and get the value from another point in the process.