Skip to Content
avatar image
Former Member

Avoid Writeback BADI call


I have setup a write back BADI for 2 filters MAN , DM. The BADI is working absolutely fine for input schedules , DM and imports.

But the problem - I don't want the BADI to be triggered when the user runs the COPY and CLEAR package . So in order to do that I made one enhancement in the standard method RUN_BPC_CHAIN to export the CHAIN ID to the WB BADI . I have a check on the top of my BADI to skip the code if it is CLEAR or COPY. It works when I see it in the debugger , it skip the entire code in WB BADI. But when I run the COPY package without debugger it hits my WB BADI code and re-maps everything.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 01, 2017 at 04:49 PM

    Can you explain what DM packages you want to process by write back badi? Business logic...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I hope I explained the business logic and got some context what I am trying to do? Appreciate your help.

  • avatar image
    Former Member
    Feb 01, 2017 at 04:59 PM

    Thanks Vadim for replying.

    Logic is to do currency translation for the records which has specific RPTCURRENCY and converts them to LC. Also WB BADI is intended to do something else for PRODUCT dimension . But for Copy and Clear packages , i don't want to run the WB BADI at all because it will change the intersection before it post to the model.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vadim Kalinin


      WB BADI is doing currency translation and some re-mapping logic on the product dimension . The problem is only when i trigger CLEAR or COPY package because it will not post the records where user choose the destination while running the COPY.

      As per my understanding sequence would be

      COPY package trigger --> WB --> Default Logic(Based on the prompt)-->WB --> Cube

      If this is the right sequence of execution there is a check in my WB BADI for COPY and CLEAR package through the Memory Variable . I don't think memory variable would reset the second time the WB BADI is being called .

  • Feb 02, 2017 at 07:12 AM

    You have to provide full inventory of cases for badi execution:

    MAN data save from input form

    MAN default.lgf execution

    DM script logic run

    DM not script logic (COPY, MOVE, CLEAR. data load etc...)

    Add comment
    10|10000 characters needed characters exceeded