‎2005 Aug 30 12:37 PM
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
‎2005 Aug 30 12:53 PM
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
‎2005 Aug 30 2:24 PM
In BAPI_QUOTATION_CREATEFROMDATA, there is REF_DOC in ORDER_HEADER_IN.
‎2005 Aug 31 9:37 AM
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
‎2005 Aug 31 10:10 AM
Hi,
Check the function module BAPI_QUOTATION_PROXY_CREATE for some details.
regards
Aveek
‎2005 Aug 31 10:51 AM
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.