To display the user login details in selection-screen( input screen )

HI Experts,
I have a requirement.
Assume there is a report on travel details. Report access has been given to all in the organization based on authorization level.
Before excecuting the report, in the selection-screen(input screen) itself I need to display the login user details.
suppose user A belongs to ITS-business unit and user B-belongs to RDS-business unit and Industry group-Multi markets.
so when User B logs into production system and try to access the report, in the selection screen, i need to display like
user-id-- XXXX          Business Unit---RDS             and IG -
Multi Markets 
how to achieve this? User details will vary based on login.
Regards,
Praveen

check this
REPORT  Z_demo.
*& Function Modules:  HR_GET_EMPLOYEE_DATA
*&                    HR_IMAGE_EXISTS
*&                    SCMS_DOC_URL_READ
*&                    HR_IMAGE_RESET
*& Class & Methods :  CL_GUI_DOCKING_CONTAINER
*&                    CL_GUI_PICTURE->SET_POSITION
*&                    CL_GUI_PICTURE->SET_DISPLAY_MODE
*&                    CL_GUI_PICTURE->DISPLAY_MODE_FIT
*&                    CL_GUI_PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
*REPORT  ZEMPLOYEE.
TABLES: PA0001, PERSON.
*----------------------Declaration for Image------------------------*
DATA: DOCKING_CONT TYPE REF TO CL_GUI_DOCKING_CONTAINER, " Custom Container
      PICTURE TYPE REF TO CL_GUI_PICTURE.
*--------------------Declaration of Internal table------------------*
DATA: ITAB_EMPDATA LIKE TABLE OF PERSON.
DATA: ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
DATA:  P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE.
DATA:  P_DOCUMENT_TYPE LIKE TOAV0-RESERVE.
DATA:  URL(255) TYPE C.
DATA:  HANDLE TYPE I.
DATA:  PPERNR TYPE PA0001-PERNR.
*----------------------Start of Selection Screen----------------------*
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-099.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN COMMENT 40(25) TEXT-010  .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-002 FOR FIELD PERNR.
PARAMETERS PERNR TYPE PA0001-PERNR.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-008 FOR FIELD ENAME.
PARAMETERS ENAME TYPE PA0001-ENAME.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-003 FOR FIELD PERSG.
PARAMETERS PERSG TYPE PA0001-PERSG.
SELECTION-SCREEN COMMENT 45(15) TEXT-009 FOR FIELD WERKS.
PARAMETERS WERKS TYPE PA0001-WERKS.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-004 FOR FIELD PERSK.
PARAMETERS PERSK TYPE PA0001-PERSK.
SELECTION-SCREEN COMMENT 45(15) TEXT-005 FOR FIELD KOSTL.
PARAMETERS KOSTL TYPE PA0001-KOSTL.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-006 FOR FIELD ORGEH.
PARAMETERS ORGEH TYPE PA0001-ORGEH.
PARAMETERS ORGEHTXT TYPE PERSON-ORGEH_TXT .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(15) TEXT-007 FOR FIELD PLANS.
PARAMETERS PLANS TYPE PA0001-PLANS.
PARAMETERS PLANSTXT TYPE PERSON-PLANS_TXT .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN END OF BLOCK B1.
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT .
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'ENAME'
    OR SCREEN-NAME = 'PERSG'
    OR SCREEN-NAME = 'PERSK'
    OR SCREEN-NAME = 'KOSTL'
    OR SCREEN-NAME = 'WERKS'
    OR SCREEN-NAME = 'ORGEH'
    OR SCREEN-NAME = 'PLANS'
    OR SCREEN-NAME = 'ORGEHTXT'
    OR SCREEN-NAME = 'PLANSTXT'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
LOOP AT SCREEN.
    IF SCREEN-NAME = 'ORGEHTXT'
    OR SCREEN-NAME = 'PLANSTXT'.
      SCREEN-OUTPUT = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
