Skip to Content
avatar image
Former Member

How to debug data manager BADI end routine ?

It's required to make neccessary data transformantion when performing pakcage "import hierarchy from BW", which is complecaited and BPC own's conversion cannot make it.

We intend to develop DM badi END ROUTIEN to archive that.

But after we set debug user in BPC server manager and external breakpoint, surprisely runing this package ignores breakpoint and doesn't jump to debug window.

However, on condition of setting external breakpoint in class method CL_UJD_START_PACKAGE~RUN_PACKAGE, it indeed works.

Could someone explain this? thanks a lot.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 04, 2011 at 01:23 AM

    Hi,

    Try infinite loop in End routine of your logic as follows.

    data: v_val(1) value ''.
    
    DO.
    if v_val = 'X'.
    exit.
    endif.
    ENDDO.

    Save and activate the method.

    Run your package from BPC Excel and login into back end goto Tcode SM50. You can find a job there which is in running mode.

    Select the process, Goto menu options select Program/Session-->Program -->Debugging.

    Once system opens debugging session change v_val to X and proceed to debug of your logic.

    Hope it helps..

    regards,

    Raju

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, Raju

      I understood what you're saying but now the problem is it could jump to method CL_UJD_START_PACKAGE~RUN_PACKAGE but not to BADI code.

  • Aug 04, 2011 at 02:37 AM

    Did you just set a break-point in CL_UJD_START_PACKAGE~RUN_PACKAGE or you also changed the value of SYNCHRONOUS variable? If you changed it then I can explain.

    Cheers,

    Gersh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2011 at 04:14 AM

    It's my mistake, forgetting compensate transformation file with ENDROUTINE section.

    Thank you all.

    Add comment
    10|10000 characters needed characters exceeded