‎2010 Aug 14 4:51 PM
Hi
I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating interest orders in VA01using reference contract number created in VA41.
Please guide me on which parameters I need to fill of the BAPI with contract number. If possible give some code references
Edited by: Gautam Totekar on Aug 17, 2010 4:17 PM
‎2010 Aug 18 10:08 PM
Hello,
Apart from the other parameters: pass values for REFDOC_CAT & REF_DOC_L at header level for using reference categories.
ORDER_HEADER_IN-REFDOC_CAT = G " Contract
ORDER_HEADER_IN-REF_DOC = <Contract Number>
REF_DOC- is the reference document nummber.
RECDOC_CAT - is the document category,
Hope this will help you.
Thanks,
Sameer
Edited by: Sameer Desai on Aug 18, 2010 4:23 PM
‎2010 Aug 17 2:03 PM
There are many examples of the BAPI usage on this site. Did you search? Did you look at the interface or the documentation?
‎2010 Aug 17 2:47 PM
I have searched all But I need to create it from reference to contract Number. And I have only these fields.
VBAK-AUART Document Type
VBAK-VKORG Sales Organization
VBAK-VTWEG Distribution Channel
VBAK-SPART Division
LV45C-VBELN Contract Number
VEDA-VBEGDAT Contract Start Date
I am not able to create it using thi sBAPi. can create manually in VA01 though with these many paramteres. rest Values get copied from contract.
Please provide some inputs if you know.
‎2010 Aug 18 10:08 PM
Hello,
Apart from the other parameters: pass values for REFDOC_CAT & REF_DOC_L at header level for using reference categories.
ORDER_HEADER_IN-REFDOC_CAT = G " Contract
ORDER_HEADER_IN-REF_DOC = <Contract Number>
REF_DOC- is the reference document nummber.
RECDOC_CAT - is the document category,
Hope this will help you.
Thanks,
Sameer
Edited by: Sameer Desai on Aug 18, 2010 4:23 PM