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

Problem in Sales order create using BAPI with reference to quotation

Former Member
0 Likes
2,201

Hi,

I am creating a sales order from Quotation using BAPI /AFS/BAPI_SALESORD_CREATEFDATA.

The Sale order is getting created and the document flow is updated. When i check the status of quotation it is "OPEN".

Ideally when a sale order is created in VA01 with reference to a quotation and if all items are added in the order from quotation, then the status of the quotation must be "Complete".

When i use the BAPI, the status of the quotation is sill "Open". Has anyone faced this issue?

Even if anyone has faced this issue with BAPI_SALESORDER_CREATEFROMDAT2, please let me know...

Regards

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,835

Hi,

Did you try replicating this by manually creating the order with reference to quotation?

I think order should be confirmed for closing the quotation. Just try this manually and let us know your update.

Thanks,

Vinod.

10 REPLIES 10
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,836

Hi,

Did you try replicating this by manually creating the order with reference to quotation?

I think order should be confirmed for closing the quotation. Just try this manually and let us know your update.

Thanks,

Vinod.

Read only

0 Likes
1,835

Hi Vinod,

Yes i have tried manually creating a order using quotation as reference using VA01. In this case when all items in the quotation are added to the sales order, the quotation status is "Completed".

But if the same is done through BAPI the quotation status is "Open".

Thanks

Read only

0 Likes
1,835

Solved . Customization was not maintained properly for the Order types !!

Read only

0 Likes
1,835

Hi Rv,

iam facing the same prb as you have faced earlier i am using the saem bapi but document flow is not updating,it is saying as open. You said taht there is some issue with customization in order types. Cud u please tel me. OUr fucntional consultants are not able to understand this.

Sai

Read only

0 Likes
1,835

Hi RV,

I am using BAPI to create order reference to contracts. I am facing same issue. Its not updating document flow (vbfa-plmin field). After creating orders I am forcing to update plmin field in vbfa. This worked fine. But now status in reference document not updating properly. I saw your thread. It looks like similar issue. I saw your comments "Customization was not maintained properly for the Order types ". Please can you explain little bit more about your solution. It will helps us lot.

Thanks,

srini

Read only

0 Likes
1,835

Issue resolved. I checked completion rules for contract in config. Everything looks good. But In user-exits we are updating cvbap internal table for contracts. After creation of contract we are not clearing the value in cvbap. If the User uses same session, then we are getting issue in document flow and staus. Now we are clearing cvbap value. Everthing working fine.

Thanks,

Srini

Edited by: srinivas kuchadi on Nov 7, 2010 8:03 AM

Read only

0 Likes
1,835

hi

Even I face the same issue.Can you let me know what routine needs to modified or what customizing needs to be done to reslove this issue.

Read only

faslan234
Explorer
0 Likes
1,835

Hi guys, could find any solution ? We face the same issue. we use BAPI_SALESORDER_CREATEFROMDAT2 create sales order with reference of a quotation but it does not update item status of quatoation. Any suggestion ?

Read only

FilipSt
Explorer
0 Likes
1,835

Hello Everybody, I have same issue. Document flow is updated (I can see SO referencing quotation) but quotation status is not updated. Any idea how to make it work "as per standard"?

Read only

pieteru_insekai
Discoverer
0 Likes
1,835

Hi, I have same issue. BAPI_SALESORDER_CREATEFROMDAT2 create sales order with reference of a quotation success but not update quotation status to "Completed". what is answer of this problem?