Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add components to a subcontract PR using BAPI_PR_CREATE

Former Member
0 Likes
1,893

I am trying to use BAPI_PR_CREATE in SAP ECC 6.0 to create a Purchase Requisition with Item Category "L" (subcontracting) to be subcontracted to a vendor for repair. Normally, in ME51N, we would add components to the PR before creating it, but I can't see any way to do that with this BAPI, and the documentation doesn't say.

The result is an error with the following messages:

T ID NUM MESSAGE

E BAPI 001 No instance of object type PurchaseRequisition has been created. External reference: # 1

E ME 154 Not possible to determine any components

E ME 642 Subcontracting only possible with vendor

The error 154 (Not possible to determine any components) is the same message that would appear in ME51N if the components were not added for the repair.

The error 642 (Subcontracting only possible with vendor) is confusing because a valid vendor number is being supplied to the FIXED_VEND field in PRITEM and the equivalent field in PRITEMX is marked with X.

Any help would be greatly appreciated.

I am trying to use BAPI_PR_CREATE in SAP ECC 6.0 to create a Purchase Requisition with Item Category "L" (subcontracting) to be subcontracted to a vendor for repair. Normally, in ME51N, we would add components to the PR before creating it, but I can't see any way to do that with this BAPI, and the documentation doesn't say.

The result is an error with the following messages:

T ID NUM MESSAGE

E BAPI 001 No instance of object type PurchaseRequisition has been created. External reference: # 1

E ME 154 Not possible to determine any components

E ME 642 Subcontracting only possible with vendor

The error 154 (Not possible to determine any components) is the same message that would appear in ME51N if the components were not added for the repair.

The error 642 (Subcontracting only possible with vendor) is confusing because a valid vendor number is being supplied to the FIXED_VEND field in PRITEM and the equivalent field in PRITEMX is marked with X.

Any help would be greatly appreciated.

1 REPLY 1
Read only

Former Member
0 Likes
981

Very late reply - but hoping it might help somebody in the future:

SAP Note 1489799 - ME 154: Creating subcontracting purchase requisition w/o BOM