cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Sales Order using BAPI_SALESORDER_CREATEFROMDAT1 in VC

Former Member
0 Kudos

I am new to Visual Composer.

I read the tutorial and created a Model which fetches the Sales Orders from the R/3 using <b>BAPI_SALESORDER_GETLIST</b>, every thing worked fine.

I am trying to create a sales order in R/3 using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>, following are the steps I did:

1)Create a model

2)Drag a model element(iView) on to the designer

3)Double click the iView and Drag the function <b>BAPI_SALESORDER_CREATEFROMDAT1</b> on to the iView Designer

Now my question is, for <b>BAPI_SALESORDER_CREATEFROMDAT1</b> there are some mandatory fields as mentioned in the document.

1. Mandatory entries:

ORDER_HEADER_IN :

DOC_TYPE Sales document type

SALES_ORG Sales organization

DISTR_CHAN Distribution channel

DIVISION Division

ORDER_PARTNERS..:

PARTN_ROLE Partner functions, SP sold-to party

PARTN_NUMB Customer number

ORDER_ITEMS_IN..:

MATERIAL Material number

REQ_QTY Order quantity in sales unit

I can pass the values of structure <b>ORDER_HEADER_IN</b> from a input form but how should I pass mandatory values for tables <b>ORDER_PARTNERS</b> and <b>ORDER_ITEMS_IN</b>.

Ideally I should have one form where I can send all the mandatory items in the form.

Thank you,

Vamsi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

How did you passed mandatory values ?????

Former Member
0 Kudos

Dont worry.

Figured it out.

Thanks.

Former Member
0 Kudos

Hi,

how did you return the materials in the Table View. I tried to do it, but it only returns one material?

Regards,

Matthias