Regarding PF Status In ALV Grid Dispaly

Hi..
Can you please tell me how to set PF status in ALV Grid Display.
Regards
Sandeep.

hi,
if u use REUSE_ALV_LIST_DISPLAY copy the standard GUI-Status named STANDARD from function group SALV in your program
if u use REUSE_ALV_GRID_DISPLAY_LVC or REUSE_ALV_GRID_DISPLAY copy the standard GUI-Status named STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN in your program
after  that you cas set the pf-status in this way:
>CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'                   
> EXPORTING                                               
>    i_callback_program                = sy-cprog         
>    i_callback_pf_status_set          = 'STATUS'
>    i_callback_user_command           = 'USERCOMMAND'    
>   is_layout                           = st_layout         
>   it_fieldcat                          = st_fieldcat      
>  TABLES                                      
>    t_outtab                          = outtab 
or
>CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'              
> EXPORTING                                              
>    i_callback_program                = sy-cprog         
>    i_callback_pf_status_set          = 'STATUS'  
>    i_callback_user_command           = 'USERCOMMAND'   
>    is_layout_lvc                     = wa_slis_layout  
>    it_fieldcat_lvc                   = tb_slis_fieldcat
>  TABLES                                                
>    t_outtab                          = tb_app          
where USERCOMMAND and STATUS are 2 forms in your program.
>FORM status USING pfstat TYPE slis_t_extab.
> SET PF-STATUS 'STANDARD' EXCLUDING pfstat.
>ENDFORM.
>
> ...
>
>FORM usercommand USING okcode LIKE sy-ucomm
>                       wa_selfield TYPE slis_selfield.
>  CASE okcode.
>      .... 
>  ENDCASE
>ENDFORM.
Bye.
Marco

