Skip to Content
0
Former Member
May 23, 2011 at 09:33 AM

How to Read all users InfoView MyFavorites using single Enterprise User

43 Views

Hi All,

I want to read InfoView MyFavourites from SAP Business Objects to SAP Portal using Iviews. From SDN of below mentioned URL [http://wiki.sdn.sap.com/wiki/display/Snippets/ReadInfoViewfavoritesfromthe+portal?focusedCommentId=235802852&#comment-235802852 ] i got code to read InfoView MyFavourties folder.

This code is working fine in order to retrieve MyFavourites of login user (Enterprise User passed in Coding for Authorization).

But I want to retrieve the MyFavourites of request.getUser() (i.e Portal Login User) and using common Enterprise User to connect and read InfoView Favourites.

I have choosen this option due to below reasons.

1. Tried to connect through secWinAD but could not connect showing below Error Message.

Error - Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)

2. When I tried to connect through Enterprise Login authentication It worked well and is showing contents of favorites.

Could you please help me out to get this done. I was expecting to make a function something like....

....../////////

populateInfoViewFavorites(user, boSys.getDesc(), boSys.getId(), root);

/* User = request.getUser()

Actual user used for Authentication to log on and read favourites should be hard coded common enterprise User.

*/

///////////........///////

Note: Please suggest me if there would be any other best practice / easier way of making it possible. Am I trying for correct solution?

Hope you understand my requirement. Awaiting for some solution. Thanks in advance.

Regards

Ganesh Kumar