cancel
Showing results for 
Search instead for 
Did you mean: 

How to know whether the webdynpro application is running as standalone app?

Former Member
0 Kudos

Hello,

I would like to know which api's i need to use in my application to know whether the instance of the webdynpro application is running through Enterprise portal or is it running as a standalone application ( direct url ) .

Please can some body give some insight regarding this.

Thanks

V Vinay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

See <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html#isRunningInPortal()">here</a>.

Armin

Former Member
0 Kudos

hi

good

go through this link, i hope this ll help you to solve your problem,

/people/benny.schaich-lebek/blog/2006/06/14/how-to-tune-your-netweaver-developer-workplace-i

thanks

mrutyun^

Former Member
0 Kudos

Hi

try this

This solution is workaround

String strUserid = new String();

String loginuser=null;

try{

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user = wdUser.getSAPUser();

if(user != null)

{

IUserAccount acct[] = user.getUserAccounts();

if(acct[0] != null)

{

loginuser = acct[0].getLogonUid();

strUserid = strUserid + acct[0].getLogonUid();

}

}

} catch(Exception e) {

}

if(strUserid==null || strUserid.length()==0){

//Stand alone Api

}else{

//portal

}

Kind Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh,

Thanks for your response, but it is not working because for the standalone webdynpro application which is directly called using the url the variable strUserid is populated with the login information ( login name ).

Please can you suggest another approach if you know.

Vinay

Former Member
0 Kudos

Hi

Check the loginuserid

if(loginuser==null || loginuser.length()==0){

//Stand alone Api

}else{

//portal

}

Kind Regards

Mukesh