cancel
Showing results for 
Search instead for 
Did you mean: 

Executing a Data Manager Package from a BADI

Former Member
0 Kudos

Hi Experts,

Has anyone written a BADI that can execute a Data Manager package?

We would like to save some coding and are writing logic that determines a result.  Based on the result we run a specific DM package.

So for example, if result A then BADI instructs to run DM A if result B then run DM package B.

Anyone written something like this that can share?

Thanks

Eyal Feiler

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

Hi Eyal,

Depends what DM package you are talking about!

1. If it's script logic package then look on the code of RUNLOGIC_PH BADI... everything is clear!

2. Some other chain - (like standard COPY chain) - look on the program UJD_TEST_PACKAGE.

Vadim

Former Member
0 Kudos

Hi Vadim,

Thanks,  I'd like to run 1 of 2 Account Based Calculation, if result is >0 then  RUN PROGRAM CALC_ACCOUNT.

Is this possible?

Thanks

Eyal

Former Member
0 Kudos

For clarity, the above logic would be in the BADI, so if the result is >0 run DM package 1, if result is <0 then run DM package 2.

I just wrote the syntax for running via script logic.

Regards,

Eyal

former_member186338
Active Contributor
0 Kudos

Hi Eyal,

For sure you can modify code of RUNLOGIC_PH to run different scripts based on some condition checked in badi before...

But if you can't do it without badi looks better to do all calculations inside badi... including account calculations.

Anyway, the requirements can be solved using script logic (without RUN PROGRAM CALC_ACCOUNT).

Vadim