Finding Windows Login details from R3 system

Friends,
   We have a requirement where we need to find the Windows login user ID of an employee from a SAP report. In the report we will be having a button. whenever we click on the button we should get that particular user's windows login ID.
The report will have SAP user ID.
Can you please help me out in this regard? Thanks in Advace.
Regards,
Sreethan

Use the FM GUI_GET_DESKTOP_INFO . Pl. refer the program given below for details.
REPORT ZEXAMPLE.
DATA: V_VALU(255)       TYPE C,
      INFOREQ           TYPE I VALUE '-2'.
WHILE INFOREQ NE 13.
  CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
  EXPORTING
TYPE   = INFOREQ
  CHANGING
RETURN = V_VALU.
  CASE INFOREQ.
    WHEN '-2'.
      WRITE:/ 'SAP SYSTEM DIRECTORY:', V_VALU.
    WHEN '1'.
      WRITE:/ 'COMPUTER NAME:', V_VALU.
    WHEN '2'.
      WRITE:/ 'WINDOWS DIRECTORY:', V_VALU.
    WHEN '3'.
      WRITE:/ 'WINDOWS SYSTEM DIRECTORY:', V_VALU.
    WHEN '4'.
      WRITE:/ 'TEMPORARY DIRECTORY:', V_VALU.
    WHEN '5'.
      WRITE:/ 'WINDOWS USER NAME:', V_VALU.
    WHEN '6'.
      WRITE:/ 'WINDOWS OS:', V_VALU.
    WHEN '7'.
      WRITE:/ 'WINDOWS BUILD NUMBER:', V_VALU.
    WHEN '8'.
      WRITE:/ 'WINDOWS VERSION:', V_VALU.
    WHEN '9'.
      WRITE:/ 'SAP GUI PROGRAM NAME:', V_VALU.
    WHEN '10'.
      WRITE:/ 'SAP GUI PROGRAM PATH:', V_VALU.
    WHEN '11'.
      WRITE:/ 'SAP CURRENT DIRECTORY:', V_VALU.
    WHEN '12'.
      WRITE:/ 'DESKTOP DIRECTORY:', V_VALU.
  ENDCASE.
  INFOREQ = INFOREQ + 1.
ENDWHILE.