PERFORM GET_PIC.
*AT SELECTION-SCREEN .
AT SELECTION-SCREEN .
  PPERNR = PERNR.
  CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
    EXPORTING
      PERSON_ID             = PPERNR
      SELECTION_BEGIN       = SY-DATUM
      SELECTION_END         = SY-DATUM
    IMPORTING
      PERSONAL_DATA         = ITAB_DATA
    EXCEPTIONS
      PERSON_NOT_FOUND      = 1
      NO_ACTIVE_INTEGRATION = 2
      OTHERS                = 3.
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  ENAME = ITAB_DATA-ENAME.
  PERSG = ITAB_DATA-PERSG.
  PERSK = ITAB_DATA-PERSK.
  ORGEH = ITAB_DATA-ORGEH.
  PLANS = ITAB_DATA-PLANS.
  KOSTL = ITAB_DATA-KOSTL.
  WERKS = ITAB_DATA-WERKS.
  ORGEHTXT = ITAB_DATA-ORGEH_TXT.
  PLANSTXT = ITAB_DATA-PLANS_TXT.
*Function Module To check Existance of Image
  CALL FUNCTION 'HR_IMAGE_EXISTS'
    EXPORTING
      P_PERNR        = PPERNR
    IMPORTING
      P_CONNECT_INFO = P_CONNECT_INFO
    EXCEPTIONS
      OTHERS         = 2.
     P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
*Function Module To Get the URL of Image
  CALL FUNCTION 'SCMS_DOC_URL_READ'
    EXPORTING
      STOR_CAT    = SPACE
      CREP_ID     = P_CONNECT_INFO-ARCHIV_ID
      DOC_ID      = P_CONNECT_INFO-ARC_DOC_ID
      COMP_ID     = 'DATA'
      DP_URL_ONLY = 'X'
    IMPORTING
      URL         = URL
    EXCEPTIONS
      OTHERS      = 10.
  IF SY-SUBRC <> 0.
  ENDIF.
*Method To load Image from URL
  CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
    EXPORTING
      URL = URL.
  IF SY-SUBRC NE 0.
  ENDIF.
  IF PPERNR NE PERNR.
*Function Module To Reset Image
    CALL FUNCTION 'HR_IMAGE_RESET'
      EXPORTING
        HANDLE         = HANDLE
      EXCEPTIONS
        INVALID_HANDLE = 1
        OTHERS         = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
  ENDIF.
*& Form Get_Pic
FORM GET_PIC.
  DATA: REPID LIKE SY-REPID.
  REPID = SY-REPID.
  IF PICTURE IS INITIAL.
*Object To Create the Custom Container
    CREATE OBJECT PICTURE
      EXPORTING
        PARENT = DOCKING_CONT.
    CHECK SY-SUBRC = 0.
*Method To Set Position of Image
    CALL METHOD PICTURE->SET_POSITION
      EXPORTING
        HEIGHT = 47
        LEFT   = 610
        TOP    = 25
        WIDTH  = 70.
*Method To Set Display Mode Fit to Container
    CALL METHOD PICTURE->SET_DISPLAY_MODE
      EXPORTING
        DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
  ELSE.
*Function Module To Reset Image
    CALL FUNCTION 'HR_IMAGE_RESET'
      EXPORTING
        HANDLE         = HANDLE
      EXCEPTIONS
        INVALID_HANDLE = 1
        OTHERS         = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
  ENDIF.
ENDFORM. "Get_pic

