Application Development 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: 

[BAPI] How to create SO with PR ?

former_member1137458
Participant
0 Kudos

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

6 REPLIES 6

JL23
Active Contributor

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?

0 Kudos

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 ?

JL23
Active Contributor
0 Kudos

Yes BAPI_SALESORDER_CREATEFROMDAT2 can create such requisition. Just continue and maintain the value that are needed to execute the BAPI successfully

0 Kudos

Which field should be fill it ? can provide a example for this ?

0 Kudos

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.

JL23
Active Contributor
0 Kudos

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.