2009 Feb 02 6:14 AM
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
2009 Feb 02 6:28 AM
Hi,
After calling BAPI_SALESORDER_CREATEFROMDAT2, u have to use BAPI_TRANSACTION_COMMIT in your program for database commits.
Regards,
Dwaraka.S
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
2009 Feb 02 6:20 AM
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
2009 Feb 02 6:25 AM
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
2009 Feb 02 6:31 AM
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
2009 Feb 02 6:28 AM
Hi,
After calling BAPI_SALESORDER_CREATEFROMDAT2, u have to use BAPI_TRANSACTION_COMMIT in your program for database commits.
Regards,
Dwaraka.S