cancel
Showing results for 
Search instead for 
Did you mean: 

DMP to exceute to a particular Entity or Set of Entities?

0 Kudos

Hi BPC Gurus,

    I am working on the customised BADI and for the same in the DMP I want to apply the BADI to a particular ENTITY or group of ENTITIES. Currently the logic is getting executed to all the entities.

   I have tried Parameters in the LOGIC but every time the USER has to Enter manually the Entity name. Instead like in standard I want the selection which is system based and the Logic gets executed to that particular selection.

Regards

KMG

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Please show the following:

1. DM advanced script

2. Script logic to launch badi

3. Explanation of the badi logic - how the scope is processed.

And:

"Instead like in standard I want the selection which is system based and the Logic gets executed to that particular selection." - not clear! What do you mean by "system based"??

0 Kudos

Hi Vadim

   The BADI Logic is to carry the last month Closing Balance to the next month Opening Balance for the BS items.

  For this following Script Logic was included:

And in the Advanced Script :

Now my requirement is

Like in standard I can add n number of entities

But with my script I have to define it manually

And even If I opt for standard or customized selection , the BADI still executes for all the entities. I need the BADI to execute only to the selected  Entity(s).

When I asked the same to ABAPER he said he needs the IT_PARAM for wwhich Ihave given him the following constants :

   So looking for a solution where I have facility of the selecting the Entity(s) and the BADI gets executed to the selected Entity only.

Regards

KMG

0 Kudos

To be more precise If the selected Entity is "ENTITY1" then the logic should execute to only that entity "ENTITY1".

   If the selected Entity is "ENTITY1,ENTITY2, ENTITY5" then the logic should execute to only that entity "ENTITY1,ENTITY2, ENTITY5".

Regards

KMG

former_member186338
Active Contributor
0 Kudos

Typo error in Advanced script:

%TAB% not %TABT% in REPLACEPARAM

Vadim

0 Kudos

Corrected. It works but not according to the requirement I am looking for. The logic is still getting executed to all the Entities.

KMG

former_member186338
Active Contributor
0 Kudos

P.S. And in general:

1. Why PROMPT(TEXT... not PROMPT(SELECTINPUT?

2. Why not to pass user input using %SELECTION% and variables like %ENTITY_SET%...

3. QUERY=ON in the badi will read scope... then what for to pass scope parameters...

etc...

Vadim

former_member186338
Active Contributor
0 Kudos

"The logic is still getting executed to all the Entities." - then you have incorrect badi code!

former_member186338
Active Contributor
0 Kudos

P.P.S.

I see no reason to pass ENTITY (or VERSION) as a badi parameters.

Just using script scope the ct_data will be filled with correct records... Your ABAP developer is doing something strange!

Vadim

Answers (0)