on 08-31-2017 9:51 AM
Hello Everyone,
I want to pass DEBUG value as 'X' into CL_UJXD_PACKAGES_RES=>POST line no 179 from BPC Data manager package. Because we don't have debug change access in production server. So I will directly put the breakpoint in ZBADI and execute the DM Package from Frontend for debugging. This mediator class has to bypass.
Let me know how can we pass the value as 'X'. I tried by putting DEBUG(ON) in DM script file but still it is not triggering the ZBADI directly.
Regards
Aditya
I'm assuming you want to debug a custom logic BADI, am I right?
This can be called from a data manager package, so if you need to debug this process instead of debugging the process triggered from the Excel, you need to use UJD_TEST_PACKAGE or if you have parameters in your package, you can create a link package and call it using UJD_TEST_PACKAGE_LINK.
Simply, set the break points in your custom class and execute one of these programs.
Cheers
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
End users debugging in ABAP???? Looks absolutely strange!
I have checked Lucas idea and looks like it will work.
For UJD_TEST_PACKAGE the input parameter "IF Synchronous" (IF_SYNC) results in:
IF IF_SYNC = UJ00_CS_BOOL-YES.
LF_DEBUG = ABAP_TRUE.
ELSE.
LF_DEBUG = ABAP_FALSE.
ENDIF.
...
CALL METHOD LO_PACKAGE->RUN_PACKAGE
EXPORTING
I_APPSET_ID = APPSET
I_APPL_ID = APPL
I_TEAM_ID = TEAM
I_GROUP_ID = GROUP
I_PACKAGE_ID = PACKAGE
ITH_ANSWER_PROMPT = LTH_ANSWER_PROMPT
IS_SCHEDULE_INFO = LS_SCHEDULE_INFO2
IF_SCHEDULE = LF_SCHEDULE
IF_DEBUG = LF_DEBUG.
Enduser1 will never login in backend system and will not provide any access to him, but we want to debug on executing of DM package in some scenarios. For this I need the solution of passing the DEBUG value 'X' from DM Package.
Those programs were designed for debugging.
Been using them since version 7.5.
There is a third one: UJD_TEST_PACKAGE_LONGPROMPT for packages with many parameters.
And now a forth one: BPC_TASK_SEQ_TEST to debug Task Sequences in Embedded Consolidation.
My guess is that SAP has created them for supporting as usually SAP support agents are given users without advanced debugging.
Check note: 1844820
"My question is why the ls_package_run-if_debug is initial how can I populate value 'X' directly from DM package script." - Not possible to my mind.
You need change rights on your production server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Vadim,
Suppose if I put infinite loop in custom badi it will goto debugging but from there to debug from next step required goto statement access that cannot provide in production server.
Goto Statement in debugging mode requires DEBUG change access role.
Regards
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have change debug access in production server, through SM50 I went into the program now I have to shift the position from infinite loop to next step. To do the activity GOTO statement is required but in production server DEBUG change access will not provide.
To overcome that I will put external breakpoint in ZBADI and I want to directly pass DEBUG value as 'X' from DM package. Attached screenshot to get 'X' value from DM package into code
Will explain my flow first,
To debug a ZBADI on execution of DM package will put two external breakpoints one in CL_UJXD_PACKAGES_RES=>DO_POST method line no 179 and other external breakpoint in ZBADI. When I execute DM package it will first stop at first external breakpoint now I will change the value of ls_package_run-if_debug EQ 'X' and press F8 now it will stop in ZBADI from there onwards I will debug in ZBADI. This procedure I will follow in development server where comes in Production server we don't have any change access. As per company policy no one will get the debug change access.
My question is why the ls_package_run-if_debug is initial how can I populate value 'X' directly from DM package script.
First - incorrect primary tag:
SAP Business Planning and Consolidation for Public Sector, option for SAP NetWeaver
to be replaced by correct secondary!
Second - what do you want to achieve? Debug custom logic badi execution??
Insert infinite loop at the beginning of badi code!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
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.