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

Change Sales order using BAPI

Former Member
0 Likes
550

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

4 REPLIES 4
Read only

Former Member
0 Likes
510

Hi,

Check the sale order number you have given. It seems it doesnt exist. Check in VBAK table.

Thanks & Regards,

Navneeth K.

Read only

0 Likes
510

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.

Read only

Former Member
0 Likes
510

FIRST U USE CALL FUNCTION 'BAPI_SALESORDER_GETLIST'

AND CHEKC SALES ORDER IS EXIST OR NOT

Read only

Former Member
0 Likes
510

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.