cancel
Showing results for 
Search instead for 
Did you mean: 

RFC data into WebDynpro Table based on Page selected by user in Portal

Former Member
0 Kudos

Hi All

I am new to webdynpro. we are developing an application in which we are supposed sent two parameters to RFC to retrive data. Two parameters are Role (plant) and page names(Sub - plant).

Finally there should only one RFC for whole application which takes parameters when user selects a role and page inside a role.

How can I do this. Please help me.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharadha1
Active Contributor
0 Kudos

Hi,

1. Develop an RFC at the backend SAP system, which takes in 2 input ( plant and sub-plant) and gives the list of results as a table.

2. Create a model in the WD Java application to call the RFC.

3. call the rfc, get the output and print the result in a table designed in the view.

There is a sample application which can be found here

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20jav...

This does a similar application which you are trying to do. This takes in 2 input parameters from the user 'Departure city' and 'Arrival city' and prints the list if flights. If you go thru this sample application, you can develop urs very easily.

You can even get the source code of this project in the following link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780... [original link is broken]

Click 'download from SDN' in the link above.

Hope this helps you

Regards,

Sharadha

Former Member
0 Kudos

Hi Sudhakar,

Thanks for quick reply but my requirement is to send parameters to RFC from Portal. ie when user with role1 (contains many pages) clicks on page1, role1 name and page1 name should be sent to RFC import parameters.

Thanks

Former Member
0 Kudos

Hi sap developer,

If i m getting ur requirement properly,u want to access the role of the logged in user in portal and the page ,he has clicked on.

U have to to use portal api's for that.check this link for getting the portal user in webdynpro <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/getting%2blogged%2bin%2bportal%2buser%2bdetails%2bin%2bweb%2bdynpro">accessing Portal user</a> .When u get the user account,u can get his role also.

For getting the page,u have to check the ivew in the portal.

regards

Sumit