cancel
Showing results for 
Search instead for 
Did you mean: 

Calling "BAPI_SALESORDER_CREATEFROMDAT1" Bapi from VC

Former Member
0 Kudos

Hello VC Experts,

I am using "BAPI_SALESORDER_CREATEFROMDAT1" BAPI to create sales order in SAP R/3. For execution, this bapi accepts ORDER_HEADER_IN and ORDER_PARTNER table as a mandatory parameter.

When i drag the that bapi on to the story board, these two tables are appeared as Output ports. I don't understands, how to pass the values to these tables.

I tried to flip the output ports correosponding to that tables towards input port, but two Submit button are come up, one on ORDER_HEADER_IN input form and other is on ORDER_PARTNER input table.

Any Help???

Thanks in advance,

Prashant

(PS:- Points will be rewarded to useful answers)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Prashant,

You donot have to abide by the input forms that are suggested by the VC when you drag and drop.

My suggestion is create your form manually before connecting it to a service, After you are done add one submit button to your form and call the event submit.

Now drag the first line out of your Form and connect it to the first port of the service name the triggering event the same name of the event of the submit button.

Drag another line from the form to the second port of the service map the parameter and use the same event name as defined earlier byu the submit button.

repeat this untill you are done.

Regards,

Ahmed

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Ahmed Salah and Marcel Salein,

Thanks for your help.

Thanks,

Prashant

Former Member
0 Kudos

Hi Prashant,

have a look into our great wiki [WIKI|https://wiki.sdn.sap.com/wiki/display/VC/Multipletablesintoonedataservice] and check this [thread.|;

Best Regards,

Marcel