Application Development and Automation 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: 
Read only

Sales order not created using BAPI_SALESORDER_CREATEFROMDAT2

former_member396896
Participant
0 Likes
611

HI,

I have used the bapi BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. I have passed the parameters, doc_type, sales_org, distr_chan, division, partn_role, part_numb and material.

It displays back the message as

sales_header_in createds,

sales_item_in created,

sales document not yet complete : Edit data.

Standard Order 135428 has been saved.

But when i check the same standard order in VA03 ( or vbak ), its not present.

I have also run BAPI_TRANSACTION_COMMIT, to commit work. But still cant figure out.

Any suggestions plzz...

regards,

Taj

HI,

I have used the bapi BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. I have passed the parameters, doc_type, sales_org, distr_chan, division, partn_role, part_numb and material.

It displays back the message as

sales_header_in createds,

sales_item_in created,

sales document not yet complete : Edit data.

Standard Order 135428 has been saved.

But when i check the same standard order in VA03 ( or vbak ), its not present.

I have also run BAPI_TRANSACTION_COMMIT, to commit work. But still cant figure out.

Any suggestions plzz...

regards,

Taj

4 REPLIES 4
Read only

Former Member
0 Likes
554

hi,

check the document type which you are passing ?

Read only

0 Likes
554

I am able to create the sales order when i am entering these details in VA01. I mean the sales document type and othr details.

But when i pass the same parameters in bapi. This doesnt happen. Is there any thing more that needs to be passed.

Read only

0 Likes
554

solved it,

used commit work.

Read only

Former Member
0 Likes
554

This message was moderated.