cancel
Showing results for 
Search instead for 
Did you mean: 

Different PO document type based on Shopping cart

Former Member
0 Kudos

Dear experts,

Need some help in creating different PO document types in SRM followed by ECC (extended classic) via shopping cart.

Based on certtain conditions in SC, system should determine the PO document type (after approval) either standard ECPO or ECPS (configured via define trancation types under object BUS2201).

Can some one guide me is there any way to achieve this via BADI / Program level change / Configuration?

Thanks in advance...

Thanks & Regards,

Krish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try badi BBP_GROUP_LOC_PO and fill the field BE_DOC_TYPE in the interface.

Thanks,

Sushil.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Use the following BADIs

BBP_CREATE_BE_PO_NEW  

For more information, please go through the link:http://wiki.sdn.sap.com/wiki/display/SRM/BBP_CREATE_BE_PO_NEW+-+Create+PO+in+backend 

BBP_CREATE_PO_BACK

     

BBP_ECS_PO_OUT_BADI  

For more information, please go through the link:

http://wiki.sdn.sap.com/wiki/display/SRM/BBP_ECS_PO_OUT_BADI  

BBP_TARGET_OBJECTS

BBP_TARGET_OBJECT_TYPE

BBP_DOC_CHANGE_BADI

For more information, please go through the link:

http://wiki.sdn.sap.com/wiki/display/SRM/BBP_DOC_CHANGE_BADI

Some other Configuration which may be helpful.

To create new transaction type:

Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Define Transaction Types

To create new number range:

Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Number Ranges --> SRM Server Number Ranges --> Define Number Range for Local Purchase Orders

You can define to create automatic PO when a SC was created in: Supplier Relationship Management --> SRM Server --> Sourcing --> Define Sourcing for Product Categories

Thanks.

From RBEI,

Snehal

Former Member
0 Kudos

Hi,

Use the following BADIs

BBP_CREATE_BE_PO_NEW  

For more information, please go through the link:http://wiki.sdn.sap.com/wiki/display/SRM/BBP_CREATE_BE_PO_NEW+-+Create+PO+in+backend 

BBP_CREATE_PO_BACK

     

BBP_ECS_PO_OUT_BADI  

For more information, please go through the link:

http://wiki.sdn.sap.com/wiki/display/SRM/BBP_ECS_PO_OUT_BADI  

BBP_TARGET_OBJECTS

BBP_TARGET_OBJECT_TYPE

BBP_DOC_CHANGE_BADI

For more information, please go through the link:

http://wiki.sdn.sap.com/wiki/display/SRM/BBP_DOC_CHANGE_BADI

Some other Configuration which may be helpful.

To create new transaction type:

Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Define Transaction Types

To create new number range:

Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Number Ranges --> SRM Server Number Ranges --> Define Number Range for Local Purchase Orders

You can define to create automatic PO when a SC was created in: Supplier Relationship Management --> SRM Server --> Sourcing --> Define Sourcing for Product Categories

Thanks.

From RBEI,

Snehal

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

I did this in my system using the BBP_DOC_CHANGE_BADI for shopping carts.

Basically I am changing the BE_DOC_TYPE based on product category (my own condition).

   LOOP AT IT_ITEM INTO LS_ITEM.
          IF    LS_ITEM-CATEGORY_ID EQ 'SLS_ECS'.
                LS_ITEM-BE_DOC_TYPE = 'ECEC'.
          ELSEIF LS_ITEM-CATEGORY_ID EQ 'LOCAL_SLS' OR
                LS_ITEM-CATEGORY_ID EQ 'WF_COMP'.
                LS_ITEM-BE_DOC_TYPE = 'ECPO'.
          ENDIF.
MODIFY IT_ITEM from LS_ITEM.
ENDLOOP.

Regards,

Ricardo