Icons in normal alv

Hai
can any one give me example of normal interactive alv ..
report.
I hav one alv rep having 5 secondary lists.
1) i need to print this report via diff. options unconverted, richtext format, spreadsheet, html format
2)i wnt icons such as firstpage, prev, nxt, last page icons on toolbar.
3)back arrow, uparrow, close arrows as well.
How to do this...plz tell me
wt is the procedure..>> guide me in detail

Hi
just check this.
this is how you call the basic list.
  g_repid = sy-repid.
  REFRESH : gt_events.
basic list ALV Call
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program          = g_repid
      i_callback_pf_status_set    = 'FRM_PF_STATUS'      "set PF Status
      i_callback_user_command     = 'FRM_USER_COMMAND'   "secondary list
      i_callback_html_top_of_page = c_html_top_of_page
      it_fieldcat                 = gt_fieldcat
      i_html_height_top           = 13
    TABLES
      t_outtab                    = gt_isrlog1          "Basic list data
    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.
This is ur secondary list.
*&      Form  FRM_USER_COMMAND
      User command
FORM frm_user_command  USING p_ucomm LIKE sy-ucomm
                           rs_selfield TYPE slis_selfield.
  CLEAR gt_isrlog1.
  READ TABLE gt_isrlog1 INDEX rs_selfield-tabindex.
  CASE p_ucomm.
    WHEN '&IC1'.
Build Secondary list
      PERFORM build_secondary_list.
  ENDCASE.
ENDFORM.                  "FRM_USER_COMMAND
There are so many standard ALV programs for you ref. just go to SE38 and give BCAL* and do a F4 you will get list of all the ALV's.
Regards,
Lakshmikanth.