Similar Messages

  • Displaying last successful login details of user

    Hi,
    I want to display last successful login details (timestamp may be) on Portal homepage.
    By configuration
    Is there any configuration that we can do to display it on Masthead area may be?
    By code
    I found following two links that talk about direct access of Portal table.
    http://wiki.sdn.sap.com/wiki/display/Snippets/DirectAccesstoDatabaseTables
    http://help.sap.com/saphelp_nw04/helpdata/en/48/6aa9429b930b31e10000000a1550b0/frameset.htm
    In this case, what query should I write to get the last login details of user?
    Please help.
    Thanks and regards,
    Amey

    Hi Ameya,
    Thanks for reply.
    1. I was wondering if there is any System admin level configuration we can do to show this info?.
    Is there any such facility?
    2. Through code, this is what I did: -
    I am getting the last logon timestamp by following code (inside JSPDynpage) : -
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.sql.Timestamp;
    import javax.naming.InitialContext;
    Connection con=null;
    Statement stmt=null;
    ResultSet rs=null;
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("jdbc/SAP/EP_PCD");
    con = ds.getConnection();
    stmt = con.createStatement();
    String connectedUser = _request.getUser().getUniqueName();
    rs = stmt.executeQuery("select MAX(TIMESTAMPHOUR) from WCR_USERSTAT where LOGONID='"+connectedUser+"'");
    int m = 0;
    while(rs.next()){
         m++;
           Timestamp ts = new Timestamp(rs.getLong(m));
         lastLoginString = ts.toGMTString();
    I guess selecting 'MAX' value of time-stamp would return the latest logon time.

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • How to find the last login details of a Sharepoint SSRS user

    How to /where to find the last login details of SSRS sharepoint user. Is there any table where we can check the last login details of user. This is because we are facing an issue of Subscription failure due to Sharepoint token expiration. If user logs in
    before 24 hours of his last login time, he is able to get his report subscription. If not, below error is thrown.
    The permission granted to user 'domainname\username' are insufficient to perform this operation.

    Hi,
    According to your post, my understanding is that you want to monitor the last login user’s details.
    There is no out of the box way to achieve it in SharePoint.
    We can use cookie to be a flag for checking whether there is an user just log in. After the page loaded, if the cookie is null, it suggests that there is an user just log in our site, then we
    can get this user’s information using JavaScript Object Model and add the information into a custom list. With this list, we can monitor user’s login details.
    Refer to the following link:
    https://social.technet.microsoft.com/Forums/en-US/0cd4d531-cb61-4d90-aa70-413267f4a735/how-to-know-login-and-logout-details-of-a-user-in-sharepoint-online-2013?forum=sharepointdevelopment
    Besides, here are two similar posts for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1a35283e-0f2a-49b8-b330-801a3cfcd890/programatically-get-all-current-logged-in-users-list-for-a-sharepoint-site?forum=sharepointdevelopmentprevious
    https://social.technet.microsoft.com/Forums/en-US/10953be3-cb1c-40c7-9454-545c8338b551/how-to-know-login-users-count-and-their-details-in-sharepoint-2010-web-application?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • User login details

    dear All,
    i want to check my store-4 users login details in sap, from last years, can you please help me to resolve the same.
    regards,
    jitendra.

    hi jitendra,
    You can use the User Information System (T-code SUIM) to obtain an overview of the authorizations and users in your SAP system
    at any time using search criteria that you define. In particular, you can display lists of users to whom authorizations classified as
    critical are assigned.
    Thanks & Regards
    Ajitabh

  • Group Policy to clear down MRU lists and to clear or to prevent user login details for programs such as Remote Desktop from being recorded

    Hi there,
    Please can anyone instruct me on how to set up Group Policy to clear down MRU lists and to clear or to prevent user login details for programs such as Remote Desktop from being recorded. Your help would be much appreciated.
    Kind regards,
    RocknRollTim
    P.S. I was redirected by a forum user off the Microsoft Community forum.

    Hi RocknRollTim,
    Agree with Jason. Using a script will be a better option.
    Just addition, for history of RDP Connections, please open Registry Editor and follow the path:
    HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default. Please check if find MRU registry items where the name (or the IP address) of the terminal server is kept in.
    Please also follow the path: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers. It contains
    the list of all RDC (remote desktop client) connections that have ever been established from this computer.
    When expand Server folder and select a node, you will see the UsernameHint key that show the name of the user connected by rdp.
    Please back up registry items to avoid unexpected issues before any operation.
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Thank you for responding back Justin Gu and I agree with both you and Jason Miller that a script can easily achieve this task. Thank you all for your help.
    Many thanks,
    RocknRollTim

  • Why do I get sent to the User Login screen to enter my password after sleep?

    Hi,
    On OSX Lion, 10.7.4. I recently had to reinstall the OS on a new hard drive in my iMac and now have an issue with it that I never had before.
    After prolonged periods of sleep (I haven't determined what the minimum length is before this will happen), when I come to wake the computer it shows me the User Login screen. Under my user icon is an orange checkmark, presumably to show that I am the user logged in. Otherwise it is exactly the same as the User Login screen one gets when the computer boots up. I select my user icon and enter my password and the computer unlocks.
    I haven't got this set up anywhere, that I know of. I don't have the 'Security & Privacy - Require password for sleep and screen saver' option checked, never have. If I do turn that on just to check, it's a very different password screen, a little popup window in the centre of the dimmed screen.
    How do I turn this feature off?
    Thanks,
    Owen

    Sounds like you may have deleted something you shouldn't have. Boot to an OS X DVD or a bootable backup, and using Disk Utility, do a repair disk, and while there repair permissions. Disconnect any peripherals, and reboot. If you get the same startup behavior, do a safe boot, by holding the shift key down when booting. If that works, try a normal boot. If neither step helps, you may need to relaod your operating system.

  • Report of User login details in MII Portal

    Hi,
    Do we have any report in MII portal where we can get the information like User login details( Last login date and time).
    Regards,
    Pradeep
    Edited by: pradeep balam on Jul 27, 2011 4:36 PM
    Edited by: pradeep balam on Jul 27, 2011 4:37 PM

    Hi Pradeep,
    Try using the following URL to the Admin Service:
    http://<Server:Port>/XMII/Illuminator?service=Admin&Mode=modelist
    You can then try the different modes such as:
    http://<Server:Port>/XMII/Illuminator?service=Admin&Mode=SessionList
    This may have the information you are looking for, assuming you have the right permission to access the AdminService.
    Kind Regards,
    Diana Hoppe

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • How can  I  restrain the user login portal once, in the same time ???

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How to  restrain the user login portal once, in the same time??

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How to display the User Name in Transaction MM04's output

    Hi Experts,
    My requirement is that in the Transaction MM04's output, along with all the fields displayed, I also want the User Name to be displayed.
    Here User Name must be the Person's Name and not the ID of the Person.
    Is there a way by which I can achieve it?
    Useful answers will definitely be rewarded.
    Thanks in advance.
    Regards,
    Himanshu

    Hi,
    Thanks a lot for your quick replies.
    But my requirement is to integrate the User Name Field with the MM04's output.
    So, I need either an Exit or any other way by which I can display the User Name in the Standard Transaction MM04's output.
    Regards,
    Himanshu

  • In which infotype the employee login details are stored

    Hi experts,
    In which infotype the employee login details are stored.
    pls help me.
    Thanku,
    Ramkhe.

    For that you need to install the BC (Basis) component in addition to the HR system.
    I think there is an additional license charge for this "add on" though...
    But you must have a database - though it does not have to be started for the employee to have their logon details.
    Cheers,
    Julius

  • Assigning View permission to all the users that have been selected in contact selector - SP 2010, InfoPath 2010

    I have a SharePoint InfoPath 2010 browser form with item level security. Only submitter
    and approvers has access to the form.  This form contains a people picker that is populated with the names of attendees
    for the meeting they attended (which
    I am able to store in Field2 below). I want to allow attendees to be able to view (grant view permission) the InfoPath form. Field 2 has the users in form of domain\user1;domain\user2; etc. Following the below step, I am getting error when I ADD or REPLACE
    permission on current item. How do I go about assigning view permission to all the users that have been selected in contact selector?
    Jitu

    Hi ,
    i understand that the text box and the people picker hold multiple user names and you want to grant user permission based on the user in the text box.
    I have a test based on your description,the results are: When there are multiple users in the text box, the workflow will throw an error'Error Occurred'.It is the same with the people picker column.
    You need to limit the peopel picker to only allow to select one user,in this way the text box will only hold one user.Then you can use the people picker or the text box to grant user permission.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Display the Line level details in the Notification - Urgent

    Hi,
    I have developed a Approval Workflow for customized form.
    I want to display the Line level details in the Notification/Message.Please guide me to do this?
    Thanks

    You can make use of the attribute type DOC. See 'To Define a Document Attribute' in the Workflow Development Guide. Then you just include it in the body of the message the same way you do with other attributes.
    Regards,
    Alejandro.

Maybe you are looking for

  • How do I use scripting to set an object location?

    Hello, I have an "X" text object that I would like to change its (x,y) location on my .pdf form based on values that the .pdf user places into (2) separate decimal fields. For Example: If User enters for example 3.1 and 2.5 into the two decimal field

  • Dealing with Fixed Length formats both at sender and receiver side

    Hi all, I have file -- File with fixed lenght formats. Source system will generate a text file with fixed lenght and target also needs the same file with same format. Then we have an idea to implement the interface with out IR Development .this is fi

  • Downloading music using Amazon MP3

    I've been downloading music on my Blackberry curve 9320 using Amazon MP3 for a few months. now all of a sudden it won't let me download anything. Keeps giving me an error message 'your order could not be processed'. Amazon website says to review my a

  • Exception while accessing deployed session bean

    Hi, I am new to IPlanet AS 6.0 . I wrote a simple stateless session bean in Forte EE v 3.0 environment. The compilation and deployment went fine. When I try to use my bean through a client program using IIOP then it throws the following exception in

  • Smb share not displaying all files in finder

    When accessing a non-windows (IBM iseries) smb share, I will only see 30 objects. Windows PCs will see all of the available objects. Is there a solution for this problem?