cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating quotes with Bapi_Quotation_Createfromdata2

Former Member
0 Likes
4,074

Hi,

I'm trying to call Bapi_Quotation_Createfromdata2 to create a quote. I can easily create a quote through SAPGUI using VA21.

This bapi has plenty of properties to set.

1) Has anyone used this BAPI to create quotes? If so, can someone post the absolute minimum properties that need to be set to successfully create a quote.

2) Do i need to fill out all properties/tables when calling this bapi or can i just submit with basic information and SAP will infer the rest of the information (like the SAPGUI does)?

3) No matter how much information i send to SAP when calling this BAPI, i always seem to be getting the error "Sales document type is not defined". Does anyone have a mapping of the attributes to named fields from the SAPGUI? What does this error mean and which property's value am i not sending in properly?

Any help appreciated.

H

View Entire Topic
Former Member
0 Likes

Ok, so i managed to create quotes via the bapi listed above just fine from .NET v2.0 (and from the previous version for that matter). New question. How do i get the quote out of SAP? I can't find any BAPIs to do that....like pass in the sales document number and receive all details about the quote. Any help appreciated.

Thx.

Former Member
0 Likes

I solved this. The BAPI to call is BAPI_SALESORDER_GETSTATUS.

H