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

Passing parameters from webdynpro to rfc and displaying pdf in portal


I am creating a webdynpro application where in I am using the following code for catching the current user who has logged into the portal.


IWDClientUser user = WDClientUser.getCurrentUser();


//User is anonymous .. do something...


//user is something


}catch(WDUMException e){

//do something...


I am calling a rfc, how do I pass the username to the rfc?

This rfc will retrieve some data from R/3 and covert the data into pdf format.

How do I display this pdf document in the portal?

Thanks in advance,


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 12:46 AM

    Hi Jayesh,

    The rfc you are using should have a imput parameter that takes the user id as a parameter. When you import the rfc in webdynpro you will get an input class for the rfc. The parameter will either be in the input class itself or in a seperate structure which should also have a class separetely.

    For example the rfc name is GET_USER_DETAILS

    The input class will something like


    There will also be an ouput class like


    If there is a structure there will be class for that structure like


    If the parameter is in the INPUT CLASS then

    after you initialize the class you can assign it to the input object

    For Example



    If it is in the structure then

    STUSER st = new STUSER


    Then assign the structure object to the input object


    About the PDF document.

    When you create a PDF form you will create a label or an text field in the form.

    The label or the text field will be mapped to the context of the view.

    You can assign the username to the context variable which will be reflected in the pdf document.

    Hope this helps



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Prakash,

      I plan on having a file download control in a web dynpro. When the user clicks on the file download, the rfc will be called and the parameter (like userid) will be passed to the function module. The function module will retrieve data from the R/3 system and convert the data into .pdf format. How do I now display this pdf document in the web dynpro (in the portal)?



  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 06:47 PM

    I need the same, display a pdf file that is the return of a RFC call, in a webdynpro as a iview.

    can you solved your case ? how ?

    thanks in advance.


    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.