Use  of reuse_alv_grid_display

i  have a  requirment ,.  how can i call  a  bdc in a  report  to save  change data in  a  transaction. how  i  can get  new
line when  user click new to  get same line as  previous  line  with the  only  one editable  coloumn.
next is  user  want copy button  for  Copy     - Copies the selected line with values and written to the next line
-     the desired values are adjusted  Activity Typ and/or Tariff.
my pf-status also not working.
this  is a hr  report  with one editable  coloumn  .
Description
1.     The User selects on cost center or employee number one area.
2.     According to his selection to be offered the list of Cost center
Here he has the following options:
a)     change of the price and accrued with time
b)     assignment of existing cost center, a new activity typ
If a change is always a  time-deferred
e.g.      Akt.Typ 01      01.01.2010      to      01.07.2010          95,-
     Akt.Typ 01      02.07.2010      to      31.12.2010          100,-
For the following editing functions are available:
New     - it will release a new line
- the values can be maintained manually
Copy     - Copies the selected line with values and written to the next line
-     the desired values are adjusted  Activity Typ and/or Tariff
Save      - when saving the program writes the new values in
please  help me.
Moderator message: "spec dumping", please work yourself first on your requirement.
locked by: Thomas Zloch on Oct 12, 2010 1:05 PM

Please SEARCH in SCN/Google before posting.

