on ‎2018 Feb 28 12:44 PM
Hi Expert
My below script logic is in Default.LGF
Further part of my script which I have marked in bold and after *ELSE is not working
*XDIM_MEMBERSET RPTCURRENCY = USD
*XDIM_MEMBERSET MEASURES = YTD
*XDIM_MEMBERSET FLOW = F_ACTIVITY
*XDIM_MEMBERSET DATASRC = DS_LOAD,DS_INPUT
*WHEN DATASRC
*IS DS_INPUT
*WHEN ACCOUNT
*IS USO_15000
*REC(FACTOR = 1,DATASRC = DS_CALC,ACCOUNT = 15000)
*ELSE
*WHEN DATASRC
*IS DS_LOAD
*REC(FACTOR = -1,DATASRC = DS_CALC,ACCOUNT = 15000)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
Current Result

Expected Result

Request clarification before answering.
Correct script for default.lgf:
*WHEN RPTCURRENCY
*IS USD
*WHEN FLOW
*IS F_ACTIVITY
*WHEN DATASRC
*IS DS_INPUT
*WHEN ACCOUNT
*IS USO_15000
*REC(EXPRESSION = %VALUE% - ([DATASRC].[DS_LOAD],[ACCOUNT].[15000]),DATASRC = DS_CALC,ACCOUNT = 15000)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
No scoping with XDIM_MEMBERSET!
No stupid COMMIT at the end!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
I have gone through your Script logic blog and got the desired result.
*XDIM_MEMBERSET RPTCURRENCY = USD
*XDIM_MEMBERSET FLOW = F_ACTIVITY
*XDIM_MEMBERSET DATASRC = DS_LOAD,DS_INPUT
*WHEN DATASRC
*IS DS_INPUT
*WHEN ACCOUNT
*IS USO_15000
*REC(EXPRESSION = %VALUE% - ([DATASRC].[DS_LOAD],[ACCOUNT].[15000]),DATASRC = DS_CALC,ACCOUNT = 15000)
*ENDWHEN
*ENDWHEN
*COMMIT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please explain calculation logic in WORDS, not using incorrect script or using meaningless tables where the input data is not explained!
Please read again: https://blogs.sap.com/2014/01/31/how-to-ask-questions-about-script-logic-issues/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but you are not accepting correct answers!
And not reading: https://blogs.sap.com/2014/01/31/how-to-ask-questions-about-script-logic-issues/
No reason to answer!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have 11 questions with only 2 having accepted answers.
Your last question is actually a copy of you previous question: https://answers.sap.com/questions/429995/default-logic-not-working-but-script-working-throu.html
And I have provided a correct answer to this question:
"The correct default.lgf - without any XDIM_MEMBERSET!
..."
No responce from your side.
Your error in the script is exactly same in both cases 🙂
First finalize you previous question. Do you understand my answer on
https://answers.sap.com/questions/429995/default-logic-not-working-but-script-working-throu.html ???
| User | Count |
|---|---|
| 40 | |
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.