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_SALESORDER_CREATEFROMDAT2

gautam_totekar
Active Participant
0 Likes
1,177

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,026

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

3 REPLIES 3
Read only

brad_bohn
Active Contributor
0 Likes
1,026

There are many examples of the BAPI usage on this site. Did you search? Did you look at the interface or the documentation?

Read only

0 Likes
1,026

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.

Read only

Former Member
0 Likes
1,027

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