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

Create an XML-String from BAPI / RFC-Elments using Web DynPro

Hi everyone,

I have the following scenerio:

I have a list of BAPI / RFC-Elements to retrieve Data from and I want to display this Data in a Web-Environement. But I don't want to display them directly using a Web DynPro View but I rather want to create an XML-String and then use a Stylesheet to transform this XML-String into a Webpage.

Are there any examples out there how to achieve and handle this? Or has anyone already done something similar and can provide me with some advice?

I'm also still short on information on how to handle BAPI / RFC Elements in general using Web DynPro (Java only). The best documentation I have found so far is:

Handling" target="_blank">www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c">Handling Transactions with BAPIs in Web Dynpro

Anyone got any more usefull information on the same topic, if possible even more detailed.

Thank you for your help,

Thomas

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 Nov 20, 2007 at 09:44 AM

    Hi Thomas,

    Once you get the data in the context of webdynpro you can parse them to XML and then use XSLT to render in your way.

    Ex:

    Import the model.

    Bind to the controller

    Execute the Bapi/RFc

    invalidate the context .

    Now your output node of the rfc will contain the actual data.

    Parse the context in to a XML format which you can use in XSLT.

    For parsing their was a Post from Valery converting-context-tree-to-xml

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ayyapparaj,

      the link you gave me looks like it is exactly what I was looking for.

      As soon as I have implemented it succesfully, I will mark the question as answered.

      Thanks for your help, it is very much appreciated.

      Thomas

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:01 PM

    Hi,

    I found a much easier method: If you create the connection to your RFC-Modules using a SAP Enterprise Connector, beans for all the data you receive from RFC-Modules are automatically created and these beans include a toXml-method which automatically create the desired XML-String.

    Thank you for your help,

    Thomas

    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.