cancel
Showing results for 
Search instead for 
Did you mean: 

Need reference fields BAPI_SALESORDER_CREATEFROMDAT2

prasad_dix
Participant
0 Kudos

Dear experts,

  I am using BAPI_SALESORDER_CREATEFROMDAT2  to create Sales Order. The SO has been creating successfully. However, certain fields are not getting added properly. I may be missing right elements to populate the data. 

I am looking for customer's purchase order reference field, Req.delivery date and plant. I tried with REF_1, PURCH_NO_C, REF_DOC for PO reference. But it's not working. For Req.delivery date and plant I am not able to find right fields.

Request to assist me in this.

Regards,

PD

prasad_dix
Participant
0 Kudos
I have tried with PURCH_NO_C and it's working for customer PO ref. However, If I try to re-run the same data to create SO it says, Sales order already exists.

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor
0 Kudos

Which fields to use in the BAPI depends on the target fields you are seeking in transaction processing - .e.g. there is a purchase order number for the sold-to and a separate one for the ship-to.  See below for the possible field mappings - 

  • REF_1, PURCH_NO_C, and PURCH_NO_S fields at header detail for PO values
  • REQ_DATE_H at header detail or REQ_DATE on schedule lines detail for requested delivery date
  • PLANT can be found at item detail for plant

 

Regards,

Ryan Crosby

prasad_dix
Participant
0 Kudos
Thanks all for your help. I have found the issue and it's working fine now. PURCH_NO_S and REQ_DATE_H are right elements.

Answers (1)

Answers (1)

FredericGirod
Active Contributor
0 Kudos

Did you check if the data element of the screen field is the same as for the BAPI structure field ?