‎2010 Jan 24 6:50 AM
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 .
‎2010 Jan 25 5:19 AM
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.
‎2010 Jan 25 8:35 AM