Skip to Content

How to send the webdynpro table data entered by the user into the xml file

Hi all

I have a table with three columns in that only one column values entered by the user should be stored in the xml file,I am very new to the webdynpro,Please anyone can guide me how to send the webdynpro table data in to the xml file

Please help me in this issue

Thanks and regards

venkata kalyan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 27, 2006 at 10:49 AM

    Hi Kalyan,

    You have to get the data from context and write it into a file.

    Check https://forums.sdn.sap.com/click.jspa?searchID=535989&messageID=436933 which uploads the data to context.

    Read the context, create a file and write to that file.

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2006 at 11:33 AM

    Hi anilkumar

    Thank you for giving the reply ,but am looking for how to send context data to the xml file,not xml into the webdynpro context ,i want to do from the scratch ,pls tell me how to send table data into xml file

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Take the Excel export example that will be useful to convert the Table data into XML fomat.

      U can import that excelexport project into your NWDS and in that first component

      component controller chage simple things then you get the table as a XML.

      // this is the line u need to chage before it is like XLS now I changed as XML

      cachedExcelResource = this.getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XML);

      change this and run that application then u will get some idea u can implement ur application ur own way .

      Thanks,

      Lohi.

  • Dec 27, 2006 at 12:15 PM

    Hi Lohitha

    Thank you for giving the reply,I am very new to webdynpro programming,If you dont mind will you please send the excel project to my gmail Account venkatakalyan.k@gmail.com,Please clearly mention the steps i have to follow for storing table data in to the xml file

    Thanks and regards

    venkatakalyan

    Add comment
    10|10000 characters needed characters exceeded

    • Hallo Lhitha,

      I created an updated version of my Excel Export tutorial available on SDN: Exporting" target="_blank">https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0:

      <b>NOTE:</b>

      use <b>LinkedHashMap</b> instead of <i>HashMap</i>:

        private Map getProductColumnInfos() {
          Map columnInfosMap = new LinkedHashMap();
          columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
          columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
          columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
          columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
          columnInfosMap.put(
            IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
            "Total Per Article In Euro");
          return columnInfosMap;
        }

      This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.

      Regards, Bertram