How To Code the I_CALLBACK_USER_COMMAND   = 'USER'  in HR-ABAP

Dear Friends,
How to code the I_CALLBACK_USER_COMMAND   = 'USER'  in Reuse_Alv_Grid_Display  in HR-ABAP

This is one method of programming the user_commend
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program      = g_repid
      i_callback_user_command = 'USER_COMMAND'
      i_callback_top_of_page  = 'TOP_OF_PAGE'
      i_structure_name        = 'I_DATA'
      is_layout               = gs_layout
      it_fieldcat             = gt_fieldcat[]
      it_sort                 = gt_sort[]
      i_save                  = 'A'
      is_variant              = es_variant
      it_events               = gt_events[]
      is_print                = gs_print
    tables
      t_outtab                = i_data
    exceptions
      program_error           = 1
      others                  = 2.
*& USER_COMMAND
*& This form is called through Function 'REUSE_ALV_GRID_DISPLAY'.
*& If you are in detailed mode then transaction PA20
form user_command using r_ucomm like sy-ucomm
                        rs_selfield type slis_selfield.
  case r_ucomm.
    when '&IC1'.
      check rs_selfield-sel_tab_field = 'I_DATA-PERNR'.
      read table i_data  index rs_selfield-tabindex.
      set parameter id 'PER' field i_data-pernr.
      call transaction 'PA20'.
    when others.
  endcase.
endform.                    "user_command

