Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

REG : SC Items not splitting into PO's

Hi Gurus,

We are using SAP SRM 713 version and the scenario is Extended Classic.

I have a requirement where in the Line items in the shopping cart should be split into PO's, taking into consideration the zfield added into the item level of the shopping cart.


I tried using the below BADI's but not of them are getting triggered when the report BBP_SC_TRANSFER_GROUPED is executed manually to create the PO from SC.

BADI's used :

  1. BBP_BS_GROUP_BE.
  2. BBP_SC_TRANSFER_BE.
  3. BBP_GROUP_LOC_PO.
  4. DOC_CHECK_BADI
  5. DOC_CHANGE_BADI
  6. DOC_SAVE_BADI.

None of the BADI's are getting triggered when the SC is converted into PO, and it is failing to created multiple PO's.for multiple line items in a SC.

NOTE : We are using the report BBP_SC_TRANSFER_GROUPED, to manually transfer the PO as the background job is not scheduled for the same.

Please suggested whether I am missing anything ?

Waiting for your reply.

Regards,
AkkI

Former Member
replied

Hi Aakash

if you are going for BBP_BS_GROUP_BE, then method name is GROUP_RQ_BACKEND. here keep same CT_ITEM-refnumber

Below is one of the implementation for BBP_GROUP_LOC_PO BADI Method GROUP_PO

IF sy-cprog = 'ZSRM_SC_TRANSFER_GROUPED'.

LOOP AT lt_data ASSIGNING <fs_data>.

      READ TABLE lt_data INTO lwa_data INDEX sy-tabix - 1.

      IF sy-subrc NE 0.

        lv_count = '1'.

      ELSE.

        IF lv_per_req EQ 'X' AND lv_per_plant EQ 'X'.

          IF lwa_data-be_plant NE <fs_data>-be_plant OR

             lwa_data-zrequisitioner NE <fs_data>-zrequisitioner.

            ADD 1 TO lv_count.

          ENDIF.

      CONDENSE : lv_count , <fs_data>-refnumber.

      CONCATENATE <fs_data>-refnumber '.' lv_count INTO <fs_data>-refnumber.

      CONDENSE <fs_data>-refnumber NO-GAPS.

    ENDLOOP.

    item_data[] = lt_data[].

Let me know if that helps .

Regards

Vinita

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question