04-06-2016 10:51 AM
Hello All experts,
I need to cancel the quotation using BAPI_QUOTATION_CREATEFROMDATA2 , if with this BAPI it is not possible then is there any way to cancel the quotation via code
can you please provide your inputs on the same.
Regards,
Parthi
04-07-2016 10:10 AM
Ok i Then conclude that the BAPI BAPI_QUOTATION_CREATEFROMDATA2 can only be used for create and Change and we cannot delete using the same.
Let me try with the other bapi mentioned and get back.
04-06-2016 10:54 AM
04-06-2016 11:02 AM
you can use 'BAPI_QUOTATION_CHANGEBOS'.
http://www.se80.co.uk/sapfms/b/bapi/bapi_quotation_changebos.htm
04-06-2016 11:10 AM
Of course a Create BAPI won't be of much help why did you ask?
Did you look at the object (BUS2013, SWO1 or BAPI) or the function group (2031, SE37 or SE80) associated to the FM there is a change BAPI : BAPI_CUSTOMERQUOTATION_CHANGE
Regards,
Raymond
04-07-2016 9:56 AM
i think it can be used only for create, If you want more info then use below link.Let me try from my end and get back
04-07-2016 10:00 AM
If you want to do create, update and delete in same BAPI then use the below BAPI,
BAPI_QUOTATION_CHANGEBOS
Check out the documentation before using it.
04-07-2016 10:10 AM
Ok i Then conclude that the BAPI BAPI_QUOTATION_CREATEFROMDATA2 can only be used for create and Change and we cannot delete using the same.
Let me try with the other bapi mentioned and get back.
04-07-2016 11:10 AM
Hello Parthiban,
I just checked in SE37 with the BAPI BAPI_QUOTATION_CREATEFROMDATA2 , i was successful in both creation and also deletion.
When you want to delete in addition to all the inputs update the field
UPDATEFLAG = 'D',
this field will be in the table QUOTATION_HEADER_INX of the BAPI, this helps in deleting the Quotation successfully,
Ty from your end also and confirm.
Although for creation i did not given value for the field. Check and let us know.
Regards,
Satish