I have a requirement where I am using the BAPI_QUOTATION_CREATEFROMDATA2 for creating and updating quotations in SAP. My requirement is when there is an update I need to completely delete the existing quotation and create a new quotation with the updated data. This is to get a new quotation number for every update.
My solution was , If it is an update then set the update field to D to delete the whole sales document , and call another BAPI with the same data using BPM to create another quotation with updated data.
I was wondering if there is a clever way to achieve this without using BPM.
Please advice. Thanks a lot