How to do Field Grouping using REUSE_ALV_GRID_DISPLAY?

Hi,
I am using REUSE_ALV_GRID_DISPLAY to display my result.
how do i do the field grouping as print screen below?(T-Code: ME5A)
[img]http://img388.imageshack.us/img388/451/me5atv4.jpg[/img]

HI ,
Please check the following link.
Need help with SCHECK routine in RFFOUS_C(it produces an extra page!)

Similar Messages

  • How to create field catalog using field-symbols in normal alv report?

    hi all,
    how to create field catalog using field-symbols in normal alv report? i.e, using function modules...reuse_alv_list_display/grid_display?
    regards,
    jack

    HI
    LIKE THIS
    TYPE-POOLS : slis.
    DATA : t_fieldcat TYPE slis_t_fieldcat_alv,
           st_fieldcat TYPE slis_fieldcat_alv.
    st_fieldcat-fieldname     = 'STATUS'.
      st_fieldcat-seltext_l     = 'STATUS INDICATOR'.
      st_fieldcat-outputlen     = 17.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'VBELN'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Sales Document No.'.
      st_fieldcat-outputlen     = 10.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'AUDAT'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Document Date'.
      st_fieldcat-outputlen     = 10.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'VBTYP'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Document Type'.
      st_fieldcat-outputlen     = 4.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'AUART'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Category'.
      st_fieldcat-outputlen     = 1.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'AUGRU'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Reason'.
      st_fieldcat-outputlen     = 3.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'NETWR'.
      st_fieldcat-do_sum        = 'X'.
      st_fieldcat-seltext_l     = 'Net Amount'.
      st_fieldcat-outputlen     = 15.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
      st_fieldcat-fieldname     = 'WAERK'.
      st_fieldcat-do_sum        = ' '.
      st_fieldcat-seltext_l     = 'Unit'.
      st_fieldcat-outputlen     = 5.
      APPEND st_fieldcat TO t_fieldcat.
      CLEAR st_fieldcat.
    *sortinfo
      st_sort-fieldname = 'AUART'.
      st_sort-up        = 'X'.
      st_sort-subtot    = 'X'.
      APPEND st_sort TO t_sort.
      CLEAR st_sort.
      st_sort-fieldname = 'VBTYP'.
      st_sort-up        = 'X'.
      st_sort-subtot    = ' '.
      APPEND st_sort TO t_sort.
      CLEAR st_sort.
      st_sort-fieldname = 'WAERK'.
      st_sort-up        = 'X'.
      st_sort-subtot    = 'X'.
      APPEND st_sort TO t_sort.
      CLEAR st_sort.
      st_sort-fieldname = 'VBELN'.
      st_sort-up        = ' '.
      st_sort-subtot    = 'X'.
      APPEND st_sort TO t_sort.
      CLEAR st_sort.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type     = 0
       IMPORTING
         et_events       = it_eventcat
       EXCEPTIONS
         list_type_wrong = 1
         OTHERS          = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      IF grid = 'X'.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
         I_INTERFACE_CHECK                 = ' '
         I_BYPASSING_BUFFER                = ' '
         I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = g_program
          I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
         I_CALLBACK_USER_COMMAND           = ' '
          I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
         I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
         I_CALLBACK_HTML_END_OF_LIST       = ' '
         I_STRUCTURE_NAME                  =
         I_BACKGROUND_ID                   = ' '
         I_GRID_TITLE                      =
         I_GRID_SETTINGS                   =
         IS_LAYOUT                         =
           it_fieldcat                       = t_fieldcat
         IT_EXCLUDING                      =
         IT_SPECIAL_GROUPS                 =
          it_sort                           = t_sort
         IT_FILTER                         =
         IS_SEL_HIDE                       =
         I_DEFAULT                         = 'X'
         I_SAVE                            = ' '
         IS_VARIANT                        =
         IT_EVENTS                         =
         IT_EVENT_EXIT                     =
         IS_PRINT                          =
         IS_REPREP_ID                      =
         I_SCREEN_START_COLUMN             = 0
         I_SCREEN_START_LINE               = 0
         I_SCREEN_END_COLUMN               = 0
         I_SCREEN_END_LINE                 = 0
         I_HTML_HEIGHT_TOP                 = 0
         I_HTML_HEIGHT_END                 = 0
         IT_ALV_GRAPHICS                   =
         IT_HYPERLINK                      =
         IT_ADD_FIELDCAT                   =
         IT_EXCEPT_QINFO                   =
         IR_SALV_FULLSCREEN_ADAPTER        =
       IMPORTING
         E_EXIT_CAUSED_BY_CALLER           =
         ES_EXIT_CAUSED_BY_USER            =
          TABLES
            t_outtab                          = it_final
          EXCEPTIONS
            program_error                     = 1
            OTHERS                            = 2
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    REWARD IF USEFULL

  • How to get SharePoint Groups using Javascript in SP2013 ?

    How to get SharePoint Groups using Javascript in SP2013 , not JSOM please

    Here is the code that worked for me:
    <script type="text/javascript">
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups";
      var requestHeaders = { "accept" : "application/json;odata=verbose" };
      $.ajax({
        url : requestUri,
        contentType : "application/json;odata=verbose",
        headers : requestHeaders,
        success : onSuccess,
        error : onError
      function onSuccess(data, request){
    var s='';
     for (var i = 0; i < data.d.results.length; i++)
    s +=data.d.results[i].LoginName+'\n';
        alert(s);
     function onError(error) {
        alert("error");
    </script>

  • How to block field groups instead of fields on tcode BP in SAP ECC

    Hi Experts,
    Does anyone know how I can block modification of entire tabs in tcode BP for a given user access role instead of down at the field level only? Example: how can I make the entire Address tab of the General Data view nonmodifiable instead of having to find the field grouping for Street 2 and make it nonmodifiable? It would be much faster and easier if I could block tabs at a time for specific user roles, ex. allow Cashier to modify banking related fields but not general data fields.
    So far I've successfully tested making individual fields non-modifiable by finding the correct field grouping (ex. field grouping 63 for Street 2) and adding this to SPRO: Cross-Application Components -> SAP Business Partner -> Business Partner -> Basic Settings -> Authorization Management -> Define Field Groups Relevant to Authorizations.
    Your help is appreciated. Thank you.

    The control I use is a Person/Group Picker.  I tried in Property Promotion selecting either DisplayName, AccountID or even the PCPerson but none of them would give me the "Return Field As" field enabled to select to return as email.   It stays
    as grey out, disabled, and return as string.  
    I suspect this is also why I'm not getting the email when workflow starts.  Where can I check if an email is sent?  I have it sent to myself, by selecting myself in the Person/Group picker but I haven't received any emails.
    Thank you.

  • How to copy field groups when editing a form?

    Hi everyone,
    I´m setting up a form using Acrobat X Pro. When I copy paste fields, they end up in the same field group. Could anyone tell me how to copy groups?
    In my case, I would like to copy the answer options from one question, using them as the answer options for the next question.
    Any idea?
    Thanks a lot!!
    Andy

    Thank you!
    I still hoped that there would be an easier way - also the Radio Button Choices change in weird ways once I change the name...
    If there is still anybody who has a better way of going about this - please send a quick message.
    Thanks again and best wishes

  • How to read multiple lines using 'REUSE_ALV_GRID_DISPLAY'

    Hi,
    In ALV report the FM 'REUSE_ALV_GRID_DISPLAY' used.
    EXPORTING
    I_CALLBACK_PROGRAM = W_REPID
    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    How to read multiple lines in the following dynamic subroutine ?
    I am able to read single value through p_selfld.
    Nut the requirement is to change the values in more than 1 row for a fld (edit mode)
    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
    P_SELFLD TYPE SLIS_SELFIELD.
    endform
    Thanks in advance

    You can get the reference by a dirty assign, but this is not offcially supported...
    But if you have some limitations.
    FORM user_command  USING fuw_ucomm LIKE sy-ucomm
                                       fuw_selfield TYPE slis_selfield.
      FIELD-SYMBOLS: <lfs_grid>  type ref to cl_gui_alv_grid,
                                   <lfs_row> type LVC_S_ROW.
      data: li_rows type lvc_t_row.
          assign ('(SAPLSLVC_FULLSCREEN)GT_GRID-GRID') to <lfs_grid>.
          check sy-subrc is initial.
          call method <lfs_grid>->get_selected_rows
            IMPORTING
              et_index_rows = li_rows.
    endform.                    "user_command

  • How to get field data using a formula

    I have a table with fields ‘pension contribution’ and ‘current year’.The first field stores a single record for a given year.Say if ‘current year’ is 2014 ‘pension contribution’ is 7% and so on.
    I wanted to get a result by providing a certain year from another field in a table using a formula.
    How do I do this?An explanation would be helpful.

    Hi Nebil,
    You can't! You'll need to join the the two tables or use a Subreport.
    -Abhilash

  • How to change field size using SQL against an oracle Database

    I am an admitted novice user, looking to become more proficient.
    I have a field in a table that I need to expand the field size. The table is called Inquiries. The data type is text. The current Field Size is 10. I want to increase it, to either the max, or somethign long enough to fit TECHNOLOGY LEADERSHIP PROGRAM.
    What is the SQL command to change the field size, and what is the max for a Text Field Size

    And/Or, an even better question might be,
    Do I need to use SQL*PLUS to do this, or are there better tools. I.e, I like how in Access, you can open up a database in Design view and just change the amount for the field size. Is there a similar "easy" method to do something like that with an Oracle database.
    My current version of the server/database is:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    I was thinking I had to do SQL commands to perform the action, but there may be another way that I am not thinking about with all of the tools at my disposal. When I installed Oracle on my desktop, I installed most of the management tools and networking services, if that helps

  • How to require field input using the this.mailDoc function

    I have a this.mailDoc script in a form I'm putting together. It's working fine, but what I'm needing are instructions on how to require certain fields to be filled in before the this.mailDoc can execute. I know how to do this using the stock Submit Form button, but that won't work for me in my particular situation. Thoughts?

    You have to use your own validation function to make sure the required
    fields are filled-in.
    I've posted some code that does this on these forums a while ago... Try
    searching for "validate required fields".

  • How to create a group using photoshop scripting?

    Hey guys,
    I can create a layer easily by the below code.
    but how can i create a group that contain more than one layer.
    var docRef = app.documents.add();
    var myLayer = docRef.artLayers.add();

    Here is an example..
    var doc = app.documents.add();
    var newLayerSet = doc.layerSets.add();
    var myLayer = doc.artLayers.add();
    var myLayer2 = doc.artLayers.add();
    //move the layers into the layerset
    myLayer.move(newLayerSet, ElementPlacement.INSIDE);
    myLayer2.move(newLayerSet, ElementPlacement.INSIDE);

  • How to display field when using Query Panel..

    Hello,
    I created a Named Criteria with a bindvariables then I drag the Named Criteria I created to the page with ADF Query Panel, then I drag the VO where the Named Criteria to the page with ADF Form.
    now what I need ..
    I need the Fields in ADF Form (input text....) to be displayed befor I cliked the search button. becasue the page design will appear bad. so how can I dislpay them when the page load.
    Thanks,

    May be you need to update the values of the screen field like:
    DATA BEGIN OF LNA_DYNPF OCCURS 1.
    INCLUDE STRUCTURE DYNPREAD.
    DATA END OF LNA_DYNPF.
        l_total = l_total + S10_QUANTITY.
        LNA_DYNPF-FIELDNAME  = 'S10_TOTAL_PRICE'.   " field name
        LNA_DYNPF-FIELDVALUE = l_total.   " value
        APPEND LNA_DYNPF.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
             EXPORTING
                  DYNAME               = l_cporg        " your program
                  DYNUMB               = '0100'  " your screen
             TABLES
                  DYNPFIELDS           = LNA_DYNPF
             EXCEPTIONS
                  INVALID_ABAPWORKAREA = 1
                  INVALID_DYNPROFIELD  = 2
                  INVALID_DYNPRONAME   = 3
                  INVALID_DYNPRONUMMER = 4
                  INVALID_REQUEST      = 5
                  NO_FIELDDESCRIPTION  = 6
                  UNDEFIND_ERROR       = 7
                  OTHERS               = 8.
    Regards,
    Naimesh Patel

  • How to retain field formatting using this.getField

    I am pulling a phone number from a form field using this.getField("EmailAddress").value and inserting it into an email.  Once there, it loses it's formatting as a phone number and becomes a string if 10 digits again.  Is there a way to retain or recreate this formatting?

    Since a Format script doesn't change the underlying field value, just what gets displayed in the field, you'll have to add something that changes the underlying field value. You can use the Validate event for this and even use the same built-in code that's use by Acrobat to do the formatting. Begin by adding the following function to a document-level JavaScript:
    // Function in a document-level JavaScript
    function phoneValidate() {
          // Use Acrobat built-in formatting routine for phone numbers
          AFSpecial_Format(2);
    and call this function with the following custom Validate script:
    // Custom Validate script
    phoneValidate();
    The AFSpecial_Format() function takes what is entered into the field, generates a formatted string, and set event.value to the string. When this is done in a Validate script, it changes the field value.

  • How to create user group using Visual Admin Tool

    Hi
    I am trying to configure the Adobe Service in WAS.As part of this process,i supposed to create the Hroup Called "ADSCallers".In document it suggested to go Servcer>Services>Security Provider.In that i selected UserManagement Engine Tab,but there "Create User","Create Group" buttons are disabled.so how to enable it so that i can create the groups/users there.please help
    Thanks
    Prasad

    Hi,
    Did you change the display mode to change mode by clicking
    the "pencil" icon on the top left corner of the screen?
    Best Regards
    Srikishan

  • How to Set Field value using javascript?

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

  • Field groups cannot be created in the OO context.?

    Hi All,
    The current ABAP command is obsolete while using Field Group in ECC6.0.
    I am getting this error "Field groups cannot be created in the OO context." How to replace Field groups with some other statement.
    Thank you,
    Swapna.M

    Hi Madhavi,
    There is no other solution than rewriting the program, e.q. by creating internal tables for the fields now defined with FIELD-GROUPS in  HEADER and ITEMS and looping over these tables.
    Regards,
    John.

Maybe you are looking for

  • IPod mini with lost/damaged firmware... and cannot be restored.

    My iPod mini is messed-up, but I've figured some things out. I get the exclamation folder but only when it is unplugged. It still shows up as an iPod mini in iTunes and I can still load it with files. I tried to restore it using the updater and it sa

  • Getting other formats to display thumbnails in Windows XP

    Is there anyway to get Windows XP to display thumbnails for all of the different photo formats like PSD & BMP?  All I ever see in Windows Explorer are jpegs's.

  • Error frm-41213

    Hi all i have install orcle 10 datbase and devloperSuite 10 on new machine every this is working fine but when i call the report from the form it will show me the UNABLE TO CONNECT THE REPort SERVER REPSERVER90 FRM-41213 The report is saved in .rdf a

  • E-mailing photos from iPhoto

    When I go to Preferences, the only choices that "Mail using . . ." gives me is Mail or Microsoft Entourage. Is there any way that I could connect directly to gmail, my primary e-mail program? Thank you. Ricardo

  • Enabling wirless in hp dv5 1145ee

    The issue is in the said laptop. How to enable the wireless/bluetooth kill switch (soft switch). What is the command to be used?(googled but could not get the correct one) Note: When legacy OS was there the wireless had been disabled and gave these p