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

Former Member
0 Likes
1,163

Hi all experts...

I have the following code:

I access this code by entering ME23N then clicking on tab Order History then clicking on the material.

The problem is that ('(SAPLMEGUI)MEPO_TOPLINE-BSART') assigns blank to <fs1>.

Then I get an error later when it tries to move <fs1> to wa_bsart.

I don't know why the content from mepo_topline is not being assigned to the field symbol...

Can anyone help me??

Thanks!!!

-


ENHANCEMENT 5 ZSCREEN_OUT. "active version

*COBL-KOSTL OUT.

IF SY-TCODE = 'ME21N' OR SY-TCODE = 'ME22N' OR SY-TCODE = 'ME23N'.

DATA: WA_BSART LIKE EKKO-BSART,

WA_KNTTP LIKE EKPO-KNTTP.

CLEAR: WA_BSART, WA_KNTTP.

FIELD-SYMBOLS: <fs1> TYPE ANY,

<fs2> TYPE ANY.

ASSIGN: ('(SAPLMEGUI)MEPO_TOPLINE-BSART') TO <fs1>,

('(SAPLMEACCTVI)MEACCT1200-KNTTP') TO <fs2>.

MOVE <fs1> TO WA_BSART.

MOVE <fs2> TO WA_KNTTP.

*PEDIDO CENTRAL. MATERIAL

IF WA_BSART = 'NB' AND WA_KNTTP = 'K'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'COBL-KOSTL'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

ENDENHANCEMENT.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
727

Hi ,

try like : ASSIGN: ((SAPLMEGUI)MEPO_TOPLINE-BSART) TO <fs1>

regards,

Himanshu

1 REPLY 1
Read only

Former Member
0 Likes
728

Hi ,

try like : ASSIGN: ((SAPLMEGUI)MEPO_TOPLINE-BSART) TO <fs1>

regards,

Himanshu