Which Portal user based upon SID

I can use 'wwctx_api.get_user' to determine who is executing a particular session. But based upon the SID of a session how can I tell which Portal user is executing?

Assuming that you know the session id (SID), you can get the portal user executing that session using the following query:
    select user_name
    from wwctx_sso_session$
    where id = &sessionId;
For all the authenticated portal sessions it will return the user id of the authenticated user and for the unauthenticated portal sessions it will return PUBLIC.

Similar Messages

  • How can I find out which portal users are logged in portal?

    Hi
    I need to know where can i find information about which portal
    users are currently logged in to portal. Are there any api or
    built-in functions which will help me find out this information?
    Thank you for your immediate help!!

    I too would like to find out which users are loggeg on. We need
    to restrict users to one login or session if possible.
    Thanks,
    Tom Henricksen

  • Report based upon material type against movement type for a period ?

    i need a inventory report which should be based upon materil type & movement type for a particular period.
    For example- for last monthe how much Raw material has been issued againast production order. i would like report to allow me  ROH and movement type 261/262 and period entry. MB5B does not satisfy my requirements, ist of all there si no material type/secondly it restricts itself if i use movement types
    thanks
    sam

    Hi,
    You can create a small program to get report.
    Input fields Date of posting BUDAT, Movement type BWART (Plant if required).
    Check field BUDAT (Posting Date. Should check based on input date field.) In table MKPF.
    If data falls in required date range. Pick MBLNR-MKPF (Mat doc number).
    Go to table MSEG compare MBLNR-MKPF and MBLNR-MSEG if same pick field MATNR-MSEG (Mat number).
    Go to MARA check MTART-MARA for picked MATNR-MARA (in previous step). Take the material type.
    Add the below fields to out put
    MATNR, MTART, BWART-MSEG (Movt type), ERFMG-MSEG (quantity posted), WERKS-MSEG (Plant received), LOGRT-MSEG (S. Loc received).
    Please take advise from ABAPer regarding prog logic
    Thank you,
    Anand K

  • Expire OIM User based on End Date

    This is a query on expiring an OIM User based on end date.
    Does OIM need any configuration for it to expire the user based upon end date?
    The start date seems to work well as expected but the end date doesn't.
    Even after the end date has arrived the OIM User is not being expired.He is still able
    to login into OIM without any issues.
    Thank you

    Theres a scheduler task that has to be run to check the date and deactivate the users.

  • How to go about changing settings based upon logged in user

    Hi all,
    I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user.
    For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for an author have the value of /apps/myComponent/settings.path=/content/dam/sandbox, and for an approver have the value of /apps/myComponent/settings.path=/content/dam/approvalsandbox

    Hi Ove,
    Thanks for the tip on the user role. I had thought about taking that approach, however, leveraging the user role and properties associated with it would be the correct approach if writing custom components. What I am looking for is a way to take existing components, and essentially use them in context of the user.
    For example, say if you are trying to give a sub group of users access to a subset of the DAM directory, and you don't particularly wish to hack around the existing WCM DAM component, there is a setting in the tree navigator (/libs/wcm/core/content/damadmin/treeRoot) that lets you specify where the root of the tree is. (There are more settings to work with, but this is just one used to illustrate.)
    If you can change the property based upon the user, that gives you the functionality without altering code.
    I would like to know if this is possible, if this is an inherently bad practice, if so why, and whether there may be another alternative out there which lets you avoid having to alter the code of an existing component.
    Thanks again for answering.

  • ISE posture based upon switch user is connected to

    OK, I am a new ISE user and definitely an early beginner on creating ISE policies. I have successfully created a policy that can determine if you are using a corporate asset or not and using 802.1x authentication grant you access to corporate resources or not. This policy also assigns the VLAN the user is placed into. Seems to work quite well so far at least as a baby step in policy creation.
    Our building has different VLANS based upon floors and the like and I would like the policy(s) take this into consideration when assigning the VLAN. Is there a way to include which switch the postureing process is flowing through to assist in assigning the VLAN? I am thinking I would have separate policies based upon the switch / stack but not sure how to include that in the logic. I figured it would be similar to my policy where I check corporate assets and that you are wireless and that you have a valid AD account but have been unable to figure out the endpoint part. I have created network groups for my network devices but am stumped after that. Is there something else I should or could be doing instead? Do I need a completely different train of thought?    
    Brent

    Hello Brent, using "Network Device Groups" can definitely make this possible for you. For instance, you can create a "Location" based group hierarchy that looks like something like this:
    All Locations > HQ > Floor-1
    All Locations > HQ > Floor-2
    All Locations > DR > Floor-1
    etc
    Then you can reference that group in your authorization policy by using something like this
    If "Conditions > Device > Location" = All Locations > HQ > Floor-1
    then
    Permissions = "HQ_Floor-1-Posture"
    If "Conditions > Device > Location" = All Locations > HQ > Floor-2
    then
    Permissions = "HQ_Floor-2-Posture"
    I hope this helps and addresses your issue. 
    Thank you for rating helpful posts!

  • Users based on Portal Group

    Hi all,
    Is there any table or RFC which contains the Users based on Portal Group in ECC.I need to writa a programme which extracts the users based on poratal group.
    Thanks and Regards,
    Venkat

    Hi Venkat,
    To get users of a group:
    boolean b =false;
    String name = null;
    IGroup grp = UMFactory.getGroupFactory().getGroupByUniqueName("GroupName entered by User as a input");
    if(grp.equals("<Name of Group>"))
           Iterator i = grp.getUserMembers(true);
           grp.getGroupMembers(true);
           for (int a= 0; i.hasNext(); a++)
                  name = i.next().getClass().getName();
                  //Print / Store Name
    Regards,
    Vaibhav

  • Searching PRODUCT column based upon user's input

    I have table in Oracle with one column PRODUCT. Column PRODUCT have following values -
    Account Management
    Active Directory
    NT Account
    Application Security
    Beehive Conference
    WebSite Account
    HP Laptop
    I am designing application where I need to search in column PRODUCT based upon user's input. Lets say user wants search on 'Laptop Account Broken'.
    I want to search for all rows in PRODUCT column which contains any of words in user's input. So based upon user's input I want output like below.
    Expected Output
    Account Management
    NT Account
    WebSite Account
    HP Laptop
    I need your help to write me SQL for my desired output. please help -

    You can use Regexp_like instead of Instr ;)
    PRAZY@11gR2> exec :user_input:='Laptop Account Broken';
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    PRAZY@11gR2>
    With TableA As (
    select 'Account Management' Product from dual union all
    select 'Active Directory' from dual union all
    select 'NT Account' from dual union all
    select 'Application Security' from dual union all
    select 'Beehive Conference' from dual union all
    select 'WebSite Account' from dual union all
    select 'HP Laptop' from dual
    --End of sample data
    ,Temp as
    (select regexp_substr(:user_input,'[^ ]+',1,level) str from dual
    connect by level <= length(regexp_replace(:user_input,'[^ ]+'))+1)
    select product from tableA,temp where
    regexp_like(product,str)
    PRAZY@11gR2> /
    PRODUCT
    HP Laptop
    Account Management
    NT Account
    WebSite Account
    Elapsed: 00:00:00.00or...
    PRAZY@11gR2> exec :user_input:='Laptop Account Broken';
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    With TableA As (
    select 'Account Management' Product from dual union all
    select 'Active Directory' from dual union all
    select 'NT Account' from dual union all
    select 'Application Security' from dual union all
    select 'Beehive Conference' from dual union all
    select 'WebSite Account' from dual union all
    select 'HP Laptop' from dual
    --End of sample data
    select distinct Product from tableA where
    regexp_like(product,regexp_substr(:user_input,'[^ ]+',1,level))
    connect by level <= length(regexp_replace(:user_input,'[^ ]+'))+1
    PRODUCT
    Account Management
    NT Account
    WebSite Account
    HP Laptop
    Elapsed: 00:00:00.06Cheers!

  • Derive values based upon user input

    Hello,
    I recieved a request for a report.
    When a user runs the report they are to be prompted for a fiscal year/period.
    Based on the fiscal year/period that the user provides I have the following columns  (in bold below are 2 examples that may make the description more clear).
    1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
    2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
    3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
    4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
    Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
    1. Revenue for 2006
    2. Revenue for 04/2007
    3. Revenue for 01/2007 to 04/2007
    4. Revenue for 01/2006 to 04/2006
    Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
    1. Revenue for 2007
    2. Revenue for 12/2007
    3. Revenue for 01/2007 to 12/2007
    4. Revenue for 01/2006 to 12/2006
    Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
    Thanks,
    Nick
    (points available)
    Edited by: Nick Bertz on Mar 13, 2008 9:43 AM

    Hello,
    See my example.. I am reading the value from Keydate Variable
    WHEN ZVND01
            READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
             IF SY-SUBRC = 0.
              CLEAR l_s_range.
              l_date = w_var_range-low.
              concatenate l_date(6) '01' into l_first_date.
              CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                        day_in = l_date
              IMPORTING
                         last_day_of_month = l_last_date
              EXCEPTIONS
                        day_in_not_valid = 1
                        OTHERS = 2.
              IF sy-subrc EQ 0.
                l_s_range-low  = l_first_date.
                l_s_range-high = l_last_date.
                l_s_range-sign = k_sign_inclusive.
                l_s_range-opt  = k_option_between.
                APPEND l_s_range TO e_t_range.
              ENDIF.
    Hope this example helps..

  • Create maintenance order based upon notification in NWBC / Portal

    Dear experts,
    How to create a maintenance order based upon a notification, using the POWL for notifications ?
    I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
    In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
    How can I get the same functionality using  the role SAP_BPR_MAINTENANCE_TECH_12 ?
    Kind regards,
    Dirk

    Dirk,
       You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
      What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a  Bug  and maybe you could raise a OSS Note for the same.
    Regards
    Narasimhan

  • Create order based upon notification in NWBC / Portal

    Dear experts,
    How to create a maintenance order based upon a notification, using the POWL for notifications ?
    I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
    In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
    How can I get the same functionality using the role SAP_BPR_MAINTENANCE_TECH_12 ?
    Kind regards,
    Dirk

    Dirk,
       You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
      What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a  Bug  and maybe you could raise a OSS Note for the same.
    Regards
    Narasimhan

  • Filtering entries in BP search based upon user

    Hi
    We are trying to filter out results shown in BP search, based upon users. For that we are trying to follow steps mentioned in IMG
    SPRO->IMG-> Customer Relationship Management -> CRM Cross-Application
    Components -> Generic Interaction Layer/Object Layer ->
    Component-Specific Settings -> Extend Object Model for Business Partner
    The field(region) we are using is already present in structure CRMST_HEADER_SEARCH_BUIL and as per my understanding we will be using method Adjust_Result_Table.
    But still I am not able to resolve it. Please help me in this regard.
    Thanx & Regards
    Hits

    Hi,
    The object that we work with at 2007:
    BuilHeaderSearchNew
    and not BuilHeader like at the last version
    so, we have to implement CL_BUPA_IL_HEADER_SEARCH and not CL_BUIL_HEADER
    1. Create :
    ZCL_BUPA_IL_HEADER_SEARCH
    with superclass:
    CL_BUPA_IL_HEADER_SEARCH
    2. At customizing:
    SPRO->CRM->Cross Application components->Generic Interaction Layer/Object Layer->component specific setting ->Extend Object Model for Business Partner
    add:
    External Object Name - BuilHeaderSearchNew
    Implementation Class - ZCL_BUPA_IL_HEADER_SEARCH
    Nou you can use this method for changing the result:
    ZCL_BUPA_IL_HEADER_SEARCH ->GET_RESULT_TABLE
    good luck
    ayelet

  • 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

  • ADF BC: Creating updatable VO based upon DB View with "instead of" trigger

    Hello all,
    I have got an interesting issue. I have an Oracle DB view that is used to hide some complexity in the underlying DB design (it does some unions). This view is updatable because we have created an "instead of" update trigger to update the correct table when a row is updated. This is working fine in SQL.
    Next, we have created an ADF Entity object based upon the view, specifying an appropriate PK for the DB View. Then, we have created an updatable VO based upon the EO. All well and good so far. The issue we have is in trying to commit changes to the DB - because the ADF BC framework is trying to lock the row to update (using SELECT ... FOR UPDATE), it's not working because of ORA-02014 - cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    This leads me to thinking about overridding doSelect() on the EO as hinted here http://radio.weblogs.com/0118231/stories/2005/07/28/differenceBetweenViewObjectSelectAndEntityDoselectMethod.html
    As a temporary test, we have over-ridden the EO's doSelect to call super.doSelect(false) and it does work, although we will have lost update issues as detailed in Steve's article.
    My questions:
    1). Is overriding doSelect() the correct thing here? Perhaps there is a better way of handling this problem? I do have a base EO class from which all of the EO's extend, so adding this behavior should be straightforward.
    2). Does anyone have example doSelect implementation? I am thinking of overriding doSelect for my EO and calling super.doSelect (lock=false), but then I need to deal with some possible exceptions, no?
    Kind regards,
    John

    Hi John,
    I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
    My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
    In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
    Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
    Many thanks,
    Dave
    London

  • WHAT IS THE MECHANISM FOR AUDITING PORTAL USER ACTIVITY

    Is there any default mechanism for auditing a portal users access to
    tables. At the DB level, we are seeing the portal_public user but we want to see the portal user instead; e.g. we need to report on activity such as: portal user johndoe deleted a row of data from a table.
    johndoe is only a portal user not a database user.
    We are trying to keep from writing additional custom code to auditing. We are
    using wwctx_api.get_user_id in other parts of the application and we would like
    to avoid writing a custom auditing module.

    William,
    I'm not sure if this is what you are looking for, but...
    When you create (or edit) a component in Portal 10g, there is a Log Activity check box. If you check this box, then go to Manage the component (in the Portal Navigator), there are Develop, Manage and Access tabs. The Manage tab has a Monitor icon, which has the information you may be looking for. This does not seem to be available directly for database tables. However, I created a Calendar, based on a database table I created to keep track of the Calendar Events. I also created a form to allow users to add Calendar Event entries. I turned logging on for both components. The Monitoring allows me to see when each user has accessed the Calendar, and who and when they insert, update or delete entries from the Calendar table.
    -Ricky Burke

