on 03-03-2015 7:15 AM
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
You mentioned RUN_LOGIC_PH in your posting. Do you wan to convert your script logic into a BADI (requires ABAP knowledge) or you want to use BADI RUNLOGIC_PH to speed your script up by parallel execution (doesn't require any ABAP)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Sorry to disturb you again.
Is it possible to convert the below logic in BADI. or is there any way to improve the performance for below logic.
//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
//Create Forecast YTD movements
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY =FORECAST
CURRENCY = LC
TID_RA = %PYCYMTH%
CALC=CONSOL_BS
OTHER = [ENTITY=%ENTITY_SET%;COSTCENTER=CC_NONE;P_PROFITCENTER=P_PC_NONE]
// or OTHER=[ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
*ENDRUN_PROGRAM
*COMMIT
Thanks
Parrthaa
Hi,
You can write everything in1 BADI no need for 2 BADIs for clearing records and CALC_ACCOUNT.
ABAPer with BADI knowledge will help you to write BADI.
Hope this will help you.
Regards,
Devi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parthasarathy,
It is possible to combine multiple script logics into one BADI.
You can clear first then do the calculation in the BADI.
You will get HUGE performance improvements by converting script logics into BADIs.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you forget about badi's for a second and simply explain what you want to achieve in terms of business logic!
Vadim
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 your quick response. We are using 24 steps in Script logic. It is taking lot of time. SAP suggested to use BADI to replace script logic.
My question is how to convert all script logic into one/multiple BADIs. How it will improve the performance. Attach Script Logic for your reference.
Thanks & Regards
Partha
Hi Partha,
There is no automatic script logic to badi conversion. You have to start with business logic! Then you have to write appropriate ABAP code... (by experienced ABAP developer).
Vadim
P.S. Not sure that you can't improve performance of your script code. But you have to play with it yourself.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
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.