Skip to Content
author's profile photo Former Member
Former Member

Update data into SAP Table

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2005 at 06:36 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2005 at 05:48 AM

    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/linking rfc to web dynpro.pdf

    Regards,

    Jaydeep

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.