on 08-19-2005 4:58 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.