Read Portal User ID in BW report to filter records

Hi,
I need to filter my records in BW report based on the
business partner who logs into Portal.
(BW report is getting called thur IView in Portal)
Is there any way i can fetch the Portal User id
during the execution of BW report? so then i can filter
records by writing code in user exit.
I tried using variable sy-uname, but it populates
the BW user id and not portal user id.
Please reply if anybody knows solution to this query.
Thnx in advance.

Abhijit ,
My understanding:
You need to filter the query by the Business Partner ID and not by User name and Business Partner number and BW User ID are both different.
If you want to filter by User name:
Why don't you try using SSO through EP and that way you would get the ID of the person logged in.
If you are using user mapping:
Or what you could do is maintain the mapping in an info object/table in BW and query against the same.
If you are using Business Partner:
Populate the business partner master which will have the user name attached and that way you would be able to get the Business partner ID.
Arun

Similar Messages

  • Accessing Portal User profile info from report

    Once the user logs into portal, I would like to access some of the user profile information (personal or organizational details). I need to find the stored value of the employee number, e_mail and department. This is needed to restrict the information that will be returned to the user in portal reports.
    ie. Access the portal users department and only show them information fo that specific department. If I can access I can store the value in a session variable or cookie.

    Just have a look at <portal_schema>.wwsec_person$
    There is also an API <portal_schema>.wwctx_api.get_user to get the user currently logged in.
    Thanx,
    Chetan.

  • Portal User to Bw web report

    Dear All,
    I want to pass the portal logon user to Bw web report . do anybody have any idea how to do that.
    Thanks and regards,
    sarang

    Dear Sri,
    I didn't mean sso.
    What i really wanna do is pass the portal user as a variable value in bw report  selection screen.
    Consider there is a value to be put in Bw report selection screen as customer.
    now i logon to portal using customer id. now i want this value of customer id to be passed to that report.
    thanks and regards,
    sarang

  • What is([103]) xcscredd(103) deny file-read-metadata /Users

    Hi all, Recently I found that after installed Mac OSX Server and some VPN server , on system monitor recorded many messages about :
    ([103]) xcscredd(103) deny file-read-metadata /Users , and gen many report on
    file:///var/log/asl/AUX.2014.02.20/383655
    do any member know what is these happened ? and how to stop it.
    I set OSX server on private network ,  success connect iPhone to OSX VPN server but cannot access internet from it. Oh....
    not user frirendly to operate OSX Server...
    any helps to slove these 2 problem ?

    1. Open the terminal
    2. type
    sudo vim /Applications/Server.app/Contents/ServerRoot/System/Library/Sandbox/Profiles/xcscredd.sb
    3. enter
    (deny file-read*    (subpath "/Users")    (with no-log) )
    into the file
    To edit the file you have to press i.
    4. The press ESC and then :wq (Enter)
    But you shouldn't do things like this, if even don't know how to change a text file.
    It's on your own risk.

  • Type of users needed to view reports in portal

    HI gurus,
    I am planning to grant acces to bw reports to some portal users.
    The portal users only would visualize iviews based on reports and or querys and will nbot interact with the bw backend system.
    I am trying to avoid to create a user in the bw system for each portal user who need to consult the reports because of the sap license cost, but I do not have any idea how to map several portal users to one bw user?
    Any idea or help will be welcome.
    thanx in advance.

    Only by creating roles are you able to assign different pieces of content
    to different groups of users.
    First Create a  User Group and put your Content in that group, the create a role and assign this group to that perticular Role.
    A role is a container for applications and
    information that can be assigned to a
    particular group of users.
    1 The content of a role enables users to perform
    the tasks in their respective job description.
    2 The content of a role is based on the company
    structure and on the information needs of the
    portal users in the company.
    3 The portal navigation structure is defined by
    the sum of the roles assigned to the user.
    4 Technically, a role is a hierarchy of folders
    containing other portal content objects.
    5 Roles can be assigned to users or groups of
    users, i.e. the portal role connects users (or
    groups of users) to the portal content.
    What are Worksets?
    1 A role usually consists of one or more
    worksets that bundle applications and
    information.
    2 A workset is a collection of applications
    and information that belong together from
    a semantic point of view because they are
    part of the same activity area (e.g.
    controlling or budgeting) of a user.
    3 Whereas a role is based on global
    company structures, a workset is based on
    user-specific tasks or activities (for
    example, u201CMy Budgetu201D or u201CMy Staffu201D are
    worksets in the u201CManageru201D role).
    3 Worksets are building blocks for roles:
    One workset can be used within several
    roles, and one role can consist of several
    worksets.
    5 Technically, a workset is a hierarchy of
    folders that contains other portal content
    objects.
    6 Worksets cannot be assigned to users
    (only roles can be assigned to users).
    Relationship Between Roles and Worksets: Example
    Role          :                               Sales Manager
    Workset     :                               Budget 
    Activities   :                            Monitoring
                                                 Planning
                                                Approving
                                                 Forecasting
    Role          :                                Sales Manager
    Workset     :                               Team Leader 
    Activities    :                                  Activity assignment
                                                          Hiring
                                                   Communication
    so... Role will contain the Worksets and Work sets Contain the Activities...
    Order is like this...
    In Portal Content(Portal ContentDirectory)
    -Roles
    -Pages
    -Worksets
    -iViews
    hope its clear how to create roles concept in EP.
    Thank you ,
    Kalyan.

  • Portal user ID  read in abap webdynpro.

    Hi All,
    We have developed on web dynpro application for Dealer Portal. The Dealer logs into the portal with his ID. How can we capture this Portal User ID of the Dealer in our application.
    The Portal User ID and the R/3 User ID are different.
    I have followed the given steps...
    Step 1
    Within the Main Window of your ABAP Web Dynpro application, select Inbound Plugs tab. Now double click on the Startup Plug Named 'DEFAULT' (or what ever you have called it if you have changed this since window was created).
    Step 2
    Within the plug method HANDLEDEFAULT Add a new importing parameter below 'WDEVENT' parameter call it IV_USER of Type UNAME.
    Step 3
    Now within the code section of the plug method HANDLEDEFAULT you can freely assign the value of IV_User to an attribute of your component controller. i.e. wd_comp_controller->userid = IV_USER. Alternatively you could assign it to a wdp context node / attribute.
    Please note this value will not be available with the WDDOINIT of your main view as WDDOINIT method of this view is called before the window HANDLEDEFAULT method. Put your code into the method WDDOMODIFYVIEW of your main view instead.
    Step 4
    Double click on the webdynpro Application, within the Parameters tab add a new parameter. You should just be able to use the F4 help on the param column and select the IV_USER entry.
    Step 5
    Save your application nad activate your web dynpro
    With the 'Content Administration' tab of your portal
    Step 1
    Create an iview of type ABAP Web dynpro specifying the application name as that of your created wdp (must be exactly the same).
    Key information for creating iView:
    Create as iView template (select template as SAP Web Dynpro iView)
    namespace = sap (check service name in SICF if this is not correct)
    Application Name = ZWDA_EXAMPLE(name of your wdp created in se80)
    Application Parameters = IV_USER=
    Step 2
    Save and setup any other details required when creating any other iView
    but not able toget user id .
    Rakesh

    Hi,
    Why don't you use the sy-uname to get the login details of user.
    Portal users are mapped to R/3 system, so using sy-uname will definitely give the user details.
    Function module to get employee details by passsing user name
      CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
        EXPORTING
          user               =  sy-uname
          iv_with_authority = space
        TABLES
          ee_tab            = lt_ee_tab.
      IF lt_ee_tab[] IS NOT INITIAL.
    Passing employee number to export parameter
        READ TABLE lt_ee_tab INTO ls_ee_tab WITH KEY user = sy-uname.
        IF sy-subrc = 0.
          ev_pernr = ls_ee_tab-pernr.
        ELSE.
          ev_failed = gc_failed.
        ENDIF.
      ELSE.
        ev_failed = gc_failed.
      ENDIF.
    Does this help?
    Thanks,
    Rahul

  • Report on portal User ID and Assign Roles for all portal users

    Hi!
    I would like to know , is there way that we can get a report which shows all the portal user ids with there assign portal roles. If we can't get this from portal. Can we get it from Oracle database ?
    What are the oracle tables and fields which store this information?
    If nay one have a custom develop iview for this please let me know
    Thanks
    Ramesh

    Hi Ramesh,
    as Pascal stated (and as I did above), if developing within the portal is not really new for you, playing around with the UME API is really more or less trivial.
    Check Portal User and Role info as well as User to Role listing for similar requests and code hints / further links.
    Hope it helps
    Detlev

  • Portal User navigation report?

    Hi, i'm just newbie at Oracle Portal and i need to get a user navigation statistical report. The company just like to know which ones of portal users are using this one.
    Does anybody knows a way to do this?, does oracle have any tool for doing it?.
    Regards,

    Hi Florian,
    You can have a look at Metalink Note : 218911.1 - How to Retrieve the SSO Username in Reports.
    You just need to have a User Parameter named "AUTHID" in your Report to access the SSO UserName. Your Reports need to be " SSO Enabled " for this to work.
    Regards,
    Sandeep

  • Are licenses needed for Portal Users?

    Hi, do you need seperate user licenses for users created on the Portals Database (J2EE only) using the MSS and ESS components? We have an HR ECC5.0 system with 700 users, but only about 100 Managers will login to the Portal to do reports via the MSS component. I thought of creating these 100 managers on the Portal (Database Only), and then using Single Sign-On with SAP Logon Tickets connect them to the HR ABAP system where they also have the same user accounts, thus enabling them to do their work seemlessly. I don't want to use the ABAP User Persistence model, as I don't want the Portal UME to pull in all 700 users from the HR ABAP system when we only maintain 100 managers on the Portal for the MSS component. Will user licensing be an issues?

    There is no need to license your Portal users.  The ABAP license is all that is required.  I would check with SAP just to make sure that your license agreement doesn't contradict this but I highly doubt that it will.

  • Count total number of existing Portal users..Urgent

    Hello All,
    im working on EP6 SP9 (and SP12).
    I would appreciate if anyone would please guide me - How can I retrieve total number of existing Portal users (<b>using code</b> & not Activity Reporting).
    This is kinda urgent....please I request you all.
    Thanks in Advance.
    Warm Regards,
    Ritu R HUnjan

    Hi ritu,
    Check this code. This will give you the total no of users and the names of all the users:
    package com.hcl;
    import com.sap.security.api.ISearchResult;
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserFactory;
    import com.sap.security.api.IUserSearchFilter;
    import com.sap.security.api.UMFactory;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    public class PortalUsers extends AbstractPortalComponent
         public void doContent(
              IPortalComponentRequest request,
              IPortalComponentResponse response)
              try
                   IUserFactory userfactory = UMFactory.getUserFactory();
                   IUserSearchFilter userfltr = userfactory.getUserSearchFilter();
                   userfltr.setMaxSearchResultSize(5000);
                   ISearchResult userResult = userfactory.searchUsers(userfltr);
                   int size = userResult.size();
                   response.write("<table><tr><td bgcolor=Green>"+ "Names of the user are:"+ "</td></tr></table>n");
                   while (userResult.hasNext())
                        response.write("<table border=0>n");
                        String uniqueid = (String) userResult.next();
                        IUser user = userfactory.getUser(uniqueid);
                        response.write("<tr><td>"+ user.getDisplayName()+ "</td></tr>n");
                        response.write("</table>n");
                   response.write("<table border=0><tr><td bgcolor=Green>"+ " Total no of users "+ "</td></tr>n");
                   response.write("<tr><td bgcolor=Red>"+ size+ "</td></tr></table>n");
              catch (Exception e)
    I hope this solves your problem
    Regards
    Pravesh
    PS: Please reward points if answer is helpful.

  • Open source user friendly SQL Qyery+Report Builder

    hi guys
    Please help me find any link from where i can download OpenSource user friendly SQL Qyery+Report Builder
    thanks

    One would hope it was!
    it is not possible to give everything that the OP may request. The closest match, now that is workable.

  • How to find out portal user from sso cookie ?

    Hi,
    I want to find out the portal user id from Portal30_sso cookie. It is required for security in my java servlet.
    Thanks
    Vikas

    First of all, you can't get anything from the portal30_sso cookie or the portal30 cookie or the SSO_ID cookie. These are cookies established for (1) The login server session; (2) The Portal session; (3) The login server single sign-on cookie - visible only to the login server.
    When you want to know who the current user is, you need to establish the context. If your servlet is standalone and not a partner application to the login server and it's not a portlet, etc., then what context does it have? What concept of users does it have? If you are really asking what Portal is currently logged on, that is still a loaded question. The user's browser could be accessing several portal's at the same time, each with a different identity. What I am getting at is that your servlet needs to somehow be associated with a particular portal before it can even think of asking this question.
    The ways to associate your servlet with a portal would be
    [list=1]
    [*]Make it a partner application
    [*]Make it a portlet
    [*]Make it an external application
    [list]
    Hope that helps.

  • Portal User details and credentials for a J2EE application?

    Hi,
    I am trying to access a J2EE application which is deployed in  SAP Web Application Server. I want to maintain the security of this application depending the portal user. So I want to get the user id of the portal login to my J2EE application. For Example:
    A user with id "super" is logging into portal I want the userid "super" in my J2EE application how to get the userid to my J2EE application's servlet. Is this possible? If possible please tell how I can acheive it?
    Can I do it by creating HTTP System? If possible can u tell me where can I set the URL?
    Thanks,
    Ashok.

    hi,
    Certainly you can get the user id of the portal login in your J2EE application by using UME api's
    IUserFactory userFact = UMFactory.getUserFactory();
    getUserFactory().getUser(String uniqueID)
    getUserFactory().getUserByLogonID(String logonID)
    Also have a look at this
    http://help.sap.com/saphelp_nw04/helpdata/en/15/abdc3ed98f7650e10000000a114084/frameset.htm
    Instead  of url iview, it would be better to use AppIntegrator
    Also have a look at this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/using the user management api with ep applications.pdf
    Hope it helps...
    Regards,
    Ganesh N
    Hope it helps...

  • Many Portal users mapping one R/3 user and query their own data ?

    Hi everyone :
      I want to discuss a issue as follow with all :
      Precondition : The SSO had done between Portal and R/3.
      Issue : Many Portal user(vendor) mapping one R/3 user(pulic vendor user),when they logon Portal, they can query the report, but the data was for the vendor logon now !
      Any discuss is welcome!
      Best Regards,
      Jianguo Chen

    Hi everyone :
      I want to discuss a issue as follow with all :
      Precondition : The SSO had done between Portal and R/3.
      Issue : Many Portal user(vendor) mapping one R/3 user(pulic vendor user),when they logon Portal, they can query the report, but the data was for the vendor logon now !
      Any discuss is welcome!
      Best Regards,
      Jianguo Chen

  • How to allow normal/regular users to view a report

    I have been compiling reports in MS SQL 2012 Reporting Services.  the URLs is
    http://test_report:80/reports. I have no problem with viewing the reports because I am an admin but normal users are getting access denied.  this is how I assign permission to user.  Open Reporting Services
    Config Mnger --> Connect --> Click on Report Mnger URL --> click on
    http://test_report:80/reports --> Open a another folder called Reports.  In this "Reports" it has many reports.  --> Click on Folder Settings --> Click on Security --> Click on "New Role Assignment"  -->
    In "Group or user name" text box, I entered user network computer login name, such as: domain_name\bambi --> Ensure "Browser" is checked --> Ok.  I send this weblink to users but they cannot open it because of either access denied
    or not have permission. 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fCorp_Reports%2fReportOfTimeInLieu.  I am unsure why users cannot view my reports.  Please let me know if I had missed any step(s).  I use the Report Builders in Reporting Services
    Config Mnger to compile reports.  Regards,

    so this web link will lead me to Home page:
    http://myservername/Reports/Pages/Folder.aspx.
    at the home page I have folder called Reports: 
    http://myservername/Reports/Pages/Folder.aspx?ItemPath=%2fReports&ViewMode=List
    inside  Reports folder, I have multiple reports, ie: 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfTimeInLieu,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfVacationTime,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfSickDays,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfConferenceDays
    On Home page I click on Folder Settings --> Security --> New Role Assignment --> Group or User name: domainname\bambi --> Role = Browser
    On Home page I click on Site Settings --> Security --> New Role Assignment -> Group or User name: domainname\bambi --> Role = System User
    On Home page I open Reports folder --> Site Settings --> Security --> new Role Assignment --> Group or User name: domainname\bambi --> Role = System User
    Is this how I enable user bambi to 1) enable to open Reports folder and also browse for reports in Reports folder  2) enable user bambi to execute all reports in Reports folder.
    Problem:  user bambi was able to open Reports folder and see all reports saved in it; however, bambi gets a blank page upon selecting a report and open/run it.  bambi should see company logo and report name.  It was a blank white page.
    What did I do incorrectly?
    Thanks,

Maybe you are looking for