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

Assign value screen to my code.

ronaldo_aparecido
Contributor
0 Likes
965

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
Read only

fsandovalz1
Explorer
0 Likes
935

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.

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.

3 REPLIES 3
Read only

fsandovalz1
Explorer
0 Likes
936

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.

Read only

0 Likes
935

thanks fernando but how put scrren number  in this case ?

Read only

0 Likes
935

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.