‎2008 Nov 26 12:31 PM
When trying to change a Sales order using BAPI_SALESORDER_CHANGE, I am getting the following error.
SD document 15704 is not in the database or has been archived.
Please let me know what could be the problem
‎2008 Nov 26 12:32 PM
Hi,
Check the sale order number you have given. It seems it doesnt exist. Check in VBAK table.
Thanks & Regards,
Navneeth K.
‎2008 Nov 26 12:33 PM
If you are trying to use this bapi as soon as you are calling sales order create bapi, then you have to call wait command between these 2 bapis.
‎2008 Nov 26 12:35 PM
FIRST U USE CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
AND CHEKC SALES ORDER IS EXIST OR NOT
‎2008 Nov 26 1:12 PM
you have the error message, which is self explanatory.
SD document 15704 is not in the database or has been archived.
if you knat that the sales document indeed exists, and the message is deceiving, then check why are yopu gettign that. maybe you didn;t provide the order# will leading zeros, or you are tryingto change an order immediately after creating, in which case DB commit might not be completed.