cancel
Showing results for 
Search instead for 
Did you mean: 

Determine PO number range based on Catalog vs Free text item type

Former Member
0 Kudos

Hi Experts,

My client has a requirement to create different purchase order document types based on how the goods (or services) in the shopping cart were ordered.

Case:

1. Article A is a catalog purchase therefore SRM will generate a PO document type EC in the backend ECC.

2. Article B is a free text item and therefore SRM will generate a different PO document type FC in the backend ECC.

On the ERP side we have no issues, since defining additional purchase order document types is easily achieved in SAP MM.

I would need to know if there is a way to determine different PO document type based on the type of shopping cart order.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

To update the backend PO document type on the shopping cart, implement badi BBP_DOC_CHANGE_BADI method BBP_SC_CHANGE. Check field CATALOGID on item and update the field BE_DOC_TYPE on the item.

To split the shopping cart items based on catalog/non-catalog, implement badi BBP_BS_GROUP_BE method GROUP_PO_BACKEND. Here you can split catalog items into one pack and non-catalog items into another pack.

Configure two different number ranges in tcode BBNU

To propose different number range for different PO document type, use method GET_NUMBER_OR_RANGE of badi BBP_BS_GROUP_BE .

Both PO doc types have to be configured in BSA attribute on Org structure.

Regards,

Sushil.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to both of you !

former_member216093
Contributor
0 Kudos

Hi Steve,

Sushil has given you really nice inputs. Just want to add few more points here.

You need to define the SRM transaction types for these different PO types and link them to different number ranges first in SRM.

To group local POs, please use the BADI BBP_GROUP_LOC_PO. This will give you item data catalog ID using which you can identify the differen transaction types for the PO.

Regards,

Ravi