cancel
Showing results for 
Search instead for 
Did you mean: 

Badi - 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

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)

peter_novoth
Employee
Employee
0 Kudos

Hi,

the BBP_TARGET_OBJTYPE is the rigtht BAdI.

Here inside you need to call the BBP_PD_SC_GETDETAIL, and check the partner tab for a fixed vendor.

Depending on this partner you need to change the type of the follow-on document.

Regards,

Peter

Former Member
0 Kudos

Thanks that helps.

Answers (0)