Similar Messages

  • Regarding column editing in alv grid

    hi experts,
    i m using alv grid display for my report layout what i want that after the output dispaly when the user will select my customized button "change the amount column" then after pressing this my amount column will become editable and user can put there new aount for this i have used this codes but it is not working plz help me to sort out this,
    for u here is my code.
    FORM DISPLAY_LIST .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          is_layout                = i_layout
          it_fieldcat              = i_fieldtab
          i_grid_title             = 'Production Incentive Details'
          I_CALLBACK_PF_STATUS_SET = 'SET_PFSTATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          it_events                = global_events
        TABLES
          t_outtab                 = itab_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.
    ENDFORM.                    " DISPLAY_LIST
    *&      Form  SET_PFSTATUS
          text
         -->RT_EXTAB   text
    FORM SET_PFSTATUS USING rt_extab TYPE slis_t_extab..
      SET PF-STATUS 'ZPINCENTIVE' .
    EXCLUDING rt_extab..
    ENDFORM.                    " CREATE_PFSTATUS
    *&      Form  user_command
          text
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    form user_command using r_ucomm like sy-ucomm
                                         rs_selfield type slis_selfield.
      case r_ucomm.
    *BREAK-POINT.
        when  '&CHANGED'.        "for change the amount button.
          read table i_fieldtab into s_fieldtab with key FIELDNAME = 'AMOUNT'.
          if sy-subrc = 0.
            move:sy-tabix to index,
                 'X' to s_fieldtab-edit.
            modify:i_fieldtab index index from s_fieldtab.
            clear:s_fieldtab.
          endif.

    solved by own

  • How to capture the checkbox status in ALV Grid display

    I need some immediate help regarding Grid ALV.
    My Requirement: I need to display an ALV grid report along with checkboxes. Further, I need to provide an option wherein the user can checkboxes and select the records that I need to process further (by clicking the process button on the ALV Report).
    My Query: The problem here is that I am not able to capture the status of the checkboxes. This means that I am not able to capture which of the records have been selected by checking their resp checkboxes.
    Solutions that I have tried: I have tried capturing the same at user command by checking the value in slis_selfield. But all the records show the value as 1 for the checkbox field.
    Kinldy suggest how to go about it.
    I am not using Object Oriented ALV. Please suggest something to be used in ALV Grid display in 4.6C version.
    Regards,
    Namrata

    Here is a Sample code , it might help you
    TABLES : sflight.
    TYPE-POOLS: slis.
    DATA : w_repid LIKE sy-repid.
    w_repid = sy-repid.
    DATA: BEGIN OF it_sflight OCCURS 0,
      checkbox(1),
      carrid LIKE sflight-carrid,
    END OF it_sflight.
    *layout
    DATA: wa_layout TYPE slis_layout_alv.
    *field catalog
    DATA: it_fieldcatalog TYPE slis_t_fieldcat_alv,
              wa_fieldcatalog TYPE slis_fieldcat_alv.
    START-OF-SELECTION.
      SELECT carrid FROM sflight
         INTO CORRESPONDING FIELDS OF TABLE it_sflight.
    END-OF-SELECTION.
      CLEAR it_fieldcatalog.
      REFRESH it_fieldcatalog.
      wa_fieldcatalog-fieldname = 'CHECKBOX'.
      wa_fieldcatalog-outputlen = '3'.
      wa_fieldcatalog-col_pos = '1'.
      wa_fieldcatalog-seltext_m = 'Chk'.
      wa_fieldcatalog-checkbox = 'X'.
      wa_fieldcatalog-edit = 'X'.
      APPEND wa_fieldcatalog TO it_fieldcatalog.
      CLEAR wa_fieldcatalog.
      wa_fieldcatalog-fieldname = 'CARRID'.
      wa_fieldcatalog-outputlen = '10'.
      wa_fieldcatalog-col_pos = '2'.
      wa_fieldcatalog-seltext_m = 'Carrid'.
      APPEND wa_fieldcatalog TO it_fieldcatalog.
      CLEAR wa_fieldcatalog.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = w_repid
          is_layout = wa_layout
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat = it_fieldcatalog
        TABLES
          t_outtab = it_sflight
        EXCEPTIONS
          program_error = 1
          OTHERS = 2.
    *& Form USER_COMMAND
    FORM user_command USING p_ucomm TYPE sy-ucomm
      p_selfld TYPE slis_selfield.
      CASE p_ucomm.
       WHEN '&DATA_SAVE'.
          DATA ref1 TYPE REF TO cl_gui_alv_grid.
          CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
             IMPORTING
               e_grid = ref1.
          CALL METHOD ref1->check_changed_data.
          LOOP AT it_sflight WHERE checkbox = 'X'.
             DELETE it_sflight INDEX sy-tabix.
          ENDLOOP.
          p_selfld-refresh = 'X'.
      ENDCASE.
    ENDFORM. "user_command

  • Facing probelm in PF status in ALV Grid display

    HI,
    i have created a ALV grid intractive report in that i have a check box and Traffice lights , when user select the check box and press save then then traffice light color should changes to green it's doing well..but my problem is..for second time display i am calling same function module to display with chnaged traffice light color.here my probelm is after second time display when i press back it's taking me to first list not to the selection-screen. pls suggest me wot to do now for directly going to selection-screen.
    Thanks,
    saleem.
    points to awarded for all usefull answers.

    Hi again,
    1.
    <b> and press save then</b> then traffice light color should changes to green it's doing well..but
    U must have written some code
    when the BOLD occurs.
    2. This must be the call back command
      (FORM subrouritine, which the alv call backs,
       on a user command)
    3. In the same u have to write.
    4. For your reference,
       just copy paste this code.
    a) it will show records from t001 table
    b) if u double-click on any row,
        it will change the 2nd column to 'CLICKED'
        and refresh the data again.
       (it won't show alv once more in new screen)
      c) then when u do back, it will go back.
      d) See BOLD code.
    5.
    REPORT abc.
    TYPE-POOLS : slis.
    Data
    DATA : BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE t001.
    DATA : flag tyPE c,
           END OF itab.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvly TYPE slis_layout_alv.
    Select Data
    SELECT * FROM t001 INTO TABLE itab.
    *------- Field Catalogue
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name         = sy-repid
        i_internal_tabname     = 'ITAB'
        i_inclname             = sy-repid
      CHANGING
        ct_fieldcat            = alvfc
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    Display
    alvly-box_fieldname = 'FLAG'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        it_fieldcat             = alvfc
        i_callback_program      = sy-repid "<-------Important
        i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
        is_layout               = alvly
      TABLES
        t_outtab                = itab
      EXCEPTIONS
        program_error           = 1
        OTHERS                  = 2.
    CALL BACK FORM
    FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    IMPORTANT.
    <b> 
      data : m type sy-index.
      m =  whatrow-tabindex.
      itab-butxt = 'CLICKED'.
      modify itab index m.
      whatrow-refresh = 'X'.</b>
    ENDFORM. "ITAB_user_command
    regards,
    amit m.

  • Problem in pf status in alv grid

    Hi ,
    In alv grid in fm reuse_alv_grid_display under parameter   I_CALLBACK_PF_STATUS_SET   = STATUS
    FORM STATUS_SET USING LS_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'XYZ' EXCLUDING EXTAB.
    ENDFORM.
    Now i have to set back & exit button in my std toolbar.
    I double clicked on XYZ & then control moves to menu painter & i defined all above mentioned button in application toolbar.
    I activated but the mentioned buttons are not displaying in output.
    Anybody will suggest me what i have to do in this case??

    hi
    good
    go through this links
    http://sap.ittoolbox.com/code/archives.asp?i=10&d=3603&a=s
    http://sap.ittoolbox.com/code/archives.asp?i=10&d=1917&a=s
    this ll give you complete idea about the pf status in alv.
    thanks
    mrutyun^

  • Alv grid  dispaly in custom container....?

    Hay friends i have shown ALV grid display in custom container .....in that some fields are input fields...
    how can i modify my internal table (which is shown in ALV )...by knowing that this field is changed...i need to update in my internal  table...
    need help...
    reply soon...

    Hello
    All you need to know can be found in thread About events of class cl_gui_alv_grid and the links mentioned therein.
    Regards
      Uwe

  • Events in alv grid dispaly

    Hi,
    I have a requirement to select a row in ALV output and perform some action after a button is pressed.
    (i.e) i have a release button and after i select a line item in alv output and press on the button ,that item should be released.
    so both the events (Selection of line item and pressing of button) should happen together
    how can this be achieved.
    moreover i should be able to select multiple line items in the alv grid display.how can this be achieved.is it in fieldcatalog level or layout level.
    Any pointers to this would be of great help.
    Regards,
    S.Subasree.

    Hi,
    Check the sample code which captures multipe selcted rows
    on clicking a button.
    FORM sub_user_command USING ucomm TYPE sy-ucomm
                                  sel TYPE slis_selfield.
      DATA: ref_grid TYPE REF TO cl_gui_alv_grid.
      DATA: count             TYPE i            ,
            i_rows            TYPE lvc_t_row    .
      DATA: lf_row_index      TYPE lvc_index    ,
            i_selected_line_s TYPE lvc_s_row    ,
            l_vbeln           TYPE vbeln        .
    *then insert the following code in your USER_COMMAND routine...
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
      CASE ucomm.
        WHEN 'PDF'.
          CALL METHOD ref_grid->get_selected_rows
            IMPORTING
              et_index_rows = i_rows.
          LOOP AT i_rows
             INTO i_selected_line_s.
            lf_row_index = i_selected_line_s-index.
            CLEAR i_selected_line_s.
            READ TABLE it_itab
                  INTO wa_itab
                 INDEX lf_row_index.
            IF sy-subrc EQ 0.
              refresh:bdcmsgcoll,
                      bdcdata.
              clear:l_vbeln.
              MOVE wa_itab-vbeln TO l_vbeln.
    ENDFORM.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program       = sy-repid
                i_callback_pf_status_set = 'Z_PF_TEST'
                i_callback_user_command  = 'SUB_USER_COMMAND'
                is_layout                = ls_layout
                it_fieldcat              = lt_fieldcat
               it_sort     = lt_sort
           TABLES
                t_outtab    = it_itab.
    Regards,
    Raj.

  • ALV Grid dispaly

    I am using ECC 5 version.
    In the ALV grid display, if we assign a box as a first field, we get selection boxes for each row and also in the Fields' header, we will have one more button to select All fields and columns in the list.
    I do not require 'Select All' button in the list but I need individual selection buttons. Please help me.
    Thanks

    this should help u
    u want to select 2 or more boxes at a time , if i am right
    tables Mara.
    DATA: begin of lmara OCCURS 0,
    abc.
    include structure mara.
    data end of lmara.
    SELECT * FROM mara.
    move-corresponding mara to lmara.
    append lmara.
    endselect.
    call screen 100.
    *& Module STATUS_0100 OUTPUT
    * text
    module STATUS_0100 output.
    * SET PF-STATUS 'xxxxxxxx'.
    * SET TITLEBAR 'xxx'.
    data: gc_custom_container TYPE REF TO cl_gui_custom_container,
    ggrid_codes TYPE REF TO cl_gui_alv_grid,
    gs_layout TYPE lvc_s_layo,
    gt_fieldcat type lvc_t_fcat.
    IF gc_custom_container IS INITIAL.
    CREATE OBJECT gc_custom_container
    EXPORTING container_name = 'ALV_CONTAINER'.
    CREATE OBJECT ggrid_codes
    EXPORTING
    i_parent = gc_custom_container.
    data st_fieldcat type lvc_s_fcat.
    st_fieldcat-fieldname = 'ABC'.
    st_fieldcat-inttype = 'C'.
    st_fieldcat-outputlen = 3.
    st_fieldcat-CHECKBOX = 'X'.
    st_fieldcat-EDIT = 'X'.
    st_fieldcat-coltext = 'ABC'.
    st_fieldcat-seltext = 'ABC'.
    append st_fieldcat to gt_fieldcat.
    clear st_fieldcat.
    st_fieldcat-fieldname = 'MATNR'.
    st_fieldcat-inttype = 'C'.
    st_fieldcat-outputlen = 10.
    st_fieldcat-coltext = 'Material'.
    st_fieldcat-seltext = 'MATNR'.
    append st_fieldcat to gt_fieldcat.
    gs_layout-grid_title = 'WELCOME 2 NEW WORLD'.
    gs_layout-no_toolbar = 'X'.
    CALL METHOD ggrid_codes->set_table_for_first_display
    EXPORTING
    * i_structure_name = 'MARA'
    is_layout = gs_layout
    CHANGING
    it_outtab = lmara[]
    it_fieldcatalog = gt_fieldcat.
    ENDIF.

  • Screen GUI Status Query ( ALV Grid)

    Hi All,
    I am having an ALV grid on a screen .
    I want to check the contents of the grid at the press of enter button, at present i have to press the check button available on the ALV grid to check the contents of the grid.
    Pls suggest

    Make sure that you set "ENTER" as the key which is to trigger the edit event.
            call method alv_grid->set_table_for_first_display
                exporting
                     is_layout              = lt_layout
                     it_toolbar_excluding   = lt_exclude
                changing
                     it_outtab       = ialv[]
                     it_fieldcatalog = fieldcat[].
    <b>
    * If cancelling points, register "ENTER" as event
    * and create the event receiver
             call method alv_grid->register_edit_event
                            exporting
                               i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    </b>
    *   create Event Receiver
              create object event_receiver.
    *   handler for ALV grid
              set handler event_receiver->handle_data_changed for alv_grid.
    Regards,
    Rich Heilman

  • PF Status and ALV GRID

    Hello Experts!
    I've created a screen with an alv_grid and a custom pf_status, I have a custome button defined in the pf_status, I need to pass the command executed from the pf_status to the alv_grid.
    Is this possible?
    My user refuses to use the alv_grid toolbar.

    Hi there
    Do the following
    1) separate off the functions you want the standard SAP GUI (SE41) to do - I usually choose the standard 3 buttons BACK, EXIT, CANCEL and just use these in your PAI. ( You set the status in the PBO)
    2) Now for the Grid toolbars you need to define event handlers for ON TOOLBAR, and ON USER COMMAND and have methods for these. You need to register the events as well.
    I'm using my own ALV GRID class but it refrences CL_GUI_ALV_GRID so you could code something like this..
    in the constructor
    the variable z_object is simply a refrence to type cl_gui_alv_grid. GRID1 is also defined as a reference to cl_gui_alv_grid.
    As an import parameter to the constructor I also pass the name of the program - which is quite useful as I can then in various methods of the class do a Perfom (XXXX) in program (yyyy) if found.
    method constructor .
    create object grid_container1
            exporting
    *           container_name = 'CCONTAINER1'.
        container_name = cfname.
        create object  grid1
           exporting
              i_parent = grid_container1.
        set handler z_object->on_user_command for grid1.
        set handler z_object->on_toolbar for grid1.
        set handler z_object->handle_data_changed for grid1.
        set handler z_object->handle_data_changed_finished for grid1.
        set handler z_object->on_dubbelklik for grid1.
        set handler z_object->on_hotspot for grid1.
        call method grid1->register_edit_event
            exporting
               i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      endmethod.
    Now for the on_toolbar and on_user_command methods.
    method on_toolbar .
    type-pools icon.
    clear ls_toolbar.
         move  0 to ls_toolbar-butn_type.
         move 'EXCEL' to ls_toolbar-function.
         move  space to ls_toolbar-disabled.
         move  icon_xxl to ls_toolbar-icon.
         move 'Excel' to ls_toolbar-quickinfo.
         move  'EXCEL' to ls_toolbar-text.
         append ls_toolbar to e_object->mt_toolbar.
        perform   toolbar  in program (caller) if found
         using e_object.
    endmethod.
    method on_user_command .
    *        FOR EVENT before_user_command OF cl_gui_alv_grid
    *        IMPORTING
    *          e_ucomm
    *          sender
    case e_ucomm.
          when 'EXIT'.
            leave program.
          when 'EXCEL'.
           call method me->download_to_excel.
          when 'SAVE'.
          when 'PROC'.
            call method me->process.
          when 'REFR'.
            call method me->refresh.
            when 'SWITCH'.
            call method me->switch.
           when 'TEST'.
            call method me->get_cell.
           endcase.
    endmethod.
    The toolbar event  is particularly useful if you want to add / remove standard functionality to the standard toolbar.
    As I've definedined my class with SE24 rather than inline code then I don't need the FOR EVENT statement in the method -- if your class is ïn line "i.e part of the abap" then you'll need those statements..
    When you now press one of the grid toolbar buttons your ON_USER_COMMAND Method will be executed with the FCODE assigned to the button passed as a parameter e_ucomm.
    You can also intercept the Standard SAP  ALV toolbars as well as the on user command event gets handled BEFORE the SAP code.
    For example as I previously posted you can intercept say the standard  sort ascending  button  (code &SORT_ASC)  issue a popup and carry on.
    Cheers
    jimbo

  • REGARDING horizontal scroller in alv grid o/p

    hi,
       i have developed a report in alv grid its wrking fine..
      i want one thing >>>>in the o/p screen the plantid  is the first column, the second column is the plant name what i want is that, horizontal  scroller will work from plant name not from plantid for this what parameters sud i pass in the fieldcat for plantid.plz help me.

    Hi,
    U have to put for that particular plant id
    wfieldcat-key = 'X'.
    Thanks,
    Sankar M

  • Differences between the alv's and alv grid dispaly

    hi guys
    .........please send the  differences between the alv's and alv grid display.
                    thanks....

    Hi Midathala,
    Plz go through the links might be useful to you.
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    Check the program in the following link:
    http://sap-img.com/abap/display-secondary-list-using-alv-grid.htm
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    13. Top-of-page in ALV
    selection-screen and top-of-page in ALV
    14. ALV Group Heading
    http://www.sap-img.com/fu037.htm
    How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    15. ALV output to PDF conversion
    It has an example code for PDF Conversion.
    http://www.erpgenie.com/abap/code/abap51.htm
    converting the output of alv in pdf
    Thanks
    Mohinder Singh Chauhan

  • Regarding pf-status in alv

    hi all,
        could any one  answer what is fgroup 'salv' in the following piece of alv code and how can we
    see it.
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
          FORM SET_PF_STATUS                                         *
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZNEWSTATUS'.
                      "Copy of 'STANDARD' pf_status from fgroup SALV
    ENDFORM.
    regards,
    pavan.

    Hello Pavan
    If you want to have a customer-specific GUI status which is similar to the standard GUI status then display function group SALV in the workbench editor (SE80), open the folder GUI status and copy the status STANDARD to your ALV report (e.g. as ZNEWSTATUS).
    If you do not have function SALV available in your system you can use the STANDARD status of function group SLVC_FULLSCREEN instead.
    You may also have a look at thread: [alv pf status|alv pf status;
    Regards,
      Uwe

  • Problem in GUI status of ALV Grid

    Hello All Experts,
    I have a following issue.
    Am displaying a report using   REUSE_ALV_GRID_DISPLAY. I have copied the GUI status from standard GUI   STANDARD_FULLSCREEN. Now when i dispaly the report i get  select all ICON just before my first column(Marked in red below). i do not need this icon, i have checked in my GUI status also this icon does not exist. can you please help me how to remove this icon.
    This is how i have declared the field catalog for my first column.
      fieldcatalog-fieldname    = text-013.
      fieldcatalog-seltext_m   = text-014.
      fieldcatalog-col_pos      = 0.
      fieldcatalog-outputlen    = 3.
      fieldcatalog-emphasize  = gc_x.
      fieldcatalog-key            = gc_x.
      fieldcatalog-checkbox   = gc_x.
      fieldcatalog-edit            = gc_x.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    Am really thankful to your resposes.
    Regards,
    Satish

    i tested with
    REUSE_ALV_GRID_DISPLAY and it works fine as you want
    report ztestalv.
    type-pools:
      slis.
    data:
      i_usr02 type table of usr02,
      afield  type slis_fieldcat_alv,
      sp_group      type slis_sp_group_alv,
      t_listheader  type slis_t_listheader with header line,
      t_layout      type slis_layout_alv,
      t_fieldcat    type slis_t_fieldcat_alv,
      t_spec_groups type slis_t_sp_group_alv,
      event         type slis_alv_event,
      t_events      type slis_t_event,
      g_variant     like disvariant,
      gx_variant    like disvariant,
      g_exit(1)     type c,
      g_save(1)     type c,
      g_repid       like sy-repid,
      msgtyp        like sy-msgty,
      lt_dynpread   like dynpread occurs 1 with header line.
    start-of-selection.
      select * from usr02 into table i_usr02
      up to 200 rows.
    end-of-selection.
      t_layout-detail_initial_lines = 'X'.
      t_layout-detail_popup         = 'X'.
      t_layout-f2code               = 'PIC1'.
      t_layout-get_selinfos         = 'X'.
      t_layout-group_change_edit    = 'X'.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
        exporting
          i_structure_name = 'USR02'
        changing
          ct_fieldcat      = t_fieldcat
        exceptions
          others           = 4.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = 'ZTESTALV'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USR_CMD'
          i_structure_name         = 'USR02'
          is_layout                = t_layout
          it_fieldcat              = t_fieldcat
          it_special_groups        = t_spec_groups
          i_default                = 'X'
          i_save                   = g_save
          is_variant               = g_variant
          it_events                = t_events
        tables
          t_outtab                 = i_usr02
        exceptions
          program_error            = 1
          others                   = 2.
    make sure your field ls_layout-box_fieldname is blank, as you using the checkbox

  • PF Status in ALV grid

    I've created a pf status 'STD' by copying that of SAPLSALV 's standard pf-status.
    I've a menu entry to add. which i 've done.
    Then i've attached the pf-status 'STD' to my program.
    Now when user chooses one column and clicks on it i have to show a message as to which column is being picked and how many similar entries are existing. Basically count the number of entries.
    M using FM 'REUSE_ALV_GRID_DISPLAY' for showing output.
    How can i achieve this?Plz provide some sample code for better understanding.
    Plz help.

    hi annie,
    look at the follwing code for better understanding
    *&      Form  zf_user_command
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                                      RS_SELFIELD TYPE SLIS_SELFIELD .
        CASE R_UCOMM. "FCODE
        WHEN 'VA03'.
          READ TABLE I_SALES_FINAL INTO WA_SALES_FINAL INDEX RS_SELFIELD-TABindex.
          SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN .
          MESSAGE I102 WITH RS_SELFIELD-VALUE .
        WHEN '&IC1'.   "for hotspot with VBELN, POSNR, MATNR, KUNNR.
          IF RS_SELFIELD-FIELDNAME = 'MATNR'.
          SET PARAMETER ID 'MAT' FIELD RS_SELFIELD-VALUE.
          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
          RETURN.
            MESSAGE I103 WITH RS_SELFIELD-VALUE .
          ENDIF.
    IF RS_SELFIELD-FIELDNAME = 'VBELN'.
          SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
          RETURN.
            MESSAGE I104 WITH RS_SELFIELD-VALUE .
          ENDIF.
      ENDCASE.
    ENDFORM.                    " zf_user_command
    reward point if useful
    Rohan

Maybe you are looking for

  • DVD's not working

    Hi ... I am having a compaq presario v3425au notebook. From yesterday onwards I have observed a peculiar issue in my lappie. Cd's are working fine but DVD's are not getting detected.. I tried with a new sony DVD also but of no use.... I tried differe

  • Report on  EMP id/wagetypes and G/L accounts

    Hi there, Can anybody please let me know what is the table where i can get a report on wagetype, employee number and the G/L account that is hit by that particular wagetype. (the report needs to be sorted by wagetype and by personnel number) Thanks,

  • Passing a reference / variable to a Custom Component

    Hi, I was wondering if someone could help me. It seems like a very simple problem but I cant for the life of me seem to work out a solution. I have created a Custom Component that extends from the UIComponent that consists of a "rev counter" style cl

  • Missing table begin XSL context for:

    Hi, I'm working on a table listing in an RTF template. This has several <?choose?> commands, a <?for-each?> command, and some variables. All of a sudden I'm getting the above message for all my <?choose?> and <end for-each?> statements Any ideas? I'v

  • How to save a layer as an alpha channel?

    Is there a way to save a layer as an alpha channel? So later i can use it as a slection?