Similar Messages

  • How to find the ME29N 'USER EXIT' when our save the release PO after.

    How to find the ME29N 'USER EXIT' when our save the release PO after.
    which user exit will be used?
    thanks.
    alex.

    Hi,
      process :
        go to tranx code :   ME29N ,
           System---->Status , here copy the program name (SAPLMEGUI),
         go to abap editor and specify the program name SAPLMEGUI and find the package "ME".
         tranx code : CMOD ,  Utilites--->Sap Enanchement,
                                         specify the package name : ME
                                          and execute, displays a list of exits ,
                                 and find out our suitable exit based on requirement.
    check these :   EXIT_SAPMM06E_021
    reg
    Siva

  • How to get the current user logon to portal?

    Hi Gurus,
    How to get the current user who logged into portal.
    I have a webdynpro requirement where in which I have to get the current user id who loggedinto portal which will be the input parameter of the BAPI(adaptive RFC model) which will return me employee number of the particular user.
    Can anyone send me the code to retrive the user id through webdynpro application..........
    Pts will be rewarded for useful inputs......
    Thanks in Advance,
    Dharani

    Hi Dharani,
    Using UMEfactory u can do that...
    1. create one input field,
    2. create one attribute called Uid
    3. assign Uid attribute to the input field
    4. type the following code in Doinit() method
                String uid = wdContext.currentContextElement().getUid();
         try {
         IUser user = UMFactory.getUserFactory().
         getUserByLogonID(uid);
         String userName = user.getDisplayName();
         } catch (UMException ex) {
          e.toString(); 
    5. after that go to Portal create one iview assign to particular user. then u get into the user details...
    thats it
    Regards,
    P.Manivannan

  • How to change the portal user id 's assigned employee in ESS configuration

    Hello Gurus,
        I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
    Could any of you please guide me in doing these steps?
    Points will definitely be awarded for helpful answers.
    Thanks gurus in advance for your help.
    ~~LB

    Hi Leena,
    You can create a new user name with the username and password assigned to it, with the transaction SU01.
    Ex : ESS_USER1
    Go to transaction code : PA30.
    Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
    Enter infotype number : 105
    Now go ahead and click on the change button.
    And assign the user name as ESS_USER1.
    Then the pernr number will be assigned to the ESS_USER1 that you have created.
    You can check the same when you go to the HRUSER transaction code.
    Please let me know if you still have any issues on the same.
    Cheers.
    Sandeep

  • How to find the exact user exit for our requirement?

    Dear Mr. keerthi,
    can you please explain me how to find the exact user exit for our requirement?

    Hi sandip
    There is more than one method in which you can check for user-exits.The following method is used very often.
    <b>How to find the exact user-exit for your requirement.</b>
    1.     You can check the user exists using transaction SE85.
    2.     Repository Information System -> Enhancements -> Customer exits
    3.     You can search the user-exits by package name.
    4.     Double click on each exit name to check the function module exits.
    <b>The procedure to find the package name.</b>
    Execute transaction SE93 
    Enter the tcode of the transaction for which you want to check the user exit.
    Example: if you want to find the user-exit for purchase orders while changing, enter ME22n  and press display.
    You will get to see the package name
    But you need to confirm that the user exit will get triggered at the appropriate event.
    ( example: you might want some validations to be done ON SAVE of a purchase order)
    <b>Checking if the user-exit is getting triggered or not.</b>
    1.     Open the user exit function module (that you have got in step 4) in Tcode SE37.
    2.     Click on where used button. In the pop up that immediately appears choose only programs .
    3.     You will get a list of programs. Double click on the program name.
    4.     You will get the list of location where this function module user exit is used.
    5.     Place session break points at each of these location ( at each CALL FUNCTION statement)
    6.     Now go to your transaction ( say change purchase order tcode:Me22n) and check if the user exit is getting triggered on appropriate event.
    regards,
    Prasad

  • How to find the appropriate user exit for invoic02 idoc in idoc_output_invo

    Hi all,
    I am new to this community p
    i have issue regarding  the How to find the appropriate user exit for invoic02 idoc in idoc_output_invoic function module.........
    thanks,

    Hi ,
    welcome to SDN.
    You can select the appropriate Customer exit accrding to the available parameters .
    The list of exits available are 
    EXIT_SAPLVEDF_001
    EXIT_SAPLVEDF_002
    EXIT_SAPLVEDF_003
    EXIT_SAPLVEDF_004
    For Example , if you want  to modify the Idoc data(EDIDD) you have to use the EXIT_SAPLVEDF_002. accodingly you can select the user exit according to the avaialable parametres.Use Table MODSAP fto get the Enhancement name.
    Hope this Helps
    Rgds
    Sree
    Edited by: Sree on Jul 23, 2010 12:11 PM

  • How to get the Current User on the UI page?

    All,
    Could you please let me know how to get the Current user on the UI input page , i need to display the current user ID when some one clicks the submit button, i want o get the current user to display in the javascript alert box.
    Edited by: 951930 on Oct 24, 2012 12:21 PM

    lucky,
    my schema has already defined for
    <user mapField="USER_ID" default="%CurrentUser"/>
    and in my UI page
    <td oraLabel="user"></td><td oraField="user" id="userId" ></td>
    and my javascript
    function showUserId () {                        
    var curUser = document.getElementById('userId').value;
    alert(curUser);
    and i have called this function on my submit button, but i am not able to get Current Logged User ID value to show in the alert nor able to show the current logged user on the UI page.
    my requirement is on custom UI page i need to show Current Logged User in one corner of the page and also need to show the same user in alert when he submits the button.
    Appreciate for the help.
    Edited by: 951930 on Oct 25, 2012 8:42 AM
    Edited by: 951930 on Oct 25, 2012 9:06 AM

  • How to show the login user Id in the upper right corner of each page?

    Hi,
    I was wondering how to show the login user Id in the upper right corner of each page?
    thanks so much!
    cchu

    Cchu,
    The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
    Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
    -David

  • How to use the admin user account in reports and dashboards?

    Hi Everyone,
    I want to use the admin user account in report and dashboard connections. But the Hyperion is automatically using the current user's credentials to fetch data.
    Hyperion 11.1.1.1
    Thanks
    Syantan

    This has been posted in the essbase forum > How to use the admin user account in reports and dashboards?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to increas the max user process number in Solaris 11?

    Hey
    Could anyone told me how to increas the max user process number in Solaris 11? I tried below as described in https://blogs.oracle.com/hasham/entry/solaris_10_increasing_number_of , but it cannot work.
    set pidmax=60000
    set maxusers = 4096
    set maxuprc = 50000
    set max_nprocs = 50000
    Thanks!
    Edited by: 966272 on Oct 18, 2012 7:38 AM

    Perhaps you should work your original forum post:
    Oracle 11g installation fail on Solaris 11 64bit - ORA-00443
    through to a resolution before you complicate things that likely don't apply.
    You make an assumption in that other post about exceeding various maximums. That may be true or it may not be true. Since the installation of a database program seems to be your actual expectation, go work that forum thread instead.

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • How to see the generic users in 11.5.10 which have not been enddated

    Hi all,
    Can anybody let me know how to see the generic users in 11.5.10 who are not enddated?
    Thanks.

    if I understand you correctly, you're looking for the all the out-of-the-box accounts.
    You could use something like this:
    select * from fnd_user
    where start_date = to_date( '01/01/1951','mm/dd/yyyy')
    or where creation_date = the apps install date
    Be warned that many of these accounts are used internally and shouldn't be end-dated.

  • How to see the active users in the AS JAVA?

    Hi Experts,
    In as java how to see the active users in the system.Kindly,tell me step by step details to find the active users.As I'm new to the Netweaver administration.
    Thanks,
    Reddy

    Hi,
    You can find the login sessions with Timestamp and User in Visual Admin under SecurityProvider and tab Runtime and Login sessions. You might also get these details in NWA->Monitoring->Availability.
    Regards, Rahul

  • How to check the unused users in portal.

    Hi Guru,
    We are doing auditing in Portal server.Can any tell us
    How to check the unused users in portal?.
    Regards,
    Vivek

    Use portal activity reporting  for monitoring the users. This way you can monitor the users in the portal who logged on to the portal.
    Below are things you can monitor from portal activity report iview
    1) number of users logged on during the period of time.
    2) Details of the users who logged on
    3) monitoring particular iview/page
    Check the below threads for more help
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/87329cc84a199ce10000000a42189d/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/87346dc84a199ce10000000a42189d/frameset.htm
    Raghu

  • How to find the concurrent user licenses usuage

    Hi,
    Can you someone tell me how to find the concurrent user licenses usage. if i go to CM C -> Settings -> View Global System Metrics then it is showing strange number in the area of peak licenses used since deployment  (more than 5K),
    Is there is any Bug or how to refer this?
    We are using BI4.0 SP5

    Hello Satheesh,
    Its is possible to track concurrent user licenses usage by using BI 4 monitoring.
    Please check below:
    Monitoring Concurrent Sessions in SAP BI Platform 4.0 and BusinessObjects Enterprise XI3.1
    -Mahesh

Maybe you are looking for

  • Hooking iPod up to TV

    when I use the Apple AV cable to hook up the iPod to the TV all I get is a black screen, and a loud humming noise, if I turn the volume all the way up on the iPod, I can faintly hear the video over the humming...??

  • Query to determined what tables are associated with parent table

    Hello - how would I query the data dictionary to determine what tables are referenced by a parent table via Pk/FK relationship? Thanks in advance! Mike

  • Skype won't open onto the log-in screen, It stays ...

    It's been like this for a while and i've had to resort to using skype via hotmail.co.uk side-bar service. Currently in the Event Viewer to see if i can see any conflicts or anything... Have the newest version windows 7 home premium 64 bit

  • Counting colored cells in numbers

    Hi, I would like to count only the cells in a row or  colum which have a specific color. Which formula should I use? thank you

  • CSV Format Download?

    Hi Guys,                I got error while downloading the data into a text file in CSV or Comma seperated values format . The error says that "Only Character type data objects are supported at the argument Position OP1 for the statement "IF......op1