2009 Apr 28 1:55 PM
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.
2010 Oct 13 9:29 PM
Very late reply - but hoping it might help somebody in the future:
SAP Note 1489799 - ME 154: Creating subcontracting purchase requisition w/o BOM