Skip to Content
avatar image
Former Member

How to Pass Debug value as 'X' into CL_UJXD_PACKAGES_RES=>DO_POST from BPC Data Manager package

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 31, 2017 at 09:37 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Aug 31, 2017 at 09:12 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2017 at 01:39 PM

    "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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2017 at 09:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded