on 2016 Sep 13 8:23 PM
Dear Experts,
I have a typical requirement as follows -
For one of the Dimension, I need to map based on the following Criteria -
IF PMAG = "" AND PGMRU = "" THEN PMRU
IF PMAG = "" AND PGMRU <> "" THEN PGMRU
IF PMAG <> "" THEN PMAG
In Mapping section of Transformation File i wrote the code as follows -
Method 1 - If Condition within IF
PRODUCT = *IF(PMAG=*STR() THEN (IF PGMRU=*STR() THEN PMRU; PGMRU); PMAG)
When I did a Validate & Transform TF without selecting any BW Cube, it saved without any errors. But when I try to by selecting the proper cube, given me an error COL(
Method 2- By Giving * in STR
PRODUCT = *IF(PMAG=*STR(*) THEN PMAG; PGMRU=*STR() THEN PMRU; PGMRU)
It didn't throw any error during V & P, but when I try to execute the package then it threw error STR(*
Method 3- By entering <> or !=
PRODUCT = *IF(PMAG =!*STR() THEN PMAG; PGMRU=*STR() THEN PMRU; PGMRU) - Thrown Syntax Error
PRODUCT = *IF(PMAG NOT=*STR() THEN PMAG; PGMRU=*STR() THEN PMRU; PGMRU) - Thrown Syntax Error
Any suggestion...
Thanks in advance.
Sreeni.
Request clarification before answering.
Just read help: Data Transformation Maintenance - SAP BusinessObjects Planning and Consolidation - SAP Library
PRODUCT = *IF(PMAG+PGMRU=*STR() THEN PMRU; PMAG=*STR() THEN PGMRU; PMAG)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Thanks for the response... but there is something missing in the statement -
In your statement -
PMAG+PGMRU = *STR() = PMRU - Fulfilled 1st Condition
PMAG = *STR() = PGMRU - Seems this is wrong as it is not looking at PGMRU.. My Requirement is PMAG= "" & PGMRU <> "" then PGMRU...
I'm not sure whether I understood something differently in your 2nd statement. Could you please reconfirm.
Regards,
Sreeni.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 6 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.