cancel
Showing results for 
Search instead for 
Did you mean: 

Update data into SAP Table

Former Member
0 Kudos

Hi,

I have a Table in SAP and am trying to input values into a table. Most of the examples I have come across in Webdynpro are retrieving data from a table.

My issue is as follows:

- I am pulling in an RFC through the webdynpro adaptive RFC model wizard.

- In the wdDoInit() of the component controller. I Instantiate the root node but when I try to instantiate the table class it is generated as an abstract list.

Z_Bapi_Input input = new Z_Bapi_Input();

input.setTable( AbstractList list);

Please Advice

-NAC

P.S> We are basically trying to develop a Table which acts as a form(takes inputs), and updates a table in SAP. Any example would be appreciated of updating Table in SAP.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This article is very helpful to understand passing internal table through RFC.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/li... rfc to web dynpro.pdf

Regards,

Jaydeep

Former Member
0 Kudos

Hi,

First initialize the "Table" and then add it to the input.

For example your BAPI (eg. "Z_BAPI_INPUT") has a table ("XT_Table") with two parameters (eg. "FIRST_NAME" and "SECOND_NAME").

Z_Bapi_Input input = new Z_Bapi_Input();

Xt_Table table = new Xt_Table();

table.setFirst_Name("Abcd");

table.setSecond_Name("Efgh");

input.addXt_Table(table);

Hope this solves your problem.

Regards,

Santhosh.C