cancel
Showing results for 
Search instead for 
Did you mean: 

Insert of Data into a Bapi Table via an Input Table in VC

Former Member
0 Kudos

Hello VC Specialists,

I have problems to insert data into a BAPI table via an input table with the Visual Composer. I think i did not found the right documentation for that issue.

After flipping the Output Port to an Input Port for the table i have deploy errors, even if assign vallues to the table fields.

I don't know, how to assign rows of the input table to rows of the bapi table.

I found actions like "insert row", "goto row", "first row" and so on and I tried to use it, but i did not have successs.

The Example is the BAPI: "BAPI_PO_CREATE1"

I tried to link the BAPI Tables "POITEM" and "POITEMX" to 2 VC Input Tables.

After inserting the first table into the VC Designer deploy errors has appeared.

(My Problem is i have now authorization to look in the Log File or to use external debugging.

I have debugged the BAPI in R/3 and i saw that it works correctly in SAP)

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Can you please email me:

1. Your model.

2. Bapi you used

3. step by step description of what you did.

I know as a fact that flip port works in VC.

What I think your log file does not show you is a 32k problem.

I will let you know my findings.

Regards, Asaf

Asaf.shashua@hotmail.com

Former Member
0 Kudos

Hello Asaf,

I used the SAP R/3 BAPI "BAPI_PO_CREATE1" and i sent screen shots to you with the model and configuration of elements via an email.

If any other colleague of the SDN Forum is interested in this screen shots:

Please tell me your Email Adress.

My Email Adress is: Adrian Scheffer@resco.de

Former Member
0 Kudos

Hello Asaf.

it is not possible to sent a mail to the Address

Asaf.shashua@hotmail.com.

Is the email address correct ?

or do you have you an other email account ?

Best regards

Former Member
0 Kudos

Hello all,

after I have got the authorization to seel the log file i saw the message:

Error: Member function sendSRV1 is larger than 32K.

The solution was:

1. Reducing of the Data Service to only that fields, which are necessary as input into and output you have to see in Visual composer.

2. I found in a SDN message, in which way to handle multiple input into a BAPI:

If more than one input mappings from input forms ore input tables into the BAPI are necessary, you have to configure the event of the Data Mapping

in a special way.

a) The action Type of the toolbars / pushbuttons which starts the event

have to be defined as customer action.

b) The event name of the input mapping has to be the same for all input forms

and input tables of the BAPI.

c) the event name has to begin with the "*"operator.

Example: event neme = "SUBMITALL"

This last point is a little bit strange, because a name field is used as an operator.

This point - i think - has to be in the content of the next user guide .

Multiple Forms you will need in all intelligent BAPIS.

Best regards

Adrian Scheffer

Former Member
0 Kudos

Hello all,

after I have got the authorization to seel the log file i saw the message:

Error: Member function sendSRV1 is larger than 32K.

The solution was:

1. Reducing of the Data Service to only that fields, which are necessary as input into and output you have to see in Visual composer.

2. I found in a SDN message, in which way to handle multiple input into a BAPI:

If more than one input mappings from input forms ore input tables into the BAPI are necessary, you have to configure the event of the Data Mapping

in a special way.

a) The action Type of the toolbars / pushbuttons which starts the event

have to be defined as customer action.

b) The event name of the input mapping has to be the same for all input forms

and input tables of the BAPI.

c) the event name has to begin with the "*"operator.

Example: event name = "*SUBMITALL"

This last point is a little bit strange, because a name field is used as an operator.

This point - i think - has to be in the content of the next user guide .

Multiple Forms you will need in all intelligent BAPIS.

Best regards

Adrian Scheffer

Answers (2)

Answers (2)

Former Member
0 Kudos

I think the question is answered

Thanks and best regards.

Adrian Scheffer

Former Member
0 Kudos

Sorry,

one important word in my description is wrong, I muddled up "no" and "now"

The right description is:

Hello VC Specialists,

I have problems to insert data into a BAPI table via an input table with the Visual Composer. I think i did not found the right documentation for that issue.

After flipping the Output Port to an Input Port for the table i have deploy errors, even if assign vallues to the table fields.

