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

BAPI for Create quotation

Former Member
0 Likes
2,507

Hello all,

I am using the BAPI to create Quotation .

BAPI_QUOTATION_CREATEFROMDATA2 .

I would like to create qoutation with reference to another document.

Although I provide refrence data in the header structure , I am to create Quotation but without any reference.Hence Document flow doesnt indicate the reference doc no.

Please can anyone provide any inputs on the same.

Thanks and Regards

Amruta

5 REPLIES 5
Read only

Former Member
0 Likes
1,180

hi,

I'm not sure, but try with the below one

QUOTATION_HEADER_INX fill X for corresponding reference document column as X. (UPDATEFLAG = 'X')

Cheers,

Sasi

Read only

Former Member
0 Likes
1,180

In BAPI_QUOTATION_CREATEFROMDATA, there is REF_DOC in ORDER_HEADER_IN.

Read only

0 Likes
1,180

Hi Sanjay,

I tried that but still it didnt work.I am not sure whther I have populated the values correctly.

Has anyoe tried this before.

Regards

Amruta

Read only

0 Likes
1,180

Hi,

Check the function module BAPI_QUOTATION_PROXY_CREATE for some details.

regards

Aveek

Read only

Clemenss
Active Contributor
0 Likes
1,180

Amruta,

you may try Function SD_SALESDOCUMENT_CREATE with parameter

BUSINESS_OBJECT = BUS2031.

Populate SALES_HEADER_IN-REF_DOC with reference document No. (with leading zeros!) and SALES_HEADER_INX-REF_DOC = X.

We used the function successfully for SalesOrder, CustomerReturn, CustDebitMemoRequest and CustCreditMemoRequest (until now without reference doc). The respective business objects are in table TOJTB.

Hope it helps!

regards,

C.