cancel
Showing results for 
Search instead for 
Did you mean: 

SC items are getting splitted into mutiple POs (Local PO)

jayaprakash_m
Explorer
0 Kudos

I have multiple items in the SC, when I approve the SC, it is creating one PO per SC item. Suppose if I have 3 items in SC, 3 local POs are getting generated. Infact I would like to see single PO with all 3 items.

Any idea what should be the problem , Is it a configuration issue or code issue?

Which FM/Badi should I debug to anlyze the issue?

Accepted Solutions (0)

Answers (6)

Answers (6)

jayaprakash_m
Explorer
0 Kudos

I am creating SCs using describe reqeuriment option and Locals POs are getting created with HELD status while approving this SC.

I am logging in as 'APPROVER01' (approver01 is user ID) to approve SC so I kept external debug enabled for this user and I tired to debug the SPLIT_LOCAL_PO and the BADI implementation (test) BBP_GROUP_LOC_PO .

But system is not stopping at any of the SPLIT methods or the BADIs. Am I doing any mistake?

I know that local POs are getting created in the backgrond while we approve the SC. Which user id will be used to create local POs? is it the same user who logged in to approve the SC ?

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

I guess this debug won't work, since you are approving the document. Split of local POs happens in SPLIT_PO_LOC_CMP_CRITERIA (class CL_BBP_SC_TRANSFER). The following parameters are checked:

  • compare actual with previous item

IF is_object1-guid_ven <> is_object2-guid_ven OR

is_object1-guid_prpven <> is_object2-guid_prpven OR

is_object1-proc_org_id <> is_object2-proc_org_id OR

is_object1-proc_group_id <> is_object2-proc_group_id OR

is_object1-pcnum <> is_object2-pcnum OR

is_object1-pcins <> is_object2-pcins OR

is_object1-subtype <> is_object2-subtype OR

is_object1-be_co_code <> is_object2-be_co_code OR

is_object1-ext_dem_logsys <> is_object2-ext_dem_logsys OR

is_object1-doc_type <> is_object2-doc_type OR

is_object1-logsys_fi <> is_object2-logsys_fi.

*...If there are differences set split flag

ev_split = c_on.

ENDIF.

Please, try to do the following. Create a held shopping cart and take its GUID.

Start FM BBP_PD_SC_TRANSFER (providing SC GUID) -> Go inside BBP_BS_SC_TRANSFER_CLASSIC -> DO -> TRANSFER -> DETERMINE_LOCAL_OBJECTS -> SPLIT_LOCAL_OBJECTS -> SPLIT_LOCAL_PO -> SPLIT_LOCAL_PO_DO -> SPLIT_PO_LOC_CMP_CRITERIA. Here the split will be done.

I hope this helps.

Regards

Ricardo

Former Member
0 Kudos

Hi Jayaprakash,

It may split due to custom field are different also.

According customization in BADI BBP_GROUP_LOC_PO_BADI

Check OSS note 1380879 for further more information.

Regards,

Neelima

Former Member
0 Kudos

Usually a SC split occurs if the vendors are different,

and several purchase documents will be created in the backend system when

the purchase group or the purchase organisation for each document is a

different one. This depends on the attributes Resp_PGRP and Resp_WGR defined for the

purchase group. If there's a contact assigned to a line item in a SC then seperate PO's are created.

The system creates separate purchase orders for requirements with

different goods recipients, even if the items contain the same vendor.

In badi BBP_GROUP_LOC_PO_BADI , you can define split criteria other than vendor. Checka this badi has been activated.

Regards

Lauren

Former Member
0 Kudos

Hello,

All the three items should have same bill to address then only a single PO will be generated, Please check the bill to address for all the items of that SC.

Regards,

Anindya

Former Member
0 Kudos

Jayaprakash,

Do all three items go to the same vendor? If different vendors, it will create 3 different po's.

Former Member
0 Kudos

Hello,

Please take a look at Note 1380879 - FAQ: Split criteria in the Sourcing Cockpit

Most probably there are different delivery adresses or other splitcriteria where for the po's are split.

Kind regards,

Tim