Similar Messages

  • ABAP Dump with using FM 'REUSE_ALV_GRID_DISPLAY'

    Hi,
    I copied a Standard report program(RCOPCA02) to Z-Program for adding two new fields in the report output. I added those two new fields in the field catalog also. Actually the program is using
    FM 'REUSE_ALV_GRID_DISPLAY' , when i execute the program it is dumping.
    when i use the same program with FM 'REUSE_ALV_LIST_DISPLAY' with same field catalog the fields are displaying in the layout and report but the values are not populating in the report.
    Where is the problem i am not understanding.
    Thanks,
    fractal

    I checked in Debug mode, the values are coming in Internal Table correctly...
    Here is the Dump.
    Runtime Errors              MESSAGE_TYPE_X       
    What happened?                                                                               
    The current application program detected a situation which really      
    should not occur. Therefore, a termination with a short dump was       
    triggered on purpose by the key word MESSAGE (type X).                 
    Error analysis                                      
    Short text of error message:                                                                               
    Technical information about the message:       
    Message classe...... "0K"                      
    Number.............. 000                       
    Variable 1.......... " "                       
    Variable 2.......... " "                       
    Variable 3.......... " "                       
    Variable 4.......... " "                       
    Variable 3.......... " "                       
    Variable 4.......... " "                       
    "MESSAGE_TYPE_X" C                                                         
    "SAPLSLVC " or "LSLVCF01 "                                                 
    "LINE_OUT_NEW_2"                                                           
    If you cannot solve the problem yourself, please send the                  
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                               
       To obtain this, select the "Print" function on the current screen.      
    2. A suitable hardcopy prinout of the system log.                          
       To obtain this, call the system log with Transaction SM21               
       and select the "Print" function to print out the relevant               
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,         
       supply the source code.                                                 
       To do this, you can either use the "PRINT" command in the editor or     
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred         
       or which actions and input led to the error.                            
    Information on where termination occurred                                                                               
    The termination occurred in the ABAP program "SAPLSLVC " in "LINE_OUT_NEW_2".              
    The main program was "ZRCOPCA02 ".                                                                               
    The termination occurred in line 924 of the source code of the (Include)                   
    program "LSLVCF01 "                                                                       
    of the source code of program "LSLVCF01 " (when calling the editor 9240).                  
    Source code extract                                                                               
    008940                   gs_roid-row_id = rs_row-index * -1.                                    
    008950                 endif.                                                                   
    008960                 gs_roid-sub_row_id = rs_row-rowtype+7(10).                               
    008970                 gs_poid-row_id = gs_roid-row_id.                                         
    008980                 gs_poid-sub_row_id = gs_roid-sub_row_id.                                 
    008990                 gs_poid-rowtype    = rs_row-rowtype.                                     
    009000                 gs_poid-index      = rs_row-index.                                       
    009010                 insert gs_poid into table rt_poid.                                       
    009020               endif.                                                                     
    009030               append gs_roid to rt_roid.                                                 
    009040                                                                                          
    009050               loop at rt_fieldcat assigning <ls_fieldcat> where tech ne 'X' and          
    009060                                                                 no_out ne 'X'.           
    009070                                                                                          
    009080                 if gflg_invisible = 'X'.                                                 
    009090                   if <ls_fieldcat>-do_sum is initial.                                    
    009100                     clear gflg_invisible.                                                
    009110                     continue.                                                            
    009120                   else.                                                                  
    009130                     clear g_col_counter.                                              
    009140                     clear gflg_invisible.                                             
    009150                   endif.                                                              
    009160                 endif.                                                                
    009170                                                                                       
    009180                 clear gs_lvc_data.                                                    
    009190                 clear g_style.                                                        
    009200                                                                                       
    009210                 assign component                                                      
    009220                        <ls_fieldcat>-fieldname of structure rt_data to <g_field>.     
    009230                 if sy-subrc ne 0.                                                     
    >                   message x000(0k).                                                   
    009250                 endif.                                                                
    009260                                                                                       
    009270                 g_col_counter = g_col_counter + 1.                                    
    009280                                                                                       
    009290                 gs_lvc_data-row_pos = r_row_counter.                                  
    009300                 gs_lvc_data-col_pos = g_col_counter.                                  
    009310                 gs_lvc_data-row_id  = gs_roid-row_id.                                 
    009320                 gs_lvc_data-sub_row_id = gs_roid-sub_row_id.                          
    009330                                                                                       
    009340             *   Endtotal and average                                                  
    009350                 if rs_row-rowtype(1) ca 'T' and <ls_fieldcat>-do_sum = 'C'.           
    009360             *     save the actual grouplevel information                              
    009370                   gs_grouplevels = rs_grouplevels.                                    
    009380                   clear g_lines.                                                      
    009390                                                                                       
    009400             *     get number of lines of the collect table                            
    009410                   describe table rt_data lines g_lines.                               
    009420             *     if there is only one line or the field has no references so         
    009430             *     that only the first line has to be considered      
    SY field contents.....................           SY field contents........     
    SY-SUBRC           4                                  SY-INDEX           1                    
    SY-TABIX           95                                 SY-DBCNT           0                    
    SY-FDPOS           0                                  SY-LSIND           0                    
    SY-PAGNO           0                                  SY-LINNO           1                    
    SY-COLNO           1                                  SY-PFKEY           STANDARD_GRID        
    SY-UCOMM           DTC_CONT                                                         
    SY-TITLE           Profit Center: Actual Line Items                            
    SY-MSGTY           X                                  SY-MSGID           0K                   
    SY-MSGNO           000                                SY-MSGV1                                
    SY-MSGV2                                              SY-MSGV3                                
    SY-MSGV4                                                                               
    No.... Type........ Name..........................                  
           Program                                                      
           Include                                  Line                
           Class                                                        
        14           FORM                   LINE_OUT_NEW_2                             
                SAPLSLVC                                                     
                LSLVCF01                                             924               
        13           FORM                   TOTAL_OUT_NEW                              
                SAPLSLVC                                                     
                LSLVCF01                                            1297               
        12           FORM                   DATA_TABLE_PREPARE                         
                SAPLSLVC                                                     
                LSLVCF36                                             833               
        11           FORM                   LVC_TABLE_FOR_DISPLAY_PREPARE              
                SAPLSLVC                                                     
                LSLVCF36                                             259               
        10           FUNCTION               LVC_TABLE_FOR_DISPLAY_PREPARE              
                SAPLSLVC                                                     
                LSLVCU35                                             106               
         9           METHOD                 SOFT_REFRESH_TABLE_DISPLAY                 
                CL_GUI_ALV_GRID===============CP                             
                CL_GUI_ALV_GRID===============CM01P                  240               
                CL_GUI_ALV_GRID                                              
         8           METHOD                 REFRESH_TABLE_DISPLAY                      
                CL_GUI_ALV_GRID===============CP                             
                CL_GUI_ALV_GRID===============CM00T                  125               
                CL_GUI_ALV_GRID                                              
         7           METHOD                 MAINTAIN_VARIANT                           
                CL_GUI_ALV_GRID===============CP                             
            CL_GUI_ALV_GRID===============CP                              
            CL_GUI_ALV_GRID===============CM00P                  313                
            CL_GUI_ALV_GRID                                               
    6           METHOD                 EXECUTE_FCODE                               
            CL_GUI_ALV_GRID===============CP                              
            CL_GUI_ALV_GRID===============CM007                  582                
            CL_GUI_ALV_GRID                                               
    5           METHOD                 SET_FUNCTION_CODE                           
            CL_GUI_ALV_GRID===============CP                              
            CL_GUI_ALV_GRID===============CM01E                   53                
            CL_GUI_ALV_GRID                                               
    4           FORM                   PAI                                         
            SAPLSLVC_FULLSCREEN                                           
            LSLVC_FULLSCREENF01                                 1776                
    3           MODULE (PAI)           PAI                                         
            SAPLSLVC_FULLSCREEN                                           
            LSLVC_FULLSCREENI01                                    4                
    2           FUNCTION               REUSE_ALV_GRID_DISPLAY                      
            SAPLSLVC_FULLSCREEN                                           
            LSLVC_FULLSCREENU01                                   91                
    1           EVENT                  START-OF-SELECTION                          
            ZRCOPCA02                                                     
            ZRCOPCA02                                            928

  • Loosing changed contents when used FM REUSE_ALV_GRID_DISPLAY

    Hi,
    I have used FM REUSE_ALV_GRID_DISPLAY in my program as below.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = g_repid
          i_callback_pf_status_set = c_pf
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = ist_layout      "I_CALLBACK_TOP_OF_PAGE = C_TOP
          it_fieldcat              = ist_fieldcat
        TABLES
          t_outtab                 = ist_outtab.
    and kept one column editable by setting EDIT = 'X' and INPUT = 'X' for one column in ist_fieldcat.
    Now if user changes contents of a cell in this editable column and clicks on any toolbar button, then changed contetns are not received in USER_COMMAND routine.
    But if user changes the contents of a cell in this editable column and then double-clicks anywhere inside the ALV grid, then changed contents are received in USER_COMMAND routine.
    I dont want to loose the changed contents of ALV grid, can anybody help in this.
    Thanks in advance.
    Regards,
    Dhiraj

    In your USER_COMMAND form check the SY-UCOMM  for button which you have pressed may be you have used '&IC1'  (for double click)
    provide your Form USER_COMMAND code here.
    Kanagaraja L

  • Dynamic coloring of rows using FM (Reuse_alv_grid_display.)

    I need to color the rows depending on the condition dynamically . I am using FM Reuse_alv_grid_display for ALV . I have the code using Oops Concept, But i need to know how can we do using the Function Module. Please Clarify

    Hi,
    In the final internal table you declare one fieldsline_col(4) type c.
    Data: begin of itab occurs 0, "final internal table.
          line_col(4) type c,.
         end of itab.
    IF .......your condition.
        loop at itab.
          if itab-WERKS = '1000'.
            itab-line_col = 'C600'.
          endif.
          modify itab.
          clear itab.
        endloop.
    Next build your FIELDCATALOG ......
        gt_layout-zebra = 'X'.
        gt_LAYOUT-DETAIL_POPUP = ' '.
        gt_layout-info_fieldname = 'LINE_COL'.
    Next pass this to your FM.
    I hope this will help you.
    Thanks.
    If your issue is solved award points and close the thread if not revert back.
    Message was edited by: Deepak333 k
    Message was edited by: Deepak333 k

  • Double click using FM: REUSE_ALV_GRID_DISPLAY

    Hi
    I use FM: REUSE_ALV_GRID_DISPLAY to display ALV. Now I need use double-click action. After double click on e.g material I run mm03 with proper parameters (from presented list).
    Could you give me advice how to do this (I know that using cl_gui_alv_grid it would be easier)
    Thanks in advance

    Hi,
    Please find the code below which uses the 
    FM: REUSE_ALV_GRID_DISPLAY for double click.
    *& Report  YH1058_ALVDEMO1
    REPORT  YH1058_ALVDEMO1.
    *type pools for alv declarations
    TYPE-POOLS: slis.
    *structure declaration for tstc table
    TYPES : BEGIN OF ty_tstc,
            tcode TYPE tcode,
            pgmna TYPE program_id,
            dypno TYPE dynpronr,
            END OF ty_tstc.
    Internal table and workarea declarations for tstc
    DATA: it_tstc TYPE STANDARD TABLE OF ty_tstc,
          wa_tstc TYPE ty_tstc.
    *data declarations for ALV
    DATA: it_layout TYPE slis_layout_alv,
          wa_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          it_eventexit TYPE slis_t_event_exit,
          wa_eventexit TYPE slis_event_exit.
    *initialisation event
    INITIALIZATION.
    *start of selection event
    START-OF-SELECTION.
    *subroutine to fetch data from the db table
      PERFORM fetch_data.
    *subroutine for output display
      PERFORM alv_output.
    *&      Form  fetch_data
          *subroutine to fetch data from the db table
    FORM fetch_data.
    *Internal table and work area declaratin for TSTC (local tables)
      DATA : lt_tstc TYPE STANDARD TABLE OF ty_tstc,
             ls_tstc TYPE ty_tstc.
    *Static field definition
    *Reads the last tcode and stores it in l_tstc that on refresh further data
    *beyond this value is fetched
      STATICS l_tstc TYPE tcode.
    Selection from the tstc table
    *we select till 25 rows and on further refresh next 25 are selected
    *we select transactions having screen numbers only
      SELECT tcode
             pgmna
             dypno
             FROM tstc
             INTO CORRESPONDING FIELDS OF TABLE lt_tstc
             UP TO 25 ROWS
             WHERE tcode GT l_tstc
             AND dypno NE '0000'.
    Code for transferring the values of local table to output table
    for 25 rows as sy-tfill is 25.
    *In case there are no records a message pops up.
      IF sy-subrc EQ 0.
        DESCRIBE TABLE it_tstc.
        READ TABLE lt_tstc INTO ls_tstc INDEX sy-tfill.
        l_tstc = ls_tstc-tcode.
        it_tstc[] = lt_tstc[].
      ELSE.
        MESSAGE 'No Records found ' TYPE 'i'.
      ENDIF.
    ENDFORM.                    "read_data
    *&      Form  alv_output
          text
    FORM alv_output.
    *subroutine to refresh alv
      PERFORM event_exits.
    *field catalogue
      PERFORM build_fieldcat.
    *Layout for alv
      PERFORM build_layout.
    *output display
      PERFORM alv_display.
    ENDFORM.                    "alv_output
    *&      Form  event_exits
          text
    *subroutine to refresh alv
    FORM event_exits.
      CLEAR wa_eventexit.
      wa_eventexit-ucomm = '&REFRESH'.    " Refresh
      wa_eventexit-after = 'X'.
      APPEND wa_eventexit TO it_eventexit.
    ENDFORM.                     "event_exits
    *&      Form  build_fieldcat
          text
    *Field catalogue
    FORM build_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '1'.
      wa_fieldcat-fieldname = 'TCODE'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'TRANSACTION'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '2'.
      wa_fieldcat-fieldname = 'PGMNA'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'PROGRAM'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '3'.
      wa_fieldcat-fieldname = 'DYPNO'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'SCREEN'.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.                     "build_fieldcat
    *&      Form  build_layout
          text
    *Layout
    FORM build_layout.
      it_layout-zebra = 'X'.
      it_layout-colwidth_optimize = 'X'.
    ENDFORM.                     "build_layout
    *&      Form  alv_display
          text
    *ALV output
    FORM alv_display.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'PFSTATUS'
          it_fieldcat              = it_fieldcat
          is_layout                = it_layout
          it_event_exit            = it_eventexit
          i_screen_start_column    = 10
          i_screen_start_line      = 20
          i_screen_end_column      = 70
          i_screen_end_line        = 45
          i_grid_title             = 'Call Tcode Refresh ALV'
        TABLES
          t_outtab                 = it_tstc.
    ENDFORM.                    "alv_display
    *&      Form  user_command
          text
    *User actions on ALV
    FORM user_command USING r_ucomm TYPE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    *User clicks a transaction code and that tcode is called from ALV
        WHEN '&IC1'.
          READ TABLE it_tstc INDEX rs_selfield-tabindex INTO wa_tstc.
          IF sy-subrc = 0.
            CALL TRANSACTION wa_tstc-tcode.
          ENDIF.
    *user clicks the refresh button and the next 25 records are displayed
        WHEN '&REFRESH'.
          PERFORM fetch_data.
          rs_selfield-refresh    = 'X'.
          rs_selfield-col_stable = 'X' .
          rs_selfield-row_stable = 'X' .
      ENDCASE.
    ENDFORM.                    "user_command
          FORM PFSTATUS                                            *
    *Form for settings the pf status to the alv
    FORM pfstatus USING ut_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'.
    ENDFORM.                               " PF_STATUS_SET
    Warm Regards
    R Adarsh

  • Filter is not working in ALV GRID output using FM 'REUSE_ALV_GRID_DISPLAY'

    Hello Experts,
    I have searched SCN before posting this thread.
    In my report output (by using 'REUSE_ALV_GRID_DISPLAY'), i am trying to filter values which is of type CHAR.
    Unable to filter by char30 field in the report output.
    Tried to filter using the following steps:
    Selected the column which i want to filter-> then selected filter symbol of ALV toolbar.
    Selection screen appeared where select-option of that field displayed.
    Selection screen only allows user to enter 1 character.
    Even though the field contains 30 characters the filed in selection screen appeared with 1char length.
    This is the same for all the fields in that ALV. Please suggest how can i change the field length to original field length.

    In field catalog pass:
    wa_alv_fieldcat-outputlen   = p_len
    Set p_len as 30.
    'FIELD'            text-001   '01' 'X'  '30'  'L'

  • Output is not displaying using FM:REUSE_ALV_GRID_DISPLAY

    Hi,
    We have copied the standard transaction code(ME2L) to custom tcode(ZMM_ME2L).the custom tcode is working good in development system but not displaying data in the output screen eventhough the output internal table conatins data and fieldcatalog as well.
    Could you please let me know why the function module:REUSE_ALV_GRID_DISPLAY is not displaying any output.
    Regards
    RPN

    Hi,
    I have passed all import and export parameters to FM.pls see the below function module which i have used in my program.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program                = 'ZMM_RM06EL00'
          i_callback_pf_status_set          = 'SET_PF_STATUS'
          i_callback_user_command           = 'USER_COMMAND'
        i_callback_top_of_page            = 'TOP_OF_PAGE'
          is_layout                         = gs_layout
          it_fieldcat                       = gt_field_cat
          i_default                         = 'X'
          i_save                            = 'A'
          it_events                         = gt_events
          IT_EVENT_EXIT
        IMPORTING
          es_exit_caused_by_user            = ls_exit_by_user
        TABLES
          t_outtab                          = gt_rpt
        EXCEPTIONS
          program_error                     = 1
          OTHERS                            = 2.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards,
    RPN

  • Using FM -- Reuse_alv_grid_display in module pool programming

    Hi expert,
    am using reuse_alv_grid_display FM in module pool programming.
    i want decalre field catalog and layout kindly provide me the declaration.
    i have use
    data : gs_layout type lvc_s_layo
            gt_fieldcat type lvc_t_fcat
             gs_fieldcat type lvc_s_fcat
    buts giving me error in Extended program check.
    kidly help

    In the top include, specify
    TYPE-POOLS: slis.

  • Dump :GETWA_NOT_ASSIGNED, while using  fm REUSE_ALV_GRID_DISPLAY

    Hi Experts,
    In the report I am using LDB pnp and outputting results with ALV,
    I am using the FM REUSE_ALV_GRID_DISPLAY,
    And I am getting the dump GETWA_NOT_ASSIGNED.
    The dump I am getting when the FM is executed.
    Thanks in Advance.
    Regards,
    IFF

    Hi,
    i faced the same problem some days ago.
    jst cleck your fieldcat.
    check fields names passed to fieldcat and should be in '  ' and in capital.
    This shd solve your problem
    Thanks & regards

  • GETWA_NOT_ASSIGNED  error occured when using FM  REUSE_ALV_GRID_DISPLAY

    Hi All,
    I am using the Fm REUSE_ALV_GRID_DISPLAY to display output in the ALV grid.
    I am getting the following error
    "Field symbol has not yet been assigned."
    Error analysis                                                                  
        You attempted to access an unassigned field symbol                          
        (data segment 32820).                                                                               
    This error may occur for any of the following reasons:                      
        - You address a typed field symbol before it is set using ASSIGN            
        - You address a field symbol that points to a line in an internal table     
          that has been deleted                                                     
        - You address a field symbol that had previously been reset using           
          UNASSIGN, or that pointed to a local field that no longer exists          
        - You address a global function interface parameter, even                   
          though the relevant function module is not active,                        
          that is it is not in the list of active calls. You can get the list       
          of active calls from the this short dump.                                                                               
    I used the Fm as :
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
         I_BYPASSING_BUFFER                = 'X'
         I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = sy-repid
        I_CALLBACK_PF_STATUS_SET          = ' '
         I_CALLBACK_USER_COMMAND           = '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                         = t_layout
         IT_FIELDCAT                       = ls_slis_fieldcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
         I_DEFAULT                         = 'X'
         I_SAVE                            = 'A'
        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                          = gt_output
       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.
    Any help on this would be appreciated,
    Thanks in advance.
    Sharat.

    This is the error i get when i try to read the input data entered on the ALV grid. The code shown is from the class cl_gui_alv_grid.
    183           translate ls_cells_temp-value to upper case.   "#EC TRANSLANG
    184           assign ls_cells_temp-value to <l_currency>.
    185         else.
    186           assign ls_cells_temp-value to <l_currency>.
    187           clear <l_currency>.
    188         endif.
    189         if <l_currency> is initial.
    190           assign component ls_fieldcat-qfieldname
    191                            of structure <ls_wa> to <l_currency>.
    192         endif.
    193         if <l_currency> is initial.
    194           assign ls_fieldcat-QUANTITY to <l_currency>.
    195           if sy-subrc ne 0.
    196             assign space to <l_currency>.
    197           endif.
    198         endif.
    199       endif.
    200     else.
    201       if not ls_fieldcat-currency is initial.
    202         assign ls_fieldcat-currency to <l_currency>.
    203       elseif not ls_fieldcat-quantity is initial.
    204         assign ls_fieldcat-quantity to <l_currency>.
    205       else.
    206         assign space to <l_currency>.
    207       endif.
    208     endif.
    209
    210 *   If field has not DDIC referencen
    211     if ls_fieldcat-ref_table is initial.
    212 *--   Formal field check without DDIC reference
    >>>>       call method me->formal_field_check_no_ddic
    214         exporting
    215           i_currency    = <l_currency>
    216           i_value       = ls_cells-value
    217           i_row_id      = ls_cells-row_id
    218           i_tabix       = l_tabix
    219           is_fieldcat   = ls_fieldcat
    220         importing
    221           eflg_invalid  = eflg_invalid
    222         changing
    223           c_field       = <l_field>
    224           ct_good_cells = et_good_cells
    225           ct_mod_cells  = et_mod_cells.
    226     else.
    227 *--   Formal field check with DDIC reference
    228       call method me->formal_field_check_ddic
    229         exporting
    230           i_currency    = <l_currency>
    231           i_value       = ls_cells-value
    232           i_row_id      = ls_cells-row_id

  • Issue in using FM REUSE_ALV_GRID_DISPLAY & FM REUSE_ALV_FIELDCATALOG_MERGE.

    I have added a new filed in structure MERE_OUTTAB_MKVZ. Then I am calling FM REUSE_ALV_FIELDCATALOG_MERGE to display in ALV.  
    Also I have added the data in table lt_fieldcat[] of FM REUSE_ALV_GRID_DISPLAY (even in this new filed) . But when I am calling FM REUSE_ALV_GRID_DISPLAY, but this new field is not getting displayed on UI.
    Can you help me in solving this problem.
    Thanks in Advance
    Ziya

    Hi,
    Check whether you have created the field in the final internal table used in ALV Grid.  If yes, Check for the hidden columns in Default layout of report output.
    Regards
    Vinod

  • Can context menues be altered/enhanced when using FM REUSE_ALV_GRID_DISPLAY

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

  • Printing using FM REUSE_ALV_GRID_DISPLAY

    Hi experts,
    how to set the printing option using funtion module 'REUSE_ALV_GRID_DISPLAY'. i know we need to pass information to the structure ls_print.i am passing html_top_of_page,field catalog and sort table.
    1.  i don't want to print the grid information saying sort criteria and data statistics in one more page along with the data populated in the grid. i need to avoid printing page of grid information saying sort criteria and data statistics. how can i do this?.
    2. how to add the contents of the html_top_of_page in the 'Title'  of the page while printing the ALV Grid.?
    regards,
    suresh

    Hi,
    Please check following threads -
    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
    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
    Hope this helps.
    ashish

  • Displaying internal table horizontally using FM REUSE_ALV_GRID_DISPLAY

    Hi everyone,
             I'm quite having difficulty deciphering on how I can display my internal table in ALV_GRID horizontally.  Example:
    my itab:
    lastname(15),
    firstname(20),
    minit(1).
    OUTPUT:
    LASTNAME             FIRSTNAME                MINIT
    Is this possible?  Can someone help me by giving me the correct codes?  Thanks in advance.  
    Anna Bechayda

    by default it is printing horizontally.
    i think you are declaring your itab like this but when you will fetch or append the data into itab it will be like this
    firstnam  lastname minit
    a             b            1
    b             c            2
    like this. just pass your itab to reuse alv fn module.  but one thing you have to build your fieldcatalog for that.
    regards
    shiba dutta

  • How to use a check box in ALV

    Hi All,
    I have a urgent requirement in my <b>ALV list</b>.
    Where in the output list i need to create a check box, which is followed by Sales order, quantity columns etc......
    Requirement:  1. tell me how to <b>create</b> a <b>check box</b>
    2.   i need to select the checkbox(Sales Order) and press  a push button which is above the list(push button) in the tool bar.
    I am able to see the output using  <b>reuse_alv_grid_display</b>.
    <b>But kindly let me know how to <b>link</b> the <b>check box</b> and the <b>push button</b> which is above the list for further processing.</b>
    Possibly a sample code will help a lot.
    Thanks in advance.
    Rajesh Kumar.

    TO create a check box, take one field in your internal table as:
    CHK TYPE C.
    Now, pass the LAYOUT by filling up the LAYOUT strucutre.
    LAYOUT-BOX_FIELDNAME = 'CHK' .
    This will provide you the BOX field in the GRID and Checkbox in the LIST.
    When you select the  checkbox the field value will set to 'X' in the table.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • URGENT!! Default Vendor Payment Methods

    Hello SAP Folks, Question: Is there a way to default a vendor payment method when the payment method is not defined while creating the invoice?  Let's say in the vendor master there are 3 payment methods .. Wire, ACH payments and Checks ... there is

  • Adobe Interactive forms in web dynpro java and BPM

    Dear all, I am able to design forms in adobe life cycle and consumed it in BPM but i am unable to send pdf  to the potential owner of that task . i just want to know about server side configuration which we need to do for sending mails . although i t

  • B2B Correlation using replyToMessageID

    Hi, I am trying to build a correlation using ebXML headers i.e. conversionID and RefToMessageID. I followed this blog and I managed to get some parts to work but am failing when trying to add a ReftoMessageID based on the format of the replyToMessage

  • Where is the output of "Reports trace" written to?

    Hi All, When I submit a concurrent request there is a button labeled [Debug Options]. Pressing that button opens a window that lists four different options, one of which is "Reports Trace". Does anyone know where the output of a "Reports Trace" is st

  • DPS 6 remote user mapping question

    I have a directory where each user is defined in 2 different subtrees, with a DIT like the one below. In each subtree, a user has the same RDN. I know it's a bad design but I've no choice ... The user entries in the 1st subtree have a certificate and