10-16-2017 5:10 AM
I try to use this bapi to create to SO with PR, but It always return "E 00055 Fill out all required entry fields". Which field should fill PR number ?
BAPI_SALESORDER_CREATEFROMDAT2
10-16-2017 5:28 AM
a) the error is about something else missing
b) what has a sales order to do with a purchase requisition? What is the business scenario that you want solve? Have you ever tried to do this manually with the standard transactions?
10-16-2017 5:46 AM
b) VA01 - create order with item Category TAK (Make to Order), It need to create PR at the same time and then auto fill PR number in schedule line in item level.
BAPI_SALESORDER_CREATEFROMDAT2 can support this action ? If yes, how to ?
10-16-2017 7:06 AM
Yes BAPI_SALESORDER_CREATEFROMDAT2 can create such requisition. Just continue and maintain the value that are needed to execute the BAPI successfully
10-16-2017 7:37 AM
10-16-2017 9:07 AM
my case same as this.
https://archive.sap.com/discussions/thread/1942266
We are want to create Sales Order' and 'Purchase Requisition' at the same time .
I try to generate PR through BAPI_REQUISITION_CREATE, but it's not woks
FORM USEREXIT_MOVE_FIELD_TO_ME_REQ.
In here generate PR number ( 10029144 ) and fill it.
ENDFORM.
10-16-2017 9:55 AM
Forget this PR and user exit thing for a moment and just try to get a sales order created. I currently looks like putting the cart before the horse.
Sit together with your function consultant and sort the normal issues/error messages in creating sales orders by BAPI.