cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 7 - Limit Shopping Carts

Former Member
0 Kudos

If a limit shopping cart is created for a project are you able to create multiple purchase orders to different suppliers from a limit shopping cart?  Say you create a limit shopping cart for $100,000 can you have multiple purchase orders from that?

Accepted Solutions (0)

Answers (2)

Answers (2)

vinita_kasliwal
Active Contributor
0 Kudos

Hi Bridget 

i had a simialr requirment may you please check the below pseudo code which could help you get started .

Code in BADI BBP_SRC_DETERMINE.

  1. 1. There are changes with the existing code.Call FM “BBP_PD_SC_ITEM_GETDETAIL” to get the Item details for the current line item. Get the item data in structure, account data and partner data from the FM.

  1. Provide the check in addition with the external requirement check for the stock material. Check here is to check if the li_account (Accounting table) do not have data (That means it’s a stock material.)

Code in BADI “BBP_GROUP_LOC_PO

  1. There are changes with the existing code. Select 1 extra field Itm_type from table crmd_orderadm_i to check if the item is limit item. Have this data into internal table li_sc_guid
  2. Select data for item process type from table bbp_pdigp into table li_bbp_pdigp for all data in item table and sort the table on guid.
  3. Select data for “Higher-Level Item GUID”from table bbp_pdiss into table li_bbp_pdiss for all data in item table and sort the table on guid.
  4. Copy all the item data into temporary internal table li_elseer_item which has 3 extra fields as “item process type”, Higher-Level Item GUID” and “Item Type”.
  5. Fill upper 3 fields by looping the temp item table and by reading the individual internal table filled from select statements.
  6. Now loop on the temp table again for grouping purpose. Fill the current record number into 1 variable.
  7. Read the header detail and item detail from the corresponding FMs “BBP_PD_SC_GETDETAIL” and “BBP_PD_SC_ITEM_GETDETAIL”.
  8. Provide 1 extra check with external requirement check for stock material.
  9. Now loop on tem item table to check if the refnumber is already filled for that grop.
  10. If refnumber is already filled for that group by checking if that is not the current record which is being processed then fill that in refnumber filled otherwise set a counter and increase every time it by 1 and fill it into refnumber field.
  11. Do the same work for different type of groups. We have here following groups.
  12. 1 is for if Supplier Location(Plant) and ship to address is identical. 2nd group is for if it is not ER or stock material, for that if spplier is identical and it is service or limit item, 3rd Group for if supplier is identical and it is other material and 4th group is for if supplier is identical and it is hierarchy item.
  13. Pass the final Temporary filled item table (Which has grouping depending on Refnumber) is moved to final Item data table.
former_member216093
Contributor
0 Kudos

Hi Bridget,

Yes, you are right. The SC is split into different POs based on parameters like vendor, delivery address. You can implement the following BADIs to alter the logic to split the SCs.

1) BADI_GROUP_PO_BE (Backend POs)

2) BADI_GROUP_PO_LOC (Local PO)

Regards,

Ravi