Similar Messages

  • I NEED TO GET LOGIN AND LOGOUT TIMING DETAILS FROM CLIENT SYSTEMS

    HI,
    CAN ANYONE PLEASE HELP ME ON HOW TO GET LOGIN AND LOGOUT , CLIENT EVENT DETAILS FROM CLIENT SYSTEMS ON SERVER 2008 R2.
    THANKS,
    KUMAR.

    You may need to enable active directory Logon/Logoff Audit event.
    The Audit logon events policy records all attempts to log on to the local computer, whether by using a domain account or a local account.
    On Domain Controller, this policy records attempts to access the DC only.
    By using these events we can track user's logon duration by mapping logon and logoff events with user's Logon ID which is unique between user's logon and logoff.
    Please refer to this blog to understand the complete process to audit the successful or failed logon and logoff attempts in the network using the audit policies :
    http://www.lepide.com/blog/audit-successful-logon-logoff-and-failed-logons-in-activedirectory/
    Lepide - Simplifying IT Management

  • Hi I have a issue regarding how to find the Account details from BDOC

    Hi I am new to Middleware and i am facing a issue.
    I have a requirement where i have to find the account details like 'acc id, acc name', etc & the 'transaction status' from the unprocessed BDOCS from CRM to ECC.
    Actually the data flows from Oracle - Siebel - Crm - Ecc. Their is no problem from Oracle to Crm but the problem lies btw CRM & ECC.
    The problem is we have some un-processed Bdocs fron Crm to Ecc for which for every account details changed a new Bdoc have been created and those changed Bdocs have to be found and we should know the account details (like Acc id, Acc name) & Transaction Status for all the generated Bdocs and get them into one Excel sheet. suggest me for any tables to see the details.
    Thankyou,
    vamshi

    Hi Vamshi,
    the BDocs are stroed in tables SMW3_BDOC, SMW3_BDOC1, ..., SMW3_BDOC7. SMW3_BDOC contains the header data of the BDoc, the other tables further information. Getting the informations you want from the BDocs won't be easy, as you will have to map the BDoc structure to the correct ABAP structure depending on the BDoc type.
    Having said this I wonder what you are trying to achieve. For example, which state are the BDocs in? Unprocesses, partially processed, failed? What do you want to do once you have the list of BDocs? Check the accounts manually, reprocess the BDocs (all or only some of them), trigger the updates in the source system again? Depending on the answers to these questions it might well be possible that you could simply use the standard tools provided by SAP. The BDoc monitor (SMW01), for example, allows to select BDocs by type, status, queue name. Depending on you MW configuration the queue name might already contain the account ID ans so there would be no need to write a custom report.
    Best,
    Christian

  • How to find the database details from server audit specification with successfull login group?

    Hi,
    We have created a server audit for successfull logins.When we read the audit file using
    sys.fn_get_audit_file we find that all the fields related to the databases
    ie database_principal_id,database_principal_name,database_name are either 0 or null.
    Is there a method to find out to which database the login is accessing from the server
    audit specification of successfull login group.Although the logins are reading and writing
    data to the databases why there are no details of the databases?
    Thanking you in advance,
    Binny Mathew

    Hello Binny,
    The logins are used to connect to the instance and the access to the databases is performed via database users. So, once you connect to the instance via your login, the server level audit takes this action, records it, but without caring to which databases
    you want to connect after that. 
    Unfortunately there is no similar action group on the database audit specifications, that can track which user connected to the DB, except if you are using contained databases in SQL 2012.
    Probably you can share why you need such information and if there is something else specific that you wish to achieve, so we can propose a different solution/audit configuration.
    Regards,
    Ivan
    Ivan Donev MCT and MCSE Data Platform

  • How to find remote login details ?

    Hi All,
    I am using windows work station to connect to oracle database. we are using proxy server to connect to oracle database. now , my machine from where I connect is "aajit", but when I queried the database. it returns the server's os_user , terminal and not the the details of the client. just wondering , how to get client's details
    SQL> select SYS_CONTEXT('USERENV', 'SESSION_USER'),
             SYS_CONTEXT('USERENV', 'OS_USER'),
             SYS_CONTEXT('USERENV', 'HOST'),
             SYS_CONTEXT('USERENV', 'TERMINAL') from dual ;  2    3    4
    SYS_CONTEXT('USERENV','SESSION_USER')
    SYS_CONTEXT('USERENV','OS_USER')
    SYS_CONTEXT('USERENV','HOST')
    SYS_CONTEXT('USERENV','TERMINAL')
    SYS
    oraalmp1
    infa4pbx
    pts/9

    If that's the case,
    Please observe the below exercise
    I'm connecting from a machine apple to a machine oracle (DB server)
    SQL> select SYS_CONTEXT('USERENV', 'SESSION_USER'),
    SYS_CONTEXT('USERENV', 'OS_USER'),
    SYS_CONTEXT('USERENV', 'HOST'),
    SYS_CONTEXT('USERENV', 'TERMINAL') from dual ; 2 3 4
    SYS_CONTEXT('USERENV','SESSION_USER')
    SYS_CONTEXT('USERENV','OS_USER')
    SYS_CONTEXT('USERENV','HOST')
    SYS_CONTEXT('USERENV','TERMINAL')
    CSM
    csmdba
    apple
    pts/60
    and
    SQL> select machine from v$session where username='CSM';
    MACHINE
    apple
    Even if i connect from the windows command prompt, I'm able to see my windows machine name
    Could you explain why Oracle is giving the actual client machine from where I've connected here?
    regards,
    CSM

  • Report for moving printer details from one system to another

    Hi all,
    Can we any any report for bringing in a weekly update of list of printer available in one system to another.
    Kindly share your view in this regard.
    Thanks ,
    Subhashini.
    Moderator message: not directly related to ABAP development, please have a look in the Netweaver Admin forum.
    Edited by: Thomas Zloch on Nov 30, 2010 3:12 PM

    Hi Naresh,
    If you are moving Database  alone from SRM amd EP system to another host, you can install the same verision of oracle software used in the source system and take complete offline backup and restore in the target system (new host).
    You can refer note 71254 - Using BRBACKUP/BRRESTORE to copy a database
    for more details.
    If you are moving the entire SAP system, then you have to do the system copy. For more details, refer note
    547314 -  FAQ: System Copy procedure
    Hope this helps.
    Regards,
    Arun.
    Hope this helps.
    Ref

  • How to find table related details from a field on a transaction?

    If I type a transaction code msc3n and press enter, I come into 'Display batch' transaction. Now if I fill material and batch details and press enter, I will be getting 'shelf life exp. date' on basic data 1 tab. Now how will I know from which table this value is coming from? I tried pressing F1 and then technical info to see the field and table details, but no such details are given here. Only structure details are given.
    Please let me know in detail.
    Thanks in advance for your helpful answers.
    Nuren

    Go to SE93-> give ->msc3n  double click program -> in top include you`ll find the tables OR search key word "tables" in program .
    FYI
    tables: dfbatch, " Dynprofelder
    bncom, " allg. Kommunikationsstruktur
    mtcom, " Kommunikations-WA Mat.stamm
    makt, " Materialkurztexte
    mbew, "#EC NEEDED
    t001w, " Werke
    t001l, " Lagerorte
    mara, " Konzerndaten zum Material
    marc, " Werksdaten zum Material
    mard, " Lagerortdaten zum Material
    mch1, " Chargendaten
    mcha, " Chargendaten werksbezogen
    mchb, " Chargenbestände
    mchx, " Bewert.arten zu werksübergr. Ch
    mchuwl, " Arbeitsvorrat Charge Benutzer
    thead, " SAPscript: Text-Header
    cdhdr, " Header Änderungsbelege
    cdshw, " Positionen Änderungsbeleg
    t148g, " Feldauswahl Sonderbestände
    t148zt, " Texttabelle Zustandsschlüssel
    t149c, " globale Bewertungstypen
    t005u, " Provinzschlüssel Texte
    t005t, " Bezeichnung der Länder
    tvfmt, " Materialgruppe Export Bezeichn.
    bwtty, " Bewertungstyp
    rmclm, " E/A Felder Klassifizierung
    inob, " Umschlüsselung Klassif.objekt
    kssk, " Zuordnung Objekt <-> Klasse
    klah, " Kopfdaten Klassen
    t134, " Materialarten
    prdkzt, " Texte zum Periodenkennzeichen
    *prdkzt. "#EC NEEDED
    Hope this’ll give you idea!!
    P.S award the points.
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Help! Checking login details from tables

    Hi,
    Please help me with this. Please see the code below. It doesn't work, if I give the correct id and password.But it works if I say (!rs.next()). The same type of programme worked for me in case of other tables. Could any one pls help me solve this problem.
                   String id = req.getParameter("userid");
                   String pwd = req.getParameter("password");
                   ServletOutputStream sos = res.getOutputStream();
                   rs = st.executeQuery("select * from uma where userid='"+user+"' and password='"+pwd+"' ");
                   sos.println("<html><body bgcolor=lightyellow>");
                   if(rs.next())
    sos.println("you are lucky");               
    sos.println("<input type='submit' value='Submit' name='submit'></p>");
                   else
                        sos.println("<h2>Get out of my site</h2>");
                   sos.println("</body></html>");
              catch(Exception e)
                   e.printStackTrace();

    Instead do like this
    pstmt = con.prepareStatement("select password from uma where login=?");
    rs = pstmt.executeQuery();
    while(rs.next()){
    if(password.equals(rs.getSting(1))){
    out.println("Login Success");
    else{
    out.println("Login Failure");
    }

  • Query SSIS packages details from file system

    Hi All,
    I have around 500 packages (SQL 2005) deployed in file system & all this packages are running on daily basis via SQL agent. Now I need to migrated all 500 packages into SQL server 2008 R2.
    There is no inventory to track which package belogs to which team and any other information.
    Now, I need a method to query the pakages connection string details with database respective. Is there any method?
    Thanks
    Raghu

    Check this out, might be helpful for your requirement
    Read SSIS Package File(.dtsx) for Information [Connection Managers,Transformations,Variables,Configuration,Expressions,Log Providers]
    http://sqlage.blogspot.com/

  • To get login details of portal into webdynpro application

    Hi All,
             How to get the portal login details(user name) into my webdynpro application.
    Thank you,
    Harsha P.

    Hi,
    If you want to have portal login details from backend system (with ABAP) you should ask this question in some portal forum and ask if it is possible. This has nothing to do with workflow or UWL. Even if you get the portal user ID to the backend system, then what? Do you want to manipulate the portal roles etc. from your ABAP WD application? Then you will have even more complicated requirements to achieve with ABAP. It is not that straightforward to call different portal functionalities from backend system. You might need to do some "portal development". And eventually your ABAP WD application might come just an unnecessary wrapper component for calling some web services or whatever in portal.
    Regards,
    Karri

  • Asking for login details jumping from BW  to SS report at Portal site

    Hi Guys
    Our BW reports are avilable from protal for user's.
    Now the issue we are facing is when we jump from BW report to source system(SRM) report, it is aksing for login details for source system. where as at portal site it should not ask for login deatils. And we are facing this issue only in QA system and not PRD system.
    M not sure where things are going wrong. I have checked SSO. nothing seems to be wrong here also.
    Thanks & Regards,
    Rohini

    Hi Rohini,
    I may not be correct. But does the user id which you are using (both in QA & Prod) have same settings for User-Type (<i>SU01 -> Logon Data -> User Type</i>). ?
    Also u can check the RFC Settings (SM59).
    Hope it would help..
    Regards,
    Vikrant.

  • How to make it not show Finder window when system starts up?

    The subject is the question....a Finder window is always open when system first starts up and how do I make it show and not show? Thanks.

    someone else had this problem too, check out this thread
    http://discussions.apple.com/thread.jspa?threadID=1819909&tstart=150
    He fixed it by changing his wallpaper settings....(lol, copied and pasted from my post in another thread) might not be the same fix as what you need, but heck, why not try, right?

  • RFC enabled FM to fetch partner details of vendor from ECC system

    Hi All,
    I am working on an enhancement in SRM system.the requirement is as follows.
    1.In the current SRM application, the invoicing party partner function does not exist.Because of this, the invoicing party cannot be populated on any external purchasing documents such as RFQ, PO, RO, contracts.
    2.This functionality exists in ECC. In ECC, the user can enter an invoicing party on a vendor master record.The invoicing party functionality will be deployed to SRM so that external purchasing documents are populated with the correct invoicing party.There is a standard vendor replication program for this...
    To accomplish the above said functionality, I have planned to do like this in SRM system....
    1.There is a BADI "BBP_DOC_CHANGE_BADI" with a method "BBP_PO_CHANGE ". This will get triggered when a PO is getting created or changed.
    2.In that there is a table called IT_PARTNERS which will have all the partner details in it.
    3.I will take the partner (vendor number i.e.,partner function is 0000019) and pass that value to an RFC enabled function module which will fetch the invoicing party from ECC system.
    4.Later that Invoicing party number is appended to the IT_PARTNERS so that it will be populated on any external purchasing documents.
    Here I want to know whether any standard RFC enabled function module which fetches the invoice party details from ECC system.
    Awaiting your answers...
    Thanks,
    Ravee..

    Hi. Just use function RFC_READ_TABLE and table WYT3.
    Regards,
    Dave.

  • ALEREQ idoc type from PI system

    Hi,
         I have to change the vendor data from Inbound idoc which will be coming from PI system.
    but, to get the inbound idoc for vendor we have idoc type as CREMAS05 and message type as CREFET
    But,at PI side to send the vendor data, they see the idoc type as ALEREQ01 for message type as CREFET.
    Kindly provide me the resolution.
    Thanks in Advance.

    hi
    yes u can export an idoc from r/3 to a legacy system.
    the brief outline is as follows:
    1. set up an rfc connection. it has to be 'T' type in t-code sm59
    configure the saprfc.ini file if on windows based os. if on unix based os configure rfcexec.c to have the login details of apo system.
    2.set up logical systems( at least 1 each for r/3 and apo) using T-code SALE.
    3.assign clients to the logical sytems using T-code SALE..
    4.create ports using tcode we20.
    5. create idoc segments using we30 and release.
    6. create idoc type using we31.
    7. create message type using we81.
    8. assign message to idoc using we82.
    9.build a customer model using tcode bd64.
    10. create an outbound process code usint tcode we41.
    it will help if you specify your idoc that you want to use- for vendor, customer and material there are predefined distributions and idocs.
    Thanks.

  • Is there any way to change the default folder for new finder windows...

    ...Or even set a different folder as the "home folder"?
    I am recovering from an incredibly messy archive and install which refused to allow me to save my old user accounts, instead moving them all into "Previous Systems". In my haste to get the machine working again I just dragged and dropped my old home folder into the /users/ directory and changed the "short name" of the new account to match it. IT worked, but now I have an incredibly irritating problem. That is now indeed my home folder, as appears in the sidebar of all finder windows, albeit under my new short name instead of my old one. All my documents in iWeb, Garageband, etc are working now and default to the new folder.
    However, Finder has not recognized this, and every time I open a new Finder window or anything like that it defaults to the home folder created by the reinstall, which is now locked to this account (so all the folders have a red no entry sign on them). I would very much like to tell Finder to ignore this now defunct folder and default to my actual home folder instead - is there a way to do this without actually moving or changing any folders? Like a preference setting somewhere? I know there's the "Advanced Options" pane in Leopard but I've been completely unable to find anything like it in Tiger

    Finder > Preferences > new Finder Window opens
    [Recover from renaming your Home folder|http://www.thexlab.com/faqs/renamehomerecovery.html]
    [My home folder and desktop are different than before|http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1952.html]
    [Return to Default Desktop, Apparent Loss of Home Directory|http://support.apple.com/kb/TS1876]
    [ChangeShortName tool|http://www.danfrakes.com/ChangeShortName.html]
    Message was edited by: Limnos

Maybe you are looking for

  • BROWSE BOX CAUSING PREMIERE TO STOP WORKING

    Hi guys I am having a problem with my browse box. If I try to save my project as the browse box opens but premiere will stop working and crash. If I try to import anything using the file menu the same happens. I can import using the media browser, bu

  • Connect Mac Mini (Late 2012) to VGA?

    Can I connect a Mac Mini (Late 2012) model to a VGA monitor? The Mini comes with an HDMI-to DVI adapter, so I can add a DVI-to VGA adapter to that, but I'm concerned whether or not an analog signal is passed through from the HDMI connection.

  • PI 7.1 System copy Devline does not exist: 8a5afe612d3511df97170017a4a7b84d

    HI All, We have done the system copy of the PID 7.1 ehp1 from one hardware to another Hardware later abap and java insances are working fine but we are not able to create or save objects in PI after sytem copy we are facing the issues while saving th

  • Service Registry - Services without documentation

    Hi all, how can i add a documentation to my services in the service registry? Documentation URL: There is no documentation URL available regards

  • Q5 unlocked update to 10.2.1 OS

    Hi, I have a BlackBerry q5 unlocked phone. It is running on OS 10.2.0. I have tried to update, but it says the device is running on the latest version. I am desperate for 10.2.1 update as I want to install apk androids apps. For how long will I have