on 2016 Sep 14 11:50 AM
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?
Request clarification before answering.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
2 | |
2 | |
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.