Maybe you are looking for

  • Difference between UPLOAD and WS-UPLOAD?

    hi, I think upload is using classes and ws_upload is outdated. If iam wrong plz tell me the answer.

  • Error Ipod Touch Stuck In Recovery Mode

    hey guys ive got an ipod touch and after updateing it today to 2.2.1 it now wont turn on it is showing the itunes icon and usb connector ive plugged it back in to the computer i installed the update on and it says this ipod is in recovery mode ive tr

  • Messages stuck in outbox when using "Send to Mail recipient" and outlook is closed

    A user who uses RPC over https all the time on his desktop in the office. In general he has no problem to send/receive emails. But when he tried to send a File through right click - > send to -> Mail recipient , New Email window opens and He changes

  • Application builder 7.1 sous Xp ne marche pas avec vista

    Bonjours, J'ai créé un VI simple avec Labview7.1 pour communiquer avec une carte electronique via RS232 (avec NI-VISA 4.2). Aucun pb pour faire fonctionner le VI sur l'ordi source (sous XP). J'ai créé sans pb une application déployée qui fonctionne s

  • AIX - Oracle Application Server  10.1.3 Sofware

    Hi All, We downloaded the AIX version Oracle Application Server 10.1.3 from Oracle WebSite and tried installing the same in our AIX Machine. But we are getting an error saying that the file has been corrupted. We downloaded using download director fo