on ‎2019 Nov 27 1:55 PM
Hi Friends,
I need some help in transformation file writing Nested If statement. Below is the requirement:
FAREA=*If (ZBPC_CCN = *str() [& ACCTYPE property in BPC for ACCOUNT dimension is NOT equal to EXP] then ZBPC_AREA; [if ZBPC_CCN is NOT blank (has a value) & ACCTYPE property in BPC for ACCOUNT dimension IS equal to EXP then] ZBPC_AREA+ZBPC_CCN)
We tried writing the above requirement like below:
FAREA=*If ((ZBPC_CCN = *str() & ACCOUNT.ACCTYPE <> EXP) then ZBPC_AREA;*If (ZBPC_CCN <> *str() & ACCOUNT.ACCTYPE = EXP) then ZBPC_AREA+ZBPC_CCN))
It is not getting validated.
Can some body help us writing the correct statement please.
Request clarification before answering.
My client has withdrawn the request as the requirement is not clear with him.. Thanks, Vadim.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vadim... highly appreciate your prompt response. Glad to have see you as an SME in BPC area and looking to get more help from you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for replying, Vadim..
Here is my full requirement:
Original line:
FAREA=*If (ZBPC_CCN = *str() then ZBPC_AREA;ZBPC_AREA+ZBPC_CCN)
#1 Option for enhancement:
FAREA=*If (ZBPC_CCN = *str() [& ACCTYPE property in BPC for ACCOUNT dimension is NOT equal to EXP] then ZBPC_AREA; [if ZBPC_CCN is NOT blank (has a value) & ACCTYPE property in BPC for ACCOUNT dimension IS equal to EXP then] ZBPC_AREA+ZBPC_CCN)
Or the above condition can also be replaced with the below requirement
#2 Option for enhancement
FAREA=*If (ZBPC_CCN = *str() & ZBPC_ACCT falls in the range of NOT equal to 5* to 8* then ZBPC_AREA; [if ZBPC_CCN is NOT blank (has a value) & ZBPC_ACCT falls in the range of 5* to 8* then] ZBPC_AREA+ZBPC_CCN)
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Second option is not clear:
ZBPC_CCN = *str() & ZBPC_ACCT falls in the range of NOT equal to 5* to 8* then ZBPC_AREA
What do you want to have if ZBPC_CCN = *str() & ZBPC_ACCT falls in the range of 5* to 8* then ZBPC_AREA??
ZBPC_CCN is NOT blank (has a value) & ZBPC_ACCT falls in the range of 5* to 8* then ZBPC_AREA+ZBPC_CCN
What do you want to have if ZBPC_CCN is NOT blank (has a value) & ZBPC_ACCT falls in the range of NOT equal to 5* to 8* then ZBPC_AREA???
You have 4 combinations!
You can't reference ACCTYPE property of BPC ACCOUNT - transformation file have no idea about BPC properties!
Something can be done in ROUTINE BADI, but you have to clearly explain your requirements with samples!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for replying, Vadim..
Here is my full requirement:
Original line:
FAREA=*If (ZBPC_CCN = *str() then ZBPC_AREA;ZBPC_AREA+ZBPC_CCN)
#1 Option for enhancement:
FAREA=*If (ZBPC_CCN = *str() [& ACCTYPE property in BPC for ACCOUNT dimension is NOT equal to EXP] then ZBPC_AREA; [if ZBPC_CCN is NOT blank (has a value) & ACCTYPE property in BPC for ACCOUNT dimension IS equal to EXP then] ZBPC_AREA+ZBPC_CCN)
Or the above condition can also be replaced with the below requirement
#2 Option for enhancement
FAREA=*If (ZBPC_CCN = *str() & ZBPC_ACCT falls in the range of NOT equal to 5* to 8* then ZBPC_AREA; [if ZBPC_CCN is NOT blank (has a value) & ZBPC_ACCT falls in the range of 5* to 8* then] ZBPC_AREA+ZBPC_CCN)
Thanks,
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.