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

problem with coding in badi WORKORDER_GOODSMVTmethod

Former Member
0 Likes
392

Hi ,

i have a problem in coding in a badi method . i have to use IT_ORDER_POSITION parameter and it has AUFNR

feild . I have to check aufnr in table mseg .

the statement like

if  IT_ORDER_POSITION-aufnr = 'xyz' .

are invalid and system replies ' IT_ORDER_POSITION is not a atble with header line ' and also im unable to use field AUFNR as system says aufnr not defined in data . Plz tell how i can code using this variables in badi method.

Regards .

2 REPLIES 2
Read only

Former Member
0 Likes
371

Hi!

you must read data in work area before


DATA:
WA_ORDER_POSITION TYPE AAFPO.

LOOP AT IT_ORDER_POSITION INTO WA_ORDER_POSITION.

*WA_ORDER_POSITION-AUFNR -  you order
ENDLOOP.

Read only

Former Member
0 Likes
371

ok