Skip to Content

[BAPI] How to create SO with PR ?

Oct 16, 2017 at 04:10 AM


avatar image
Former Member

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 ?


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Oct 16, 2017 at 04: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?

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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 ?


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

Former Member

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

Former Member

my case same as this.

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


In here generate PR number ( 10029144 ) and fill it.


message.png (18.5 kB)

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.