Hello, i need a little help with abap code in transformation at field routine. I have written a code successfully but now i need to modify a little bit. i am reading another dso and populating the field which works fine. now i want to test three fields coming from source and if those three are blank i want the result to be automatically '0'. here is what i have done but getting errors:
IF SOURCE_FIELDS-ZMARG1
SOURCE_FIELDS- ZMARG2
SOURCE_FIELD-ZMARG3 NE '0'.
READ TABLE IT_ZPUR WITH KEY
MATERIAL = SOURCE_FIELDS-MATNR
INTO WA_ZPUR.
IF SY-SUBRC = 0.
RESULT = WA_PUR-/BIC/ZPUR_ZCHY1.
ENDIF.
ELSEIF.
RESULT = '0'.
I keep getting "Statement Source_Fields-ZMARG2 not defined".
Please help.
Thanks.