Below is the sample script file. I need to develop new BADI for this.
1. Can we write everything in1 BADI or need 2 BADIs for clearing records and CALC_ACCOUNT.
2. How to pass CALC = CONSOL_PL in BADI parameters while using RUN_LOGIC_PH?
//Clear YTD data in Finance
*XDIM_MEMBERSET CATEGORY=FORECAST
*XDIM_ADDMEMBERSET CATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSET TIME=%PYCYMTH%,%PYFUMTH%
*XDIM_MEMBERSET ACCOUNT=%TPLACNTLST%,%TBSACNTLST%,29100300
*XDIM_MEMBERSET FLOW=F999
*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET DATASRC=CONSOL_MOVE
*XDIM_MEMBERSET ANALYTIC=EXISTING
*WHEN FLOW
*IS F999
*REC(EXPRESSION=0)
*ENDWHEN
*COMMIT
//Convert PL Periodic to YTD
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = FORECAST
CURRENCY = LC
TID_RA = %PYCYMTH%
CALC=CONSOL_PL
OTHER = [ENTITY=%ENTITY_SET%]
// or OTHER=[ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
*ENDRUN_PROGRAM
*COMMIT
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
CURRENCY = LC
TID_RA = %PYFUMTH%
CALC=CONSOL_PL
OTHER = [ENTITY=%ENTITY_SET%]
// or OTHER=[ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
*ENDRUN_PROGRAM
*COMMIT