cancel
Showing results for 
Search instead for 
Did you mean: 

BPC 7.54 NW: START_BADI RUNLOGIC and dynamic variables

Former Member
0 Kudos

Hi Guru's

I've never worked with BADIs...

I am working at an migration project to HANA (from 7.50.13 to 7.54.19).

I have a script logic than works at 7.50, but not at 7.54.

This is the script logic SCRIPT_LOGIC_BADI.LGF. It is at CONSOLIDATION application and run a script logic than is at other APP, Other_App:

*START_BADI RUNLOGIC

QUERY = OFF

WRITE = ON

     LOGIC = Other_App_Script_Logic.LGF

     APPSET = SameAppSet

     APP = Other_App

     DIMENSION ACCOUNT = <NONE>

     DIV=$DIV$

DEBUG = OFF

*END_BADI

Message error:

"An exception with the type CX_UJK_VALIDATION_EXCEPTION occurred, but was neither handled locally, nor declared in a RAISING clause

Member "$DIV$" not exist

Application: Other_App package status: ERROR"


$DIV$ is filled in a process chain (ZBPC_DIV) called from the package. I know this process chain works because it is used at other script logics.


PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")

INFO(%EQU%,=)

INFO(%TEST%,OBTDIV)

TASK(ZBPC_DIV,SUSER,%USER%)

TASK(ZBPC_DIV,,SAPPSET,%APPSET%)

TASK(ZBPC_DIV,SAPP,%APP%)

TASK(ZBPC_DIV,SELECTION,%SELECTION%)

TASK(ZBPC_DIV,REPLACEPARAM,DIV%EQU%%TEST%)

TASK(ZBPC_DIV,LOGICFILENAME,SCRIPT_LOGIC_BADI.LGF)

I did a work-around: create a new package in Other_App application than call to Other_App_Script_Logic.LGF, but I need execute this script logic from CONSOLIDATION application.


I think than the problem is than doesn't recognize $DIV$.

Somebody could say me how I can solve this problem or other options?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

If you look on RUNLOGIC documentation you will not find DIV parameter for badi. Looks like it's some custom enhancement in RUNLOGIC code. Please check badi code to have an idea what this parameter is used for!

Also you do not need to use custom chain ZBPC_DIV - any standard like default formulas will work!