cancel
Showing results for 
Search instead for 
Did you mean: 

BPC Runlogic not working as expected

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member200327
Active Contributor
0 Kudos

Hi Sachin,

What kind of error UJKT is throwing?

Also, why do you have SELECT and FUNCTION inside BADI call? Could you please define those before you call BADI?

Could you additionally split that script into 2 scripts just to find which CALL produces the error?

I can also see typo in DEBUG in second call. Is it only here or in your original script as well?

Regards,

Gersh

Former Member
0 Kudos

Hi Gersh,

The error was thrown for the second script.

There are 2 scripts.

1st script is in PROJECT_PLANNING

2nd script is in SALES_PLANNING

In UJKT ,when i select the application as project_planning for the 2nd script it throws an error but when i select sales planning as the application it works fine.Please see the attached results of the ujkt logs.

I have sent an email with the error logs for execution in ujkt when selecting a different application and selection the sales planning application.

Regards,

Sachin

Edited by: socsachin on Jun 14, 2011 2:07 PM

Former Member
0 Kudos

Hi All,

Thanks Gersh.The issue was resolved.

Please note that when you use a run logic badi,if the script is present in a different application you still have to mention

the dimensions present in the calling application.

So you need to mention dimension <dim_name> = <none> for each dimension present in the application you are running the script (only if it is not there in the target application).

Regards,

Sachin

Answers (0)