We are trying to change a Sales order using the BAPI : BAPI_ SALESORDER_CHANGE in a Zprogram .
The program works fine in SAP 4.5B version. But in MY SAP ERP 2005,<b> we get error with the BAPI.</b>
<u>Scenario :</u> The BAPI is working when the Purchase Order number is not maintained in the Sales Order.
It throws the Error "purchase order number in document number already exist" when the Purchase order number is there in the Sales Oder.
We executed the BAPI from SE37 by passing the parameters in the program and we got the same error mentioned above. Could you please guide .
Thanks in Advance,