Application Development 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: 

Cancelling Order using BAPI_QUOTATION_CREATEFROMDATA2

0 Kudos

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

1 ACCEPTED SOLUTION

0 Kudos

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.

7 REPLIES 7

michael_kozlowski
Active Contributor
0 Kudos

Check FM BAPI_CUSTOMERQUOTATION_CHANGE to cancel quotation.

pranay570708
Active Contributor
0 Kudos

raymond_giuseppi
Active Contributor
0 Kudos

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

former_member1716
Active Contributor
0 Kudos

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

BAPI_QUOTATION_CREATEFROMDATA2 SAP ABAP Function Module - Customer Quotation: Create Customer Quotat...

former_member1716
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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