Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

If Condition - Mapping MD !!

$
0
0

Hello ,

 

I have a requirement where i need to check a condition and assign to another column as below.

Object MTYPE  has 4 values 1 , 2 ,3 & 4

TPHIER  has 1001, 1003, 1022 ,2093,2022,2067 ,3032 ,4023

 

TPHIER should be transfered as it is for all the values to HIER (BPC) , however when it is 1022  the TYPE should be assigned as 4 .

 

Transformation:

*OPTIONS

FORMAT = DELIMITED

HEADER = YES

DELIMITER = ,

AMOUNTDECIMALPOINT = .

SKIP = 0

SKIPIF =

VALIDATERECORDS=YES

CREDITPOSITIVE=YES

MAXREJECTCOUNT=

ROUNDAMOUNT=

 

 

*MAPPING

ID=0CO_AREA+ID

TYPE= MTYPE

HIER = TPHIER

 

 

*CONVERSION

ID=Costcenter

 

Can i achieve this with  HIER = *IF(TPHIER=*STR(1022) THEN  TYPE = *STR(4);TPHIER)  in transformation or can Conversion achieve this and how ?

 

Yours suggestions are much appreciated.

 

Regards

Ram


Viewing all articles
Browse latest Browse all 5414

Trending Articles