How to find out who is logged into portal through webdynpro application

hi,
whenever anyone logs in through the portal and runs a webdynpro iview, the webdynpro application should be such that it gives the name of the user logged in.
Eg, if i logiin and run the webdynpro iview, the application should display that I have logged in.
how can this be done?
its urgent.

add the jar file com.sap.security.api.jar
IWDClientUser wdUser = null;
IUser user = null;
IUserAccount[] acct = null;
  try
     wdUser = WDClientUser.getCurrentUser();
     user = wdUser.getSAPUser();
     if (user!=null)
          acct = user.getUserAccounts();
          if (acct[0] != null)
               strUserID = acct[0].getLogonUid();
               wdContext.currentContextElement().setCa_UserId(strUserID);
          else
               strUserID = "acc is null";
     else
          strUserID = "user is null";

Similar Messages

  • How to Find out who is login into the Portal.

    Hi Friends ,
    I have one doubt  Now I have one Requirement. i.e.
    How many members (users) login in to the Portal?
    In what time they login into the portal?
    How many times hits the iView in  Portal?
    Who is last login into the portal?
    I have find out these details by using these details I will create one Iview.
    How to find these details. By using these details I will created one iView. Kindly  let me know.
    Could you tell me those
    1.     Is it creating Portal Activity Report iView in Portal?
    2.     By using WDJ Application we can create one Application. By using this application we can create iView?
    Regards
    Vijay Kalluri

    Hello Vijay,
    If you are interested in a 3rd party application with all the stats you need and more, check out Click Stream by Sweetlets. Easy to download and user friendly with many key reports quickly accessible. It also answers some of the questions you had above a whole lot simpler than anything else out there or any other route you had in mind.
    In the very near future Click Stream will also have iView recording to monitor iViews, telling which iViews have been clicked, etc. Also, the one you were looking for, "who the last login into the portal", will soon be added.
    Click Stream uses the Usermanagement (UME) API to get more information about the user, groups, roles, LDAP attributes etc. and offers you the ability to use such information for filtering within any report.
    Click Stream also uses the PCD API to get information about the pages your users are visiting.
    Here are some reviews on the SAP EcoHub from people who have used it: http://ecohub.sdn.sap.com/irj/ecohub/solutions/clickstream
    Please just let me know if you have any question or if you are open to test drive Click Stream. We will certainly help as best as we can.
    Good luck.

  • CRM Release confirmation for billing (how to find out who released)

    Hi All,
    Does anybody know how to find out who released a confirmation for billing. Tx for releasing is /BEA/CRMB02. After releasing the confirmation for billing it will show up in /BEA/CRMB01. But there is no way to find out who released the confirmation since there is no change log. Or is there a change log?
    Does anyone know the answer?

    You will need to use 'grep' from the CLI of your appliance(s) in order to view the mail_logs and gui_logs.  Use "released" in the mail_logs to get the timeframe of when the mails in question were released.  (You may need to verifiy the MID for the mails in order to verify the particular ones in question.)  
    Enter the regular expression to grep.
    []> released
    Then use 'grep' again to search the timeframe in gui_logs.  This should display who carried out the action, or what userID they were logged in with --- showing "user:<userID>" in the log line.
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • How to find out who's texting you from an iCloud email address?

    how to find out who's texting you from an icloud email address?

    OK after a bit of research I found a way to achieve this.
    I simply looked up the email address in ADUC, then did a search in SP with the display name. I could locate the list and manually confirm it was configured with the incoming email address I was looking for.
    I also found the below script on Stackoverflow, but got "The 'using' keyword is not supported in this version of the language." when I tried to run it. Any idea how to fix that? I'd like to have a script to link a library to an email address istead of the
    manual approach described above.
    http://stackoverflow.com/questions/4974110/sharepoint-how-do-i-find-a-mail-enabled-list-if-i-only-have-the-email
    $SiteCollection = ""
    $EmailAddress = "" # only the part before the @
    # Load SharePoint module if not done yet
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
    cls
    using System;
    using Microsoft.SharePoint;
    namespace FindListByEmail
    class Program
    {a
    static void Main(string[] args)
    string siteUrl = $SiteCollection;
    string email = $EmailAddress;
    using (SPSite site = new SPSite(siteUrl))
    foreach (SPWeb web in site.AllWebs)
    try
    foreach (SPList list in web.Lists)
    if (list.CanReceiveEmail)
    if (list.EmailAlias != null && list.EmailAlias.Equals(email, StringComparison.InvariantCultureIgnoreCase))
    Console.WriteLine("The email belongs to list {0} in web {1}", list.Title, web.Url);
    Console.ReadLine();
    return;
    finally
    if (web != null)
    web.Dispose();

  • How to find out who has released the purchase order?

    Hi All,
    I have a PR number lets say 10231322 and somebody has release it. Could any one please tell me how to find out who has release it?
    Waiting for your kind replies......
    Thanks in advance.
    Regards,
    Faisal

    Hi,
    When you are in tr ME23N, use the menu: environment > header changes.
    Rgds,
    Suzy

  • How to find out who has deleted the production Query

    Hi All,
    I have searche SD , i can find it for infoobject deletion but i couldn't find it for Query.
    Please let me know is there any possiblity to kow
        How to find out who has deleted the production Query
    Awaiting for your replies.
    cheers

    Hi Mahesh and all,
    Thanks for all your  inputs.
    I have tried with RSRREPDIR tabel , I am unable to see that query at all.
    If I use theT-code SLG1,
      please guide me on the steps with paramets to be given in the respective ..object, subobject etc..
    OR
    could you please suggest any other way.
    cheers
    leena

  • How to find out who had deleted the function moldule? S O S

    how to find out who had deleted the function moldule Thank you very much.

    if this fm was assigned to device class (package) you'll find it in
    tables tadir, e070, e071
    try with name of function module or function group
    hope that helps
    Andreas

  • How to find out responsibility attached for particular user through query

    hi
    How to find out responsibility attached for particular user through query
    Regards
    9841672839

    Hi,
    Following sql will help you find the responsibilities associated with the users in oracle applications.
    SELECT frt.RESPONSIBILITY_NAME, furg.end_date
    FROM
    fnd_user_resp_groups furg,
    FND_RESPONSIBILITY fr,
    fnd_responsibility_tl frt,
    fnd_user fu
    WHERE fu.user_name = ‘&&username’
    AND fu.user_id = furg.user_id
    AND furg.responsibility_id = fr.RESPONSIBILITY_ID
    AND frt.responsibility_id = fr.RESPONSIBILITY_ID
    ORDER BY 1
    Cheers...

  • System log - how to find out who has deleted the req from cube.

    ^hello friends
    how can i find out who has deleted the request from cube ?
    i wanted to check the system log , that who has deleted the request from cube .
    could you please let me know how to check the same ?
    regards
    manoj

    Hi,
    Did you try the method I had suggested. It will work.
    Also its better to try the path I had suggested as it will display the logs for that particular Cube only.
    But if go through SM37 > B_DEL* it will display all the logs for all the deletion jobs not just this cube and it will be difficult to find out.
    Try that and you should get the log.
    Thanks,
    JituK

  • How to find out who deleted the central person ID of a pernr.

    Hi,
    I have a pernr 100 whose central person ID is deleted. I would like to know how can i find out who deleted it. Which table gives this information.
    Thanks & Regards,
    Soumya.

    It is stored as a relationship in HRP1001 & unless you have table logging turned on for this db table, I don't think you will be able to find out who deleted the Central Person. You can try running the Report RHCDOC_DISPLAY .
    ~Suresh

  • How to find out who deleted a Bank Number

    Hi Guru,
    How can I find out who deleted a bank number for a particular country. Thanks!
    Regards,
    Ajit

    Hi,
    Go to SCU3 transaction, enter the relevant object and you will see the logs.
    Regards,
    Eli

  • How to find out who deleted the directory in Unix

    Hi Experts,
    In my system some body tampered the directories, and more over some body deleted the bin directory under the /usr/sap/trans in Unix operating system. now i am checking to find out who deleted and for the more logs.
    i am unable to find out the user name and deleted directory logs..i know its completely related to the unix level but mean time i am searching for the same.
    Any ideas and clues will be heighly appreciated.
    -Srini

    To know the OS would have been helpful
    First ask the people around you if anybody did it, maybe he is man enough to admit...
    Try to find out who logged at the time when the directory was deleted.
    - check the OS syslog (/var/adm/syslog/syslog.log for hp-ux, /var/log/messages for linux)
    - try the last commando to get a list of who logged on when
    - check the command histories of the sidadm, root user, use the history command, or the h alias
    - check if there are scripts running, which regularly delete files
    As the trans directory might be NFS mounted to other servers, you might need to do the checks there too.
    Best regards, Michael

  • How to find out who your administrator is and why I can't view certain things even on this web sight business account is what I have

    How do I find out who my administrator is and why I can't view certain things and get error 401 says i am an unauthorized user
    It is a small business which doesn't make sense why I shouldn't be able to access certain pages  on the Internet
    I believe my husband is the administrator actually
    Plus 404 and 403

    If you are referencing a specific web site, there is no way to determine who is set up as administrator. Contact the web site directly.
    Barry
    P.S. As a note, you already received an answer to your "401" question. Please do not rephrase a question and post it again. We are volunteers here and do not like to answer something that has already been addressed.
    Message was edited by: Barry Hemphill

  • How to find out who provocates locking of SAP account?

    Hi,
    we have the problem that someone obviously tries to annoy one of our SAP users
    by provocating the locking of the SAP users account due to too many attempts to
    log on with the wrong and unknown password. That's pretty aggravating for us so
    that we are looking for a possibility to find out WHO (IP-address?) is
    bantering the SAP user! Is it possible to find that out? Syslog (SM21) doesn't
    show anything!
    Thank you,
    Rainer

    Hello Rainer,
    Please find the below link which will be help of some use:
    Locked user information
    Rgds,
    Gadde

  • How to find out which archived logs needed to recover a hot backup?

    I'm using Oracle 11gR2 (11.2.0.1.0).
    I have backed up a database when it is online using the following backup script through RMAN
    connect target /
    run {
    allocate channel d1 type disk;
    backup
    incremental level=0 cumulative
    filesperset 4
    format '/san/u01/app/backup/DB_%d_%T_%u_%c.rman'
    database
    }The backup set contains the backup of datafiles and control file. I have copied all the backup pieces to another server where I will restore/recover the database but I don't know which archived logs are needed in order to restore/recover the database to a consistent state.
    I have not deleted any archived log.
    How can I find out which archived logs are needed to recover the hot backup to a consistent state? Can this be done by querying V$BACKUP_DATAFILE and V$ARCHIVED_LOG? If yes, which columns should I query?
    Thanks for any help.

    A few ways :
    1a. Get the timestamps when the BACKUP ... DATABASE began and ended.
    1b. Review the alert.log of the database that was backed up.
    1c. From the alert.log identify the first Archivelog that was generated after the begin of the BACKUP ... DATABASE and the first Archivelog that was generated after the end of the BACKUP .. DATABASE.
    1d. These (from 1c) are the minimal Archivelogs that you need to RECOVER with. You can choose to apply additional Archivelogs that were generated at the source database to contininue to "roll-forward"
    2a. Do a RESTORE DATABASE alone.
    2b. Query V$DATAFILE on the restored database for the lowest CHECKPOINT_CHANGE# and CHECKPOINT_TIME. Also query for the highest CHECKPOINT_CHANGE# and CHECKPOINT_TIME.
    2c. Go back to the source database and query V$ARCHIVED_LOG (FIRST_CHANGE#) to identify the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the lowest CHECKPOINT_CHANGE# from 2b above. Also query for the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the highest CHECKPOINT_CHANGE# from 2b above.
    2d. These (from 2c) are the minimal Archivelogs that you need to RECOVER with.
    (why do you need to query V$ARCHIVED_LOG at the source ? If RESTORE a controlfile backup that was generated after the first Archivelog switch after the end of the BACKUP ... DATABASE, you would be able to query V$ARCHIVED_LOG at the restored database as well. That is why it is important to force an archivelog (log switch) after a BACKUP ... DATABASE and then backup the controlfile after this -- i.e. last. That way, the controlfile that you have restored to the new server has all the information needed).
    3. RESTORE DATABASE PREVIEW in RMAN if you have the archivelogs and subsequent controlfile in the backup itself !
    Hemant K Chitale

Maybe you are looking for

  • Why does i photo not launch when i click on icon in dock?

      Help why does i photo not launch when i click on icon in dock?

  • Project Detail History

    Hi, I am using project server 2010,I have requirement to show the project details history value,is it possible I can fetch the version history of project details custom fields value. Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consulta

  • Best Practice for Empty Dataset

    Does Spry know the difference between an empty dataset, a blank xml document and a bad formatted xml document? If so How do I test for empty dataset vs blank xml vs bad formatting? Currently, when no data is available the application returns a blank

  • Dts audio does not open anymore

    what is thewre to be done to reopen it

  • Default column width in pixels? - Numbers app

    I find the pixel count hard to see until i've moved my finger, does anyone know the default column width in pixels in the Numbers iOS app? Thanks!