Skip to Content
0

Avoid Writeback BADI call

Feb 01, 2017 at 04:24 PM

76

avatar image

Hi,

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Nick A Feb 01, 2017 at 04:59 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

If you want to execute write back logic only for currency translation then you can run custom logic badi before currency translation that will set memory variable:

Set the memory variable and check it in write back badi

0

Vadim,

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 .

0
Vadim Kalinin Feb 01, 2017 at 04:49 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
Vadim Kalinin Feb 02, 2017 at 07:12 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks Vadim.

0

Thanks for what? Better to explain the case...

0