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

Using the XML returned by XI to populate table in Web Dynpro UI

Hi,

In Web Dynpro,I have a scenario where i have to generate reports. For this, I enter the "Customer number", "Date" & "Item No" in 'Generate report' page and hit the "submit" button. These details are sent as XML to XI which interacts with the ABAP R/3 system, performs the search and returns the search results as an XML

Now, I want to display search results contained in this XML by populating it in a table.

From, the point where the XML is returned by XI, could you please tell me the step by step process to populate this XML in a table. Please include code, if any.

Kindly help.

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 Oct 29, 2005 at 08:36 AM

    Hi Sandeep,

    You can use SAX/DOM parsers for parsing the XML and you can populate the Context in webdynpro which will be the Datasource for the Table.

    1. Parse the XML and get the data in a collection.

    2. Iterate through collection and populate the ValueNode in WebDynpro

    3. Bind the valueNode to the table UIElement.

    Regards, Anilkumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2005 at 12:44 PM

    Im working on EP using WebDynPro. I have the following XML which is returned by XI. This is just an example, the number items can vary, from 1 to any number.

    http://www.xxxx.com/xxx/POC">

    <Result>

    <CustomerNumber>111</CustomerNumber>

    <ItemNumber>001</ItemNumber>

    <Material>RAM</Material>

    <OrderDate>2005-11-03</OrderDate>

    </Result>

    <Result>

    <CustomerNumber>112</CustomerNumber>

    <ItemNumber>002</ItemNumber>

    <Material>HDD</Material>

    <OrderDate>2005-11-04</OrderDate>

    </Result>

    <Result>

    <CustomerNumber>113</CustomerNumber>

    <ItemNumber>003</ItemNumber>

    <Material>CDR</Material>

    <OrderDate>2005-11-04</OrderDate>

    </Result>

    <Result>

    <CustomerNumber>114</CustomerNumber>

    <ItemNumber>004</ItemNumber>

    <Material>Mouse</Material>

    <OrderDate>2005-11-04</OrderDate>

    </Result>

    </nsOrder:MT_Order_Display_Response>

    Can someone tell me how to populate this return XML into a table?

    I want the entire code and the full steps involved in dynamically populating this kind of XML into a table. Please help.

    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.