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

Error related to SO creation through BAPI

Former Member
0 Likes
586

Dear All,

I have used the BAPI_SALESORDER_CREATEFROMDAT2 in the code to create Sales orders.

The Program execution log says that Sales Order has been created and also i am able to see the BAPI log in debug mode stating that Sales order has been created successfully without any errors/warnings.

But if i get into VA02/VA03 and enter the sales order number, the sysyem shows the following error....

"SD document 4983 is not in the database or has been archived"

How to resolve this issue?

Regards

Pavan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

Hi,

After calling BAPI_SALESORDER_CREATEFROMDAT2, u have to use BAPI_TRANSACTION_COMMIT in your program for database commits.

Regards,

Dwaraka.S

4 REPLIES 4
Read only

Former Member
0 Likes
547

Hi Pavan,

Check in TCODE : SM13 if any update records are still pending.

Also check in TCODE SBWP if any error messages are available in your inbox. Usually in case of update termination you will get a express message and you will also get a message in your inbox which will give the reason for the termination

Regards

Read only

0 Likes
547

Hi Rajvansh Ravi,

Thanks for your words...

I have gone through SM13 and didn't find any pending records.

Also in SBWP, i have not recieved any internal mails abt this.

Very starnge error that i am facing in this case....

Any more possibilities to resolve this issue?

Regards

Pavan

Read only

0 Likes
547

Hi Pavan,

According to the documentation of the BAPI

"Commit control:

The BAPI does not have a database commit. This means that the

relevant application must leave the commit, in order that can be

carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is

available for this."

Try this

Regards

Yes try what dwarak suggested

Edited by: Rajvansh Ravi on Feb 2, 2009 7:32 AM

Read only

Former Member
0 Likes
548

Hi,

After calling BAPI_SALESORDER_CREATEFROMDAT2, u have to use BAPI_TRANSACTION_COMMIT in your program for database commits.

Regards,

Dwaraka.S