on 07-02-2007 4:23 PM
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.