I don't know, how to assign rows of the input table to rows of the bapi table.

I found actions like "insert row", "goto row", "first row" and so on and I tried to use it, but i did not have successs.

The Example is the BAPI: "BAPI_PO_CREATE1"

I tried to link the BAPI Tables "POITEM" and "POITEMX" to 2 VC Input Tables.

After inserting the first table into the VC Designer deploy errors has appeared.

(My Problem is: I have <b>no</b> authorization to look in the Log File or to use external debugging.

I have debugged the BAPI in R/3 and i saw that it works correctly in SAP)

Best Regards

Former Member
0 Kudos

I want to activate my question in my own reply

Former Member
0 Kudos

Can you give us more information about the deploy errors?

Thx in advance.

Best Regards,

marcel

Former Member
0 Kudos

Hello Marcel,

I have tested al little bid with external debugging. So I am able to decribe the problem more exactly

I work with SPS9.

The goal is to use the BAPI "BAPI_PO_CREATE1" in the Visual Composer to create Purchase Order in the SAP R/3 System.

This Bapi has a lot of ports.

Some Input Ports of type table have to be flipped to the left habd side (Input side of the data service.

It is no problem to transmit data to the BAPI with one input form for the Ports

with only one dataset:

They are called INPUT, POHEADER and POHEADERX.

If i only build this input form and execute the Visual Composer Application with correct header information the program works the way I assumed.

The remote funktion has been called correctly and has a return of some warnings and error messages, because the input has no Items for the purchase order.

So far the Application works correct.

In the next steps i have to import data of type table into the BAPI.

When i drag from a port to the left the VC shows the option "Add Input Table"

If I Choose it, an input table is created with the toolbars add, delete, copy, cut and paste and a "SUBMIT" connection to the BAPI port.

To enable the submit connection I created a toolbar with the system action

"submit form".

In the first step I had put the input form in the same layer.

After this action deploying is not any more possible (deploy error)

After this action a error apperars in nthe deply step.:

Error in compiling Flex application (1). Consult log file for details.

in the next step I used also one layer but i used "SubmitAll" as customer action

in the toolbar and the push button and submitall as name of the connection lines as described in the messages to forum subjects "Update Multiple Rows in Multiple Tables in a Single BAPI" .

The result is the the same errorin the deploy step.

In the next step i used submit but in 2 different layers as described in the forum subject

"Problem when passing input from multiple structures into BAPI in VC".

But the result was the same error in the deploy step.

Unfortunately i am not authorized to look into the LOG File.

Best regards

Adrian Scheffer

Former Member
0 Kudos

Hi Adrian,

the default setting in the visual administrator for the logfile is false. (I don't know why, but I think, if there is a log file I want see it in VC.) However, you have to ask your administrator, that he modfies this setting in the visual administrator. The SAP note for this setting is 974494 or for unix machine SAP note 886209.

Then check the log file, maybe you can solve the problem, if not post the output of the logfile.

I think this Notes should add to the VC wiki. I will do this now.

Best Regards,

Marcel

0 Kudos

Hi Adrian,

I did this issue a fews week ago and it worked fine. I have submitted a input table into a BAPI.

1) You have to confige your table to multiple in the selection mode

2) Data mapping: In the connection line between table and bapi you have to configure "All data rows" in the mapping scoope ..

Thats it.

Than it should work.

Regards, Murat Y.

Former Member
0 Kudos

Hello Marcel,

I hope I will clear up the log file problem with our System administrator in the next days. Thanks for your answer.

Best regards

Adrian Scheffer

Former Member
0 Kudos

Hello Murat,

i tried it in the way you described, but the result is the error in the deply step again.

I have used one layer and "SubmitAll" as customer action

in the toolbar in the Input Table and the push button of the Input Form and i used SubmitAll as name of the connection lines as described in the messages to forum subjects "Update Multiple Rows in Multiple Tables in a Single BAPI".

If I delete the Input Form in the VC Designer, I have no error in the deply step, but it makes no sence, because the BAPI needs also the Information for the ports

"Input", "Poheader" and "Poheader".

It seems to the problem, to feed ports of different types (Input form and Input Table) wiith Data.

best regards

Adrian Scheffer