Similar Messages

  • Sort Icon/option in ALV tree repot using classes and methods

    Hi all,
    I have done an alv tree report using the class cl_gui_alv_tree
    and i need to let users re-sort the report by using a sort icon(as visible in a normal alv report).Is there any possibility to create an icon and set the functionality such that the entire tree structure gets resorted depending upon the sort criteria?Please give me an example of doing so if there is an option.

    if u want without classes then i can  give an example of Sort Icon/option.
    example:-
    DATA:   wa_sortinfo TYPE slis_sortinfo_alv.
           i_sortcat TYPE slis_t_sortinfo_alv.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = report_id
                i_grid_title           = ws_title
               i_callback_top_of_page = 'TOP-OF-PAGE'
                is_layout              = wa_layout
                it_fieldcat            = i_fieldcat[]
                it_sort                = i_sortcat
                i_save                 = 'A'
                it_events              = i_events
           TABLES
                t_outtab               = i_reportdata1
           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.
      PERFORM sortcat_init CHANGING i_sortcat.
    FORM sortcat_init CHANGING i_sortcat TYPE slis_t_sortinfo_alv.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'EBELN'. (sales order)
      wa_sortinfo-tabname = 'I_REPORTDATA1'.
      wa_sortinfo-spos = 1.            " First sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'EBELP'.
      wa_sortinfo-tabname = 'I_REPORTDATA1'.
      wa_sortinfo-spos = 2.            " Sec sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
    ENDFORM.                    " sortcat_init

  • I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have be

    I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have been forced to go to IE or Crome in order to accomplish what I need to do. Very frustrating. Also clicking in the slider area has no effect. "Page Up" and "Page Down" keys work. Holding down left mouse button on slider works. Also very frustrating. Can someone help
    == This happened ==
    A few times a week
    == Upgraded to 3.6.3.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • 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

  • Icons in Normal Report

    Can any body give me a piece of code for placing one icon in normal report

    hi,
    try like this
    *--printing Icons in Selection Screen--
    TYPE-POOLS: icon.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text_001.
    PARAMETERS: p_werks TYPE marc-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text_002.
    PARAMETERS: p_whouse(10).
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text_003.
    PARAMETERS: p_auart LIKE vbak-auart.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      WRITE icon_search AS ICON TO text_001.
      CONCATENATE text_001 text-001 INTO text_001 SEPARATED BY space.
      WRITE icon_warehouse AS ICON TO text_002.
      CONCATENATE text_002 text-002 INTO text_002 SEPARATED BY space.
      WRITE icon_order AS ICON TO text_003.
      CONCATENATE text_003 text-003 INTO text_003 SEPARATED BY space.
      PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
      PARAMETERS: p1(10) TYPE c,
                  p2(10) TYPE c,
                  p3(10) TYPE c.
      SELECTION-SCREEN END OF BLOCK b1.
      SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
      PARAMETERS: p4(10) TYPE c MODIF ID bl2,
                  p5(10) TYPE c MODIF ID bl2,
                  p6(10) TYPE c MODIF ID bl2.
      SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all <> 'X' AND
           screen-group1 = 'BL2'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    or
      INCLUDE <list>.
      WRITE icon_zoom_in AS ICON.
      WRITE icon_life_events AS ICON.
      WRITE sym_filled_square AS SYMBOL.
      WRITE sym_filled_circle AS SYMBOL.
    reward if useful...

  • Normal ALVs vrs ALV OOPs

    I am using ALV OOPs. In ALV OOPs Appl tool bar is working by default when we create PF-STATUS. But in case of normal ALVs we need to write code for SY-UCOMM in PAI. why this happens, can anybody give tips. 
    Regards,
    Naseer.

    Hi Naseer,
    In Normal ALV we use Function mnodule and in OOPs we use classes and methods.
    In Normal ALV we cannot place grids on screens but in OOALV we can place grids on screens.
    we can insert logos in OOPS ALV.
    see the code below
    for displaying LOGO in ALV GRID CONTROL, we work with
    Predefined global class. CL_GUI_ALV_TREE_SIMPLE. FOR
    displaying LOGO. AND we use CL_GUI_CUSTOM_CONTAINTER for
    identifies the location where we r goinh to display.
    DECLARATIONS;
    TYPE-POOLS: SDYDO, SLIS.
    DATA: L_LOGO TYPE SDYDO_VALUE,” FOR DISPLAYING LOGO
    L_LIST TYPE SLIS_T_LISTHEADER. ” FOR LIST HEADING
    DATA: LOGO TYPE SCRFNAME VALUE ‘SLOGO’,
    CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    LOGO1 TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.
    CREATE INSTANCE FOR ABOVE DEFINED CLASSES IN PBO EVENT
    OF SCREEN FLOW LOGIC.
    IF CONTAINER IS INITIAL.
    CREATE OBJECT CONTAINER EXPORTING CONTAINER_NAME =
    LOGO.
    CREATE OBJECT LOGO1 EXPORTING I_PARENT = CONTAINER.
    NOW CALL THE METHOD FOR DISPLAYING LOGO IN GRID CONTROL
    CALL METHOD LOGO->‘CREATE_REPORT_HEADER’
    EXPORTING
    I_LIST_COMMENTARY = L_LIST
    I_LOGO = ’ ’ ” HERE PASS WHERE LOGO EXISTING.
    THE ABOVE METHOD EXISTING
    Please reward points if helpful..
    Cheers,
    Chaitanya.

  • TS1382 My I-Pod will not accept a charge.  The battery icon I normally see while charging is not visible on the screen.  The cord works fine to charge my I-Pad.

    My I-Pod will not accept a charge.  The battery icon I normally see while charging is not visible.  The cord works when charging my I-Pad.  Any ideas?

    Please find "System Information" in this folder path---Applications > Utilities---and launch it. When it opens, find "Power" in the left-hand contents pane and click it to get something like this in teh main pane:
    Copy everything in the "Battery Information" and copy/paste it here. The number values in that report may help us diagnose what is happening.
    Also, did you buy this battery directly from Apple or from another source. There are an increasing number of reports showing up that suggests some counterfeit batteries being sold.

  • Refresh Normal ALV

    Hi everybody,
    I have done normal ALV report.I did not use any methods for displaying . now i want to refresh the normal ALV report. is there any command for refreshing the alv report....
    thanks and regards,
    varahagiri.

    Um mean to say u want to auto-refesh ur ALV list? If it is then try this sample code...
    REPORT z_alv_auto_refresh.
    TYPE-POOLS: slis.                      " ALV Global Types
    DATA :
      gt_user LIKE uinfo OCCURS 0 WITH HEADER LINE. " User info in SM04
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
          Form  F_LIRE_DATA
    FORM f_read_data.
      REFRESH gt_user.
    Get User's info
      CALL FUNCTION 'THUSRINFO'
           TABLES
                usr_tabl = gt_user.
    Wait in a task
      PERFORM f_call_rfc_wait.
    ENDFORM.                               " F_READ_DATA
         Form  F_DISPLAY_DATA
    FORM f_display_data.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DEFINE m_event_exit.
        clear ls_event_exit.
        ls_event_exit-ucomm = &1.
        ls_event_exit-after = 'X'.
        append ls_event_exit to lt_event_exit.
      END-OF-DEFINITION.
      DATA :
        ls_layout     TYPE slis_layout_alv,
        lt_sort       TYPE slis_t_sortinfo_alv,
        ls_sort       TYPE slis_sortinfo_alv,
        lt_event_exit TYPE slis_t_event_exit,
        ls_event_exit TYPE slis_event_exit.
    Build Sort Table
      m_sort 'ZEIT'.
    Build Event Exit Table
      m_event_exit '&NTE'.                 " Refresh
      ls_layout-zebra = 'X'.
      ls_layout-colwidth_optimize = 'X'.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_callback_program      = sy-cprog
                i_callback_user_command = 'USER_COMMAND'
                is_layout               = ls_layout
                i_structure_name        = 'UINFO'
                it_sort                 = lt_sort
                it_event_exit           = lt_event_exit
           TABLES
                t_outtab                = gt_user.
    ENDFORM.                               " F_DISPLAY_DATA
          FORM USER_COMMAND                                             **
    FORM user_command USING i_ucomm     TYPE syucomm
                            is_selfield TYPE slis_selfield.     "#EC CALLED
      CASE i_ucomm.
        WHEN '&NTE'.
          PERFORM f_read_data.
          is_selfield-refresh = 'X'.
          SET USER-COMMAND '&OPT'.         " Optimize columns width
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
         Form  F_CALL_RFC_WAIT
    FORM f_call_rfc_wait.
      DATA lv_mssg(80).                                         "#EC NEEDED
    Wait in a task
      CALL FUNCTION 'RFC_PING_AND_WAIT' STARTING NEW TASK '001'
        PERFORMING f_task_end ON END OF TASK
        EXPORTING
          seconds               = 5        " Refresh time
          busy_waiting          = space
        EXCEPTIONS
          RESOURCE_FAILURE      = 1
          communication_failure = 2  MESSAGE lv_mssg
          system_failure        = 3  MESSAGE lv_mssg
          OTHERS                = 4.
    ENDFORM.                               " F_CALL_RFC_WAIT
         Form  F_TASK_END
    FORM f_task_end USING u_taskname.
      DATA lv_mssg(80).                                         "#EC NEEDED
    Receiving task results
      RECEIVE RESULTS FROM FUNCTION 'RFC_PING_AND_WAIT'
        EXCEPTIONS
          RESOURCE_FAILURE      = 1
          communication_failure = 2  MESSAGE lv_mssg
          system_failure        = 3  MESSAGE lv_mssg
          OTHERS                = 4.
      CHECK sy-subrc EQ 0.
      SET USER-COMMAND '&NTE'.             " Refresh
    ENDFORM.                               " F_TASK_END
    If u want normal refresh based on clicking on a button then follow these steps:
    1. Pass the subroutine name for event user_command to ALV list like:
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_callback_program      = sy-cprog
                i_callback_user_command = 'USER_COMMAND'
                is_layout               = ls_layout
                i_structure_name        = 'UINFO'
                it_sort                 = lt_sort
                it_event_exit           = lt_event_exit
           TABLES
                t_outtab                = gt_user.
    2. In the routine USER_COMMAND trap the fcode and set the refesh field.
          FORM USER_COMMAND                                             **
    FORM user_command USING i_ucomm     TYPE syucomm
                            is_selfield TYPE slis_selfield.     "#EC CALLED
      CASE i_ucomm.
        WHEN 'ABCD'.
          is_selfield-refresh = 'X'.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
    3. Attach custom pf-status and there define a button with fcode
    ABCD.
    So that whenever u press this button user_command routine will get called and ALV list get refreshed.
    Regards,
    Joy.

  • Maximum Number of Columns in OOPs ALV / Normal ALV Grid

    Hi Experts ,
    We got Stuck in Displaying the 150 Columns in the ALV Display .
    Need to Confirm how many Columns can be displayed in ALV - 60/90/99/1023  Or 1023 characters in ALv Display
    1. How It can be achieved to display 150 Columns in ALV .
    2. By Which way it should be More Efficient Using OOPs ALV or Normal ALV Grid.
    We had check almost all the forums Post but didnt get any satisfactory answer for the same .
    Thanks in advance
    Regards,
    Saurabh Goel

    Hello,
    If you are preparing your field catalog by using the function module REUSE_ALV_FIELDCAT_MERGE, then you can display a
    maximum of something around 70 to 82 fields.
    But if you are creating your field catalog manually, then you can display N number of columns in ALV grid.
    Check the point of fieldcat preparation.
    Hope this helps
    Cheers!
    Mishra

  • How to REFRESH Normal ALV..

    Hi Experts,
    I have Display normal ALV REPORT using 'REUSE_ALV_GRID_DISPLAY'.
    When Double Click on a Particular Field say EBELN I need to Modify the Text say TXZ01( In below Source Code I Cleared Text just for Example).
    Using u2018&IC1u2019 I modified in Internal Table, but it is not visible in the Screen.
    Can anyone Give Idea on This.
    TYPE-POOLS slis.
    DATA : it_ekpo TYPE STANDARD TABLE OF ekpo,
           it_fcat TYPE slis_t_fieldcat_alv.
    START-OF-SELECTION.
      SELECT * FROM ekpo INTO TABLE it_ekpo UP TO 10 ROWS.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'EKPO'
        CHANGING
          ct_fieldcat            = it_fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = sy-cprog
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat             = it_fcat
        TABLES
          t_outtab                = it_ekpo
        EXCEPTIONS
          program_error           = 1.
    *&      Form  USER_COMMAND
          text
         -->SLIS_SELFIELD  text
    FORM user_command USING command TYPE sy-ucomm
                            field   TYPE slis_selfield.
      FIELD-SYMBOLS <lfs_fcat>  TYPE ekpo.
      IF command EQ '&IC1'.
        IF  field-fieldname  EQ 'EBELN'.
          READ TABLE it_ekpo ASSIGNING <lfs_fcat> INDEX field-tabindex.
          IF sy-subrc EQ 0.
            CLEAR <lfs_fcat>-txz01.
          ENDIF.
          CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_REFRESH' .
        ENDIF.
      ENDIF.
    ENDFORM.            "USER_COMMAND
    Regards,
    Kumar

    Hi,
      Try like below:
    *& Form USER_COMMAND
    * text
    * -->SLIS_SELFIELD text
    FORM user_command USING command TYPE sy-ucomm
    field TYPE slis_selfield.
    FIELD-SYMBOLS <lfs_fcat> TYPE ekpo.
    IF command EQ '&IC1'.
    IF field-fieldname EQ 'EBELN'.
    READ TABLE it_ekpo ASSIGNING <lfs_fcat> INDEX field-tabindex.
    IF sy-subrc EQ 0.
    CLEAR <lfs_fcat>-txz01.
    ENDIF.
    ENDIF.
    ENDIF.
    field-refresh ' X'.                      <----Add this
    ENDFORM. "USER_COMMAND
    Regards,
    Himanshu

  • Normal ALV grid

    Hello,
          I am editing a field in alv grid but I am not able to save.
                I am using normal ALV and not OOALV.
         I am able to get the row which I am edit but how do i get modified cell.

    Hi try to get the concept from the below code snippet. keep a checkbox in your final itab that you want to show using ALV.then mark the checkbox for the line you want to edit a field.
    WHEN '&ZXZ'.
          CLEAR l_cntr.
          CLEAR WA_final.
          LOOP AT IT_final INTO WA_final.
            IF WA_final-chk = 'X'.
              l_cntr = l_cntr + 1.
            ENDIF.
          ENDLOOP.
          IF l_cntr GT 1.
            MESSAGE i011.
          ELSEIF l_cntr = 1.
            READ TABLE IT_final INTO WA_final WITH KEY chk = 'X'.
            CALL FUNCTION 'POPUP_TO_GET_VALUE'
              EXPORTING
               fieldname                 = 'MENGE'
                tabname                  = 'EKPO'
                titel                    = 'PO Quan.'
                valuein                  = WA_final-menge
              IMPORTING
    *           ANSWER                    =
               valueout                  = l_out_string
             EXCEPTIONS
               fieldname_not_found       = 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.
            CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.
              l_out_final = l_out_string.
            ENDCATCH.
            IF sy-subrc = 1.
              MESSAGE i012 DISPLAY LIKE 'E'.
            ELSE.
              WA_final-menge = l_out_final.
              MODIFY IT_final FROM WA_final TRANSPORTING menge
              WHERE chk = 'X'.
              CLEAR WA_final.
              PERFORM disp_alv.
            ENDIF.
          ELSE.
            MESSAGE i010.
          ENDIF.
    I have kept this code snippet for the subroutine used corresponding to the pf-status.
    Regards.
    Sarbajit

  • Can i make a normal alv report web eabled if so please guide me

    can i make a normal alv report web eabled if so please guide me

    i m getting the error as below
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Die URL enthält keine vollständige Domainangabe (ecc01 statt ecc01.).
    Exception Class
    CX_FQDN
    Error Name
    Program
    CX_FQDN=======================CP
    Include
    CX_FQDN=======================CM002
    ABAP Class
    CX_FQDN
    Analyze
    CHECK
    Line
    10
    Long text
    Error type: Exception
    Your SAP Business Server Pages Team

  • Icon display in alv report

    Hi all,
           I have a problem in alv report ,there are 5 fields to display and in 6th position i have to display an icon as red or green light according to data. How can i do that ? please help me .
    Thanks and regards
    Goutam

    Hi goutam,
    1. Simple
    2. we have to use the layout for this purpose.
    3. like this :
      alvly-lights_fieldname = 'LT'.
      alvly-lights_tabname = 'ITAB'.
    4. Just copy paste to get a taste of it.
      (important code has been highlighted)
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvly TYPE slis_layout_alv.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : BEGIN OF itab OCCURS 0,
    <b>       lt TYPE i,</b>
           matnr LIKE mara-matnr,
           END OF itab.
    END-OF-SELECTION.
    <b>  itab-lt = 1.
      APPEND itab.
      itab-lt = 2.
      APPEND itab.
      itab-lt = 3.
      APPEND itab.
      itab-lt = 1.
      APPEND itab.
      itab-lt = 3.
      APPEND itab.
      itab-lt = 3.
      APPEND itab.
      itab-lt = 3.
      APPEND itab.</b>
    <b>  alvly-lights_fieldname = 'LT'.
      alvly-lights_tabname = 'ITAB'.</b>
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          it_fieldcat        = alvfc
          is_layout          = alvly
          i_save             = 'A'
        TABLES
          t_outtab           = itab.
    regards,
    amit m.

  • SUM icon issue in ALV Report

    HI all,
    I have developed an ALV Report. In the ALV display, i would like to sum see the Sum (Total) of few fields like Qty, Net value etc when i select that particular column and click the 'SUM" icon.
    In my Report when i do so, the Program is displaying Runtime Error.
    How to resolve this issue?
    Any idea?
    Regards
    Pavan

    You must make sure that these columns are defined correctly in the field catalog and in the internal table.  For example, make sure that the quantity field is typed as such in the internal table.
    data: begin of itab occurs 0,
            qty type p decimals 2,
            end of itab.
    And then in your field catalog, make sure that the DATATYPE is set correctly.
    ls_fcat-datatype = 'QUAN'.
    Do this may help your situation.  Also make sure that the data in these columns is all numeric.
    Regards,
    Rich Heilman

  • How to display ICONS in normal report without using icons table

    Hi Friends,
    I have to display icons(traffic lights) in a normal report.
    Can we do that without using icons table?
    If yes, please let me know how?
    Thanks,

    Hi Pagidala,
    Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
    In this you can see sample code which may help you.
    Cheers!!

Maybe you are looking for

  • Problem with kde and sound

    Hi! I've a problem with KDE and sound. When KDE shows a alert the alert's sound sounds with delay. 3-5 seconds. Same happens with kde start. Can anybody help me? Thanks!

  • Mac Mini will not boot up - Poss due to Mavericks?

    I've had a MacMini since Nov 11 and it's never caused me any problems until lat night. I updated to Mavericks on Fri afternoon and everything worked well until last night (Saturday). On start up the screen had the Apple logo, a small revolving patter

  • JSF 2.0 and Richfaces

    Hello, I want to integrate RichFaces to JSF 2.0 project. Please, what are the jar files that I include in my project and give me the procedure to follow to integrate in a RichFaces JSF 2.0. I need your help Thank you

  • Bpm 64 bit or 32bit

    Friends Just wanted to check if there is a bpm 64 bit enterprise version and 32 bit one separate or is there is universal installer which can be used for both 64 and 32 bit? Thanks

  • Labview Read INI File Slow

    Dear ALL:       I have a VI use OpenG Read INI Cluster subvi to read a complex cluster data structure called step config data,and when I Run this VI,It sometimes read INI File quickly,and sometimes read INI File very slowly.If I want to speed up the