cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_TARGET_OBJTYPE - Code Approach

Former Member
0 Kudos

My Scenario is Extended Classic scenario -for completed shopping carts it creates PO and for catalog item it creates PO. For incomplete carts it creates PR

But our requirement for a particular vendor from the catalog it should create a PR but not PO.

Please SRM guru's send me some sample code or approach to write it in the badi BBP_TARGET_OBJTYPE.

If I am not suppose to user the above badi please also send which badi to be used.

Thanks

NSSRM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Following enhancements (BADIs) will have to be coded based on rules defined for PO / PRs. These rules can vary from organization and hence I am not providing any sample code for the same.

Badi BBP_TARGET_OBJTYPE : Use method DETERMINE_TARGET_OBJECT_TYPES to determine follow-on document type for PO. Here reservations object type is replaced by PO object type.

Badi BBP_BS_GROUP_BE : Use method GROUP_PO_BACKEND to split line items for PO . Method GET_NUMBER_OR_RANGE can be used to get a new PR/PO number as defined in configuration.

Badi BBP_CREATE_BE_PO_NEW : This Badi is called before PO/PR is created in the backend.

Hope this helps (*only for the approch and may differ from your requirement*).....

Best Regards,

NMK

Former Member
0 Kudos

Thanks that helps

Answers (0)