Yes, your formula log is going to the switched model :)
You have to tafget log to the proper model. For a sample please read code of RUNLOGIC_PH badi: https://archive.sap.com/documents/docs/DOC-35152
Install Appendix A – ABAP Transport for BPC NetWeaver RUNLOGIC_PH Keyword
"Am i missing something?" you missed to post the log screenshot! And the script to launch badi.
Hi Vadim,
Please find the script below
PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%ENTITY_DIM%,%TIME_DIM%")
PROMPT(COMBOBOX,%TC%,"Select TargetCategory:",0,A,"XXX - XXX Estimate,YYY - YYY Estimate,BUD - Budget,BKUP - Backup category")
INFO(%EQU%,=)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,B2APLAN_YTD_FINANCE.LGF)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,TC%EQU%%TC%)
,
Hi Vadim,
Please find the script
PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%ENTITY_DIM%,%TIME_DIM%")
PROMPT(COMBOBOX,%TC%,"Select TargetCategory:",0,A,"XXX - XXX Estimate,YYY - YYY Estimate,BUD - Budget,BKUP - Backup category")
INFO(%EQU%,=)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,B2APLAN_YTD_FINANCE.LGF)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,TC%EQU%%TC%)
Nothing wrong with the script logic file.
It means that the error is inside badi code, some incorrect manipulation with the log output! Debug your badi code.
May be in badi you are switching to another model?
Please find the script
*SELECT(%CFN_ACC1%,[ID],ACCOUNT,P2A_CFN1=Y)
*XDIM_MEMBERSET ACCOUNT = %CFN_ACC1%
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET DATASRC = INPUT
*XDIM_MEMBERSET RPTCURRENCY = LC
*START_BADI B2APLAN_YTD_FINANCE
QUERY = ON
WRITE = OFF
TARGETCATEGORY=$TC$
*END_BADI
Hi Vadim,
Yes i am switching the data from one model to another model. Is this causing the issue?
Regards,
Raghu.
Yes. Changing the context solved the issue. It was pointing to destination model. Thanks.
Add comment