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

Reg : input parameters required for order cancellation - BAPI--SD_SALESDOC

Former Member
0 Likes
495

Hi,

I have a requirement where I need to cancel sales orders with the cancellation reason(Reason for rejection). I could find a BAPI--SD_SALESDOCUMENT_CHANGE but need to know what exactly are the input parameters required for order cancellation.

I tried using this BAPI, but it is not updating the order.

If any one has used this BAPI please provide me the details.

If you have any alternate suggestions for order cancellation, it would be very helpful.

Thanks,

Chitra

Hi,

I have a requirement where I need to cancel sales orders with the cancellation reason(Reason for rejection). I could find a BAPI--SD_SALESDOCUMENT_CHANGE but need to know what exactly are the input parameters required for order cancellation.

I tried using this BAPI, but it is not updating the order.

If any one has used this BAPI please provide me the details.

If you have any alternate suggestions for order cancellation, it would be very helpful.

Thanks,

Chitra

2 REPLIES 2
Read only

Former Member
0 Likes
445

Hi ,

You can use the BAPI 'BAPI_CUSTOMERCONTRACT_CHANGE' and pass the rejection reason in

CONTRACT_ITEM_IN-REASON_REJ .

Use BAPI_TRANSACTION_COMMIT after executing thye above BAPI.

Hope this may be useful.

Regards,

Sravanthi

Read only

Former Member
0 Likes
445

Hi,

Try this BAPI instead "BAPI_SALESORDER_CHANGE". Pass the Sales order number and set UPDATEFLAG value to 'D' in the structure ORDER_HEADER_INX.

Don't forget to call BAPI_TRANSACTION_COMMIT after the above BAPI.

Best Regards,

Priyanka.