Skip to Content
avatar image
Former Member

Purchasing Group Mapping in BAdI BBP_PGRP_FIND

Hi all,

Apparently, I'm uisng BAdI BBP_PGRP_FIND to map Purchasing Group from my z-table. By right, if I have implemented BBP_PGRP_FIND, the default Responsible Purchasing Group will no longer take place (based on the documentation).

However, when I have select item from external catalogs, and return back to SRM shopping cart, I hit 'Continue' button and 'Order' button at the next screen, as to save my Order. When I check the status (Check Status link), I noticed that the purchasing group for my item (Basic Data from Item details) is sticked to default Responsible Purchasing Group.

Due to the above, I have placed a break-point on BAdI BBP_PGRP_FIND, and replicate the same steps as above. I found that the purchasing group mapping is working fine, before returning to SRM shopping cart. In order to double confirm, I have clicked on 'Magnifier' icon (Action column) to check the item details, and yes, mapping is working. Thus, I have saved the order, and check back the status (Check Status link) on the last saved order, and Item Detail is showing the correct Purchasing Group this time.

I am wondering why we need to check Item Details in SRM shopping cart, before saving the Order, in order make the mapping works, as far as I concerned implementing BAdI BBP_PGRP_FIND will eliminate default Purchasing Group.

For you info, when I place a break-point in BAdI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE. I found that table IT_ITEM (method BBP_SC_CHANGE), is having the default purchasing group, where BAdI BBP_PGRP_FIND was called prior to this. I thought that the mapping was taking care by BAdi BBP_PGRP_FIND, but how come IT_ITEM still has the default Purchasing Group?"

Can someone give me some advice?

Thanks and regards,

Patrick

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • May 27, 2009 at 02:07 PM

    Purchasing Group is handled by internal table

    ET_ORGDATA-export

    IT_ORGDATA - import

    in said BADI.

    Please read documentatio of BADI

    For method BBP_SC_CHANGE, ensure that you fill all export

    parameters even if you wish to change only one parameter. After

    calling up the BAdI, the system can only work with the data in

    the export interface.

    Regards,Nishant

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi all,

      Finally, I found the resolution to solve this issue. I have created Implicit Enhancement in include program LBBP_SC_APPF23, Subroutine orgdata_fill. I have cleared parameter is_global-proc_group to clear the original Purchasing Group.

      Not sure whether this is the SRM mistake or there is OSS note to fix that, where, I have mapped purchasing group successfully, but the standard program still stick to original purchasing group.

      Hope this can be shared to whom encounters this problem.

      Regards,

      Patrick