Hi all,
Our requirement was to run script logics from different applications in one package.
We implemented runlogic but unfortunately it runs only the scripts present in the same application and throws error for the scripts present in different application.
Can you please let me know if i am missing something here as runlogic is not working as expected.
I did run in UJKT and it was throwing an error but no dumps or details of error could be found.
Here is the script.The second runlogic statement throws an error as it is in a different application.
*START_BADI RUNLOGIC
WRITE=ON
QUERY=OFF
*FUNCTION FACC70010=70300,75020,75030,75040,75050,75070,75080,75090,75100,4000000409,4000000499,4000000450,4000000200,4000000113,4000000463
*SELECT(%WBS_TO_BR%,ID,WBS,BR_ALLOC='1')
//Specify script 1 to run first.
LOGIC=WBS_TO_BRAND_ALLOC_1.LGF
APPSET=AIS_DEV_APPSET2
APP=PROJECT_PLANNING
//Membersets are stated here instead of in scripts being run because system does not read them in scripts..
DIMENSION CATEGORY=RF2010Q3
DIMENSION TIME=2011.JAN
DIMENSION ACCOUNT = FACC70010
DIMENSION CURRENCY=LC
DIMENSION DATASRC = MANUAL
DIMENSION VALUETYPE=Primary_costs
DIMENSION WBS = %WBS_TO_BR%
DEBUG=OFF
*END_BADI
*START_BADI RUNLOGIC
WRITE=ON
QUERY=OFF
//Specify script 2 to run second.
LOGIC=WBS_TO_BRAND_ALLOC_2.LGF
APPSET=AIS_DEV_APPSET2
APP=SALES_PLANNING
//Category and time stated in this script. Others are in script logic allocations.
DIMENSION CATEGORY=RF2010Q3
DIMENSION TIME=2011.JAN
DIMENSION ACCOUNT = ALLOC_WBS
DIMENSION PRODUCT = DUMMY_PRODUCT
DIMENSION BRAND = DUMMY_BRAND
DIMENSION COSTCENTER = DUMMY_COSTCENTER
DIMENSION CUSTOMER = DUMMY_CUSTOMER
DIMENSION CUSTOMERGROUP = DUMMY_CUSTOMERGROUP
DIMENSION COUNTRY=DUMMY_COUNTRY
DIMENSION DATASRC = MANUAL
DIMENSION CURRENCY = LC
DIMENSION VALUETYPE=Settlements
DIMENSION PROFITCENTER = 100000
DIMENSION FUNCTIONALAREA = Z001,Z003
DIMENSION COMPANYCODE = 1000,1300,2000
DIMENSION NEWEXISTING=BAS(ALL)
EBUG=OFF
*END_BADI
Regards,
Sachin