cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the current PCD from my WD app

Former Member
0 Kudos

Hi,

All is in the subject. I would like to retreive the PCD path (i mean the path that the user done to access to my iView).

I'm using Web Dynpro for java and ep 7.0

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello,

thanks to all the SAP portal specialists who have given me directions where to find answers.

Unfortunaly, these answers are usable to find the PCDs a user is allowed to, not to find the PCD the user has followed to get the view.

But we have found a solution to get this information from the URL parameters, using this simple line of code (we are into a Web Dynpro DC) :

String viewId = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-ext-sid");

and then "viewId" contains the URL-PCD followed by the user !

This code will work only if the view is integrated into a SAP portal, and we can verify this point with the condition :

if ( WDPortalUtils.isRunningInPortal()) .....

I hope this information can help !

Regards

Former Member
0 Kudos

Hi,

chk this

Thanx,

ramani.p

former_member192434
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi,

to access the PCD content from a web dynpro application,

first, u have to get the current user using the IWDClientUser interface and then u can access the initial content of the portal using the class InitialContext.

check out the code given in the sap help portal

http://help.sap.com/erp2005_ehp_03/helpdata/EN/42/9ddd4cbb211d72e10000000a1553f6/frameset.htm

Regards,

Satya.