cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when passing input from multiple structures into BAPI in VC

Former Member
0 Kudos

Dear SDN's,

I am very new to Visual composer!

I am trying to create a customer using BAPI_CUSTOMER_CREATEFROMDAT1,

where i have two mandatory input structures to pass to the bapi.

But using visual composer 2 structures i am getting in seperate forms and each is having its own submit button. How to place all these in a single form and single submit button to send all inputs to corresponding structures.

Any inputs will be awarded.

Thanks in advance,

Sireesha.B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

See the Visual Composer Wiki:

https://wiki.sdn.sap.com/wiki/display/VC/Submitshallupdatemultipleformsatonce

Former Member
0 Kudos

Hi Mario,

Thanks for the link!

That is helpful.

Since i am very new to this area,still i am having some doubts in those steps.

<b>Variant 1

Create a button Submit All and use the custom action SubmitAll .</b>

if i use custom action where i have to code it or how to raise it.

<b>Variant 2

1.Create Layer A and add Form X with input field str1 of type TEXT.

How to add a form to a layer.

2.Add button Next and Submit</b>

Where do we add the buttons whether in the form or Layer

For the next Button what action we need to specify whether the system or custom

<b>3.Create Layer B and add form Y with input field num1 of type NUM

4.Add button Previous and Submit1.

5.From layer A add a link to Layer B with event Next and similarly from Layer B to .Layer A with event Previous. .</b>

How to link layer A and layer B. Pls explain.

<b>6.Add Layer C with Form Z.

7.In Layer C call a BAPI for example BANK_GETLIST which takes input values of

bank country and maximum number of rows. </b>

how to call a BAPI in layer C.

<b>8.Connect output of Form X and Form Y to BAPI input point with events Submit and Submit1.

9.Click on the event Submit which would display the Input fields. Map str1 to bank country field. For the field maximum rows use 'Enter formula'. In this select num1 from Form Y. </b>

how to map str1 to bank coutnry field

10.Repeat the procedure for event Submit1 appropriately.

11.From output of BAPI connect to table view. The output can be seen here on clicking Submit or Submit1.</b>

Please explain me in the desing point of view like where can i find which option!

Thanks,

Sireesha.B

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sireesha,

To start simply, drag "BAPI_BANK_GETDETAIL" to the workspace

Place two forms as inputs one for "Country" and other for "Max rows"

Double click on the "Submit" Button on Country input form, the property dialog box opens.

Click on the "display" Tab and Change it to "SubmitAll"

Click "Action" tab, Click <b>custom action</b> in it.

And in the Name of Custom Action enter "SubmitAll" and Close it.

Now in the design tab in workspace,

click on the submit event between the country input form and BAPI.

In the configure element panel u get Event name.

Select "Submit All".

Now configure inputs to BAPI.

For Country Input form,

Map Bank_CTRY to @Bank_CTRY

For max_ROWS click on "Enter Formula" and Chose MAX_ROWS in Data field

Configure inputs from the other form

Map Bank_CTRY click on "Enter Formula" and Chose BANK_CTRY in Data field

For max_ROWS to @MAX_ROWS

Deploy it.

Now check the results altering the number of rows.

Hope it helps