cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_DOC_CHANGE_BADI PO items is not updated

Former Member
0 Kudos

Hi All,

We're upgrading SRM from version 5.0 to 7.01.

In version 5.0, we implemented a business requirement in

BBP_DOC_CHANGE_BADI, so that when PO header is updated, a releated

custom field in PO items (same value for all items) will be updated

accordingly.

The logic we implemented in method BBP_PO_CHANGE is like the following.

1. Get item information by calling FM BBP_PD_PO_GETDETAIL

2. Calculate value of the custom item filed to be updated

3. Append records to the exporting parameter ET_ITEM and populate all

fields with information acquired from above step 1 & 2

This logic worked well with SRM5.0.

However, in 7.01, this logic no longer works when only the PO header is

changed. Even though the exporting parameter ET_ITEM is populated, PO

items still won't be updated.

So, the question is how can we implement the same business requirement

in 7.01?

Ryo,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ryo,

You need to change the code a lil bit,

Share the data declaration statement used in your BADI code for IS_Header.

I hope I will be able to help you here. 

Regards

Pardeep Kumar

Former Member
0 Kudos

Dear Pardeep,

Thank you for your reply.

Could you please give me concrete information, for example sample source code or something.

I appreciate your help.

Regards,

Ryo

RicardoRomero_1
Active Contributor
0 Kudos

Hi,

I think your logic is Ok.

You are calling FM BBP_PD_PO_GETDETAIL with guid = IS_HEADER-GUID, aren't you?

Former Member
0 Kudos

Hi Ricardo,

Thank you for your reply.

Yes, that's exact what our current coding is.

How can I work out our requirement???

Ryo,

RicardoRomero_1
Active Contributor
0 Kudos

Then I don't know what can be the problem... let me think...

The badi implementation is active, isn't it? Have you debugged the code?

Try to map all the Exporting parameters with the Importing parameters and complete it with the result of the FM BBP_PD_PO_GETDETAIL...