REG : SC Items not splitting into PO's
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 :
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.
Vinita kasliwal replied
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'.
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.
CONDENSE : lv_count , <fs_data>-refnumber.
CONCATENATE <fs_data>-refnumber '.' lv_count INTO <fs_data>-refnumber.
CONDENSE <fs_data>-refnumber NO-GAPS.
item_data = lt_data.
Let me know if that helps .