cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple BADI's are not executing with default.lgf

Former Member
0 Kudos

Hi Gurus,

I am having 2 BADI's which need to be run when I submits the data in input sheet.

I am trying to write script logics and default as follows.

RM_LO_PRICE.LGF ---

*START_BADI RM_LO

DEBUG=ON

WRITE = ON

*END_BADI

*COMMIT

RM_IM_PRICE.LGF ---

*START_BADI RM_IM

DEBUG=ON

WRITE = ON

*END_BADI

*COMMIT

Defalut.LGF

*INCLUDE RM_IM_PRICE.LGF

*INCLUDE RM_LO_PRICE.LGF.

I tried to club both the scripts in single as

RM_LO_PRICE.LGF ---

*START_BADI RM_LO

DEBUG=ON

WRITE = ON

*END_BADI

*COMMIT

*START_BADI RM_IM

DEBUG=ON

WRITE = ON

*END_BADI

*COMMIT

DEFAULT.LGF ----

*INCLUDE RM_LO_PRICE.LGF

When I submit the data in input sheet. Default Logic is executing Only RM_IM BADI only.

Another BADI, RM_LO is not executing.

Could you please suggest me the possible way to call both the BADI's at once.

Regards,

Praveen.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Gresh,

I couldn't able to find any log files in UJFS -> privatepublications.

Hi Nilanjan,

I have removed the COMMIT and tried it. Still not working.

Now,

I am getting the below error.

But when I am trying to execute the BADI's individually, it is working fine.

Regards,

Praveen.

former_member191765
Active Participant
0 Kudos

As message says it has duplicate records, any system should not allow duplicate records while committing data so you should aggregate data use. I would suggest use COLLECT statement instead of APPEND in your BADIs which will take care of duplicate and the sign value will get aggregated.

Let me know if you still have the issue.

former_member200327
Active Contributor
0 Kudos

Hi Praveen,

Under privatepublications you should see user-ID ->TEMPFILES-> timestamp -> DEFAULT.LOG.

You can download it as a text file.

Gersh

Former Member
0 Kudos

Hi Praveen,

I see a problem due to the COMMIT statements. Can you try to remove that statement and then try?

former_member200327
Active Contributor
0 Kudos

Hi Praveen,

We call dozens of BADI in DEFAULT and it works fine.

Can you check if you have any dumps?

If you don't have dumps can you provide log of that DEFAULT execution? It can be found in UJFS.

Gersh