Skip to Content
author's profile photo Former Member
Former Member

How to Read all users InfoView MyFavorites using single Enterprise User

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 23, 2011 at 04:13 PM

    You could look at using Trusted Authentication since you will know the username. Otherwise, I believe you can do a query like "SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_KIND = 'FavoriteFolder' AND SI_NAME = 'Username'" Once you have the favoritesfolder object, you could do a second query using that ID as the SI_PARENTID to retrieve all content contained in it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.