cancel
Showing results for 
Search instead for 
Did you mean: 

when Multiple Vendors are assigned to Create shopping Cart..single PO generated

Former Member
0 Kudos

hi,,

the problem is when after creating SC with multiple Line Items having Different Vendors/Suppliers only one Backend PO is created in R/3...\

Please kindly suggest how to resolve this issue cause as per the standard process if there are mutlple Suppliers being used we would find multiple PO's for the same.

i am extended the BADI BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1 where i am currently making changed to the currency and amount.

So can this be used to solve this issue ??

pls help

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

Hello Rajat,

you have first to understand why only one PO is created.

To have the answer, you have to debug process.

Put a break-point in TRANSFER method from CL_BBP_SC_TRANSFER class: use WF-BATCH for the break-point and do not forget to change its user type to "Dialog".

Regards.

Laurent.

Yateesh_h
Active Participant
0 Kudos
Hi Rajat,
PO is a legal document and multiple vendors cannot be assigned to the same PO. Therefore in SRM too, when a shopping cart has multiple line items with different vendors, different POs are created in the backend.
If a single back end document is created for SCs with multiple vendors, you do not have to make a fix in the program to get multiple POs in the backend. Multiple POs in case of multiple vendors in the SC is standard SRM.
The criterion that cause the POs to split (apart from the vendor) are:
For classic sceanrio:
Method SPLIT_BACKEND_PO
      IF ls_object_split-fixed_vend     <> <object_split>-fixed_vend     OR
         ls_object_split-proc_org_ot    <> <object_split>-proc_org_ot    OR
         ls_object_split-proc_org_id    <> <object_split>-proc_org_id    OR
         ls_object_split-proc_group_ot  <> <object_split>-proc_group_ot  OR
         ls_object_split-proc_group_id  <> <object_split>-proc_group_id  OR
         ls_object_split-agreement      <> <object_split>-agreement      OR
         ls_object_split-be_doc_type    <> <object_split>-be_doc_type    OR
         ls_object_split-be_co_code     <> <object_split>-be_co_code     OR
         ls_object_split-ctr_hdr_number <> <object_split>-ctr_hdr_number OR
         ls_object_split-plant_country  <> <object_split>-plant_country.
For extended classic:
Method SPLIT_PO_LOC_CMP_CRITERIA
  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
Placing a breakpoint at the above method might help.
Hope this helps

Cheers,

Yateesh

Former Member
0 Kudos

okay...but can u tell me in which table exactly i can find the data where multiple vendors exists...

cause in the badi i mentioned above i only get one vendor in po_header table..:(

thanks

Yateesh_h
Active Participant
0 Kudos

Hi Rajat,

I dont remember the tables on the fly. Could you please use the transaction BBP_PD. Use the shopping cart number for the object id. Click on the item numbers to get the vendors assigned to the items.

Cheers,

Yateesh

Former Member
0 Kudos

ok..k..i would check that...but as i mentioned above i checked in BADI FILL_PO_INTERFACE1 and checked structure CS_PO_DOCUMENT and i wasn't able to find multiple vendors anywhere in the tables included in this structure.i was only able to find one Vendor in POHEADER table

robin_janke
Contributor
0 Kudos

that Badi is only used on a per PO basis.

When multiple POs are generated according to the rules given earlier by Yateesh the interface is called repeatedly. So no, you will not find more than one supplier in there.

I would first deactivate the coding you are working on and see if it is working correctly then.

Former Member
0 Kudos

Ok..thanks Robin...would do that...but can it be possible that due to the BADI(BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE 1)  itself Multiple PO's arent getting generated at the back end..and if for so is the reason for only a single PO getting Generated then how should i achieve the requirement for generating Muktiple PO's as welll converting Amount and currency on the basis of Vendor Currency if it is different from Plant Currency