Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

BW Transformation help

$
0
0

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.


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>