Skip to Content
avatar image
Former Member

BBP_DOC_CHANGE_BADI PO items is not updated

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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 19, 2013 at 11:54 AM

    Hi,

    I think your logic is Ok.

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

    Add comment
    10|10000 characters needed characters exceeded

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

  • avatar image
    Former Member
    Feb 25, 2013 at 07:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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