How to edit line (In ALV )

Hi all.
this is  alv data display ,
how cai I edit one of line , in alv .
Regards.

Hi Ly,
Check out the sample code for the Editable ALV.
REPORT  ZDEMO_ALVGRID_EDIT                 .
TABLES:     ekko.
TYPE-POOLS: slis.                                 "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  statu TYPE ekpo-statu,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
  menge TYPE ekpo-menge,
  meins TYPE ekpo-meins,
  netpr TYPE ekpo-netpr,
  peinh TYPE ekpo-peinh,
  field_style  TYPE lvc_t_styl, "FOR DISABLE
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
      wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: it_fieldcat TYPE lvc_t_fcat,     "slis_t_fieldcat_alv WITH HEADER LINE,
      wa_fieldcat TYPE lvc_s_fcat,
      gd_tab_group TYPE slis_t_sp_group_alv,
      gd_layout    TYPE lvc_s_layo,     "slis_layout_alv,
      gd_repid     LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
  PERFORM data_retrieval.
  PERFORM set_specific_field_attributes.
  PERFORM build_fieldcatalog.
  PERFORM build_layout.
  PERFORM display_alv_report.
*&      Form  BUILD_FIELDCATALOG
*       Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
  wa_fieldcat-fieldname   = 'EBELN'.
  wa_fieldcat-scrtext_m   = 'Purchase Order'.
  wa_fieldcat-col_pos     = 0.
  wa_fieldcat-outputlen   = 10.
  wa_fieldcat-emphasize   = 'X'.
  wa_fieldcat-key         = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'EBELP'.
  wa_fieldcat-scrtext_m   = 'PO Item'.
  wa_fieldcat-col_pos     = 1.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'STATU'.
  wa_fieldcat-scrtext_m   = 'Status'.
  wa_fieldcat-col_pos     = 2.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'AEDAT'.
  wa_fieldcat-scrtext_m   = 'Item change date'.
  wa_fieldcat-col_pos     = 3.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MATNR'.
  wa_fieldcat-scrtext_m   = 'Material Number'.
  wa_fieldcat-col_pos     = 4.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MENGE'.
  wa_fieldcat-scrtext_m   = 'PO quantity'.
  wa_fieldcat-col_pos     = 5.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MEINS'.
  wa_fieldcat-scrtext_m   = 'Order Unit'.
  wa_fieldcat-col_pos     = 6.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'NETPR'.
  wa_fieldcat-scrtext_m   = 'Net Price'.
  wa_fieldcat-edit        = 'X'. "sets whole column to be editable
  wa_fieldcat-col_pos     = 7.
  wa_fieldcat-outputlen   = 15.
  wa_fieldcat-datatype     = 'CURR'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'PEINH'.
  wa_fieldcat-scrtext_m   = 'Price Unit'.
  wa_fieldcat-col_pos     = 8.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
ENDFORM.                    " BUILD_FIELDCATALOG
*&      Form  BUILD_LAYOUT
*       Build layout for ALV grid report
FORM build_layout.
* Set layout field for field attributes(i.e. input/output)
  gd_layout-stylefname = 'FIELD_STYLE'.
  gd_layout-zebra             = 'X'.
ENDFORM.                    " BUILD_LAYOUT
*&      Form  DISPLAY_ALV_REPORT
*       Display report using ALV grid
FORM display_alv_report.
  gd_repid = sy-repid.
*  call function 'REUSE_ALV_GRID_DISPLAY'
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
            i_callback_program      = gd_repid
*            i_callback_user_command = 'USER_COMMAND'
            is_layout_lvc               = gd_layout
            it_fieldcat_lvc             = it_fieldcat
            i_save                  = 'X'
       TABLES
            t_outtab                = it_ekko
       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_ALV_REPORT
*&      Form  DATA_RETRIEVAL
*       Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
  SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
   UP TO 10 ROWS
    FROM ekpo
    INTO  CORRESPONDING FIELDS OF TABLE it_ekko.
ENDFORM.                    " DATA_RETRIEVAL
*&      Form  set_specific_field_attributes
*       populate FIELD_STYLE table with specific field attributes
form set_specific_field_attributes .
  DATA ls_stylerow TYPE lvc_s_styl .
  DATA lt_styletab TYPE lvc_t_styl .
* Populate style variable (FIELD_STYLE) with style properties
* The NETPR field/column has been set to editable in the fieldcatalog...
* The following code sets it to be disabled(display only) if 'NETPR'
* is gt than 10.
  LOOP AT it_ekko INTO wa_ekko.
    IF wa_ekko-netpr GT 10.
      ls_stylerow-fieldname = 'NETPR' .
      ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
                                             "set field to disabled
      APPEND ls_stylerow  TO wa_ekko-field_style.
      MODIFY it_ekko FROM wa_ekko.
    ENDIF.
  ENDLOOP.
endform.                    " set_specific_field_attributes
v
Thanks,
Chidanand

Similar Messages

  • How to edit row in alv

    sir,
      explain me how to edit row in alv report in particular column.

    put in the fieldcatalog;;
    wa_fieldcat-edit = 'X'.
    wa_fieldcat-fieldname = 'NETPR'.
    wa_fieldcat-scrtext_m = 'Net Price'.
    wa_fieldcat-edit = 'X'. "sets whole column to be editable
    wa_fieldcat-col_pos = 7.
    wa_fieldcat-outputlen = 15.
    wa_fieldcat-datatype = 'CURR'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.

  • How to edit line data in AL11 file

    Hi Friends,
    I am facing some problem for below requirement,
    we are uploading data into AL11 files into BW-ODS, but sometimes whiles loading they are facing with error data, now we are trying to edit the particular line, i am able to edit and am able to transferring into same file, but stil old line be there only,
    here how can we delete one line in AL11?
    we have one solution for this we can edit data in PSA first and later upload into target....but in PSA data is complete trucationg...
    That's why we are searching this type of solution..
    Please help me on this...
    I will appreciate your help...
    Regards,
    Sri

    Finally we got 1 solution, please find solution below:
    when we displaying output on screen we used write:/ ltext input on,,
    by with output will display in edit mode, after we change this data, we need to press save button( this save button will be created with PF STATUS), by at user command option, i used below lines if code to save what we edited on output screen.
      line_num = 1.  do a times.,   clear ltext2., READ LINE line_num FIELD VALUE ltext2., if sy-subrc eq 0.  condense ltext2.  concatenate  ltext1 ltext2 into ltext1.  line_num = line_num + 1.  clear ltext2. else.   exit.  endif. enddo.
    here why used 'a', usually in AL11 data line has more than 1000 chars, it is diffcult to display in reading manner on output screen,
    thats wht i splitted line data into some line, each line with 125 chars,
    suppose i have line with 400 chars, i splitted line into 4 lines, so we need to move DO with 4 times...
    after concatecated 4 lines into sinlge line again i transferred into AL11.
    ...This is the solution what we got,
    please share if other solutuon is there..
    And Thank you all of you who shared your thoughts ...
    Sri.
    Edited by: Sri on Nov 5, 2009 2:18 PM

  • How to edit the existing ALV grid output variants

    Hi experts,
    The requirement states that I need to rearrange the existing output layout of the ALV & add a few fields in it. Currently, the output layout is stored as a variant. The program uses the FM LT_DBDATA_READ_FROM_LTDX, to load the fields associated with the variant.
    Please explain how can i modify the existing variant? If not, then how to create a new variant?
    Thanks in advance!

    You may use one of those FM
    - REUSE_ALV_VARIANT_SELECT and REUSE_ALV_VARIANT_SAVE
    - LVC_VARIANT_SELECT and  LVC_VARIANT_SAVE
    Regards,
    Raymond

  • How to highlight lines of ALV of the most current delimited records?

    Hi all,
    I used the ALV to display annual salary records of certain employees. Now the ALV will show the past annual salary as well as the most current records. I need to highlight all the current records. Anyone have any idea on this? Thanks

    You need to add a field into your output table for the color
    example
    data: begin of tb_out occurs 0,
    line_color(4) type c,
    end of tb_out.
    Then, in your build layout form
    gd_layout-info_fieldname =      'LINE_COLOR'.
    When you build your output table, you fill the field LINE_COLOR with the color you want to use (you can choose a standard color for everything, like C100, and a different color for the row you want to highlight, like C300).

  • How to Edit the CheckBox in Classic ALV GRID Display

    Hi,
    I want to Edit the checkbox in Grid Display.
    I have one checkbox field in my internal Table,
    Code Of the Program,
    Data :
    Begin of itab occurs 0,
    CHK type C,
    MATNR like MARA-MATNR,
    end of itab.
    Iam building the fieldcatelog using Merge Funcion module.
    After that I am chaning the properties of the field
    catelog like below,
    loop at I_FCAT assigning <FCAT>.
    Case <FCAT>-Fieldname
    When 'CHK'.
    <FCAT>-Checkbox = 'X'.
    <FCAT>-INPUT = 'X'.
    I dont have edit option in fieldcatelog.
    modify I_FCAT from <FCAT>.
    endcase.
    endloop.
    In the Layout,
    I_LAYOUT-box_fieldname = 'CHK'.
    I_LAYOUT-box_tabname = 'ITAB'.
    It is displaying the Checkbox field.but I couldnt edit the checkBox.
    I can able to edit in REUSE_ALV_LIST_DISPLAY.
    But I  have to use REUSE_ALV_GRID_DISPLAY.How to edit the checkbox.
    Thanks in Advance,
    Sumithra

    Hi vasu,
    The below procedure explains you to create a checkbox cloumn in the grid and allows you to edit i hope this will helps u.
    The ALV Grid Control displays the cells of a column as checkboxes if the column is marked as a checkbox column in the field catalog.
    •     Add another field to the output table in which you want to display checkboxes
    OR
    •     Define an existing field as a checkbox.
    Procedure
    1.     Add a field to your output table:
    Data: gt_fieldcat type lvc_t_fcat.
    Types: begin of gs_outtab.
    Types: checkbox type c. "field for checkbox
    Include structure <ABAP Dictionary structure> .
    Types: end of gs_outtab.
    Data: gt_outtab type gs_outtab occurs 0 with header line.
    2 * Add an entry for the checkbox to the field catalog
    clear ls_fcat.
    ls_fcat-fieldname = 'CHECKBOX'.
    * Essential: declare field as checkbox and
    * mark it as editable field:
    ls_fcat-checkbox = 'X'.
    ls_fcat-edit = 'X'.
    * do not forget to provide texts for this extra field
    ls_fcat-coltext = text-f01.
    ls_fcat-tooltip = text-f02.
    ls_fcat-seltext = text-f03.
    append ls_fcat to gt_fieldcat.
    regards,
    venu.

  • How to Edit ALV

    Hi all,
    I have created an ALV Grid display using container.
    My question is : How to edit an AlV.
    Initially some of column are in Display Mode, That i had set as non editable.
    But i want that when i create new/insert new record using the Insert button of alv , the only new column should apper as editable (all columns) as it is new record. So i can insert it into batabase.
    Any one an help me with this .
    Thanks
    Amar

    Hi Amar,
    I have added one Sample program pls check it and Let me know
    INCLUDE .
    TABLES: lfa1, lfb1, ekko, ekpo.
    TYPE-POOLS: slis.
    DATA: ok_code LIKE sy-ucomm,
          g_container TYPE scrfname VALUE 'CONTAINER',
          grid1  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA: repname LIKE sy-repid.
    DATA: t_disvariant TYPE TABLE OF disvariant WITH HEADER LINE.
    DATA: t_fieldtab TYPE lvc_t_fcat.
    DATA: t_layout TYPE lvc_s_layo.
    DATA: gs_toolbar  TYPE stb_button.
    DATA: t_rows TYPE lvc_t_row WITH HEADER LINE.
          TABLA DE DATOS
    DATA: BEGIN OF ti_acred OCCURS 0,
               bukrs LIKE lfb1-bukrs,
               lifnr LIKE lfa1-lifnr,
               land1 LIKE lfa1-land1,
               name1 LIKE lfa1-name1,
               ort01 LIKE lfa1-ort01,
               pstlz LIKE lfa1-pstlz,
               regio LIKE lfa1-regio,
               sortl LIKE lfa1-sortl,
               stras LIKE lfa1-stras,
               adrnr LIKE lfa1-adrnr,
       END OF ti_acred.
    DATA i_salida LIKE ti_acred OCCURS 0.
    DATA: d_bukrs LIKE t001-bukrs.
    DATA  container.
    DATA save VALUE 'X'.
                  Pantalla de Selección                 -
    SELECTION-SCREEN BEGIN OF BLOCK bloq1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : lifnr FOR lfa1-lifnr,
                     bukrs FOR lfb1-bukrs.
    SELECTION-SCREEN END OF BLOCK bloq1.
    SELECTION-SCREEN BEGIN OF BLOCK bloq3 WITH FRAME TITLE text-003.
    PARAMETERS: p_alvasg TYPE slis_vari.  " Disposición ALV
    SELECTION-SCREEN END   OF BLOCK bloq3.
    LOCAL CLASSES: Definition
    *===============================================================
    class lcl_event_receiver: local class to
                            define and handle own functions.
    Definition:
    ~~~~~~~~~~~
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
        handle_menu_button
            FOR EVENT menu_button OF cl_gui_alv_grid
                IMPORTING e_object e_ucomm,
        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm.
      PRIVATE SECTION.
    ENDCLASS.
    lcl_event_receiver (Definition)
    *===============================================================
    LOCAL CLASSES: Implementation
    *===============================================================
    class lcl_event_receiver (Implementation)
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_toolbar.
    § 2.At event TOOLBAR define a toolbar element of type 1 by using
        event paramenter E_OBJECT. Remember its function code.
    Part I: Define a menu button including a function code that
            is evaluated in 'handle_MENU_BUTTON
    append a menu with default button (Type 1)
    The function code of the default button is the same as
    the one for the menu.
    If the user klicks on the default button ALV raises
    directly event BEFORE_USER_COMMAND
    (then USER_COMMAND, AFTER_USER_COMMAND).
    If the user klicks on the menu button ALV raises event MENU_BUTTON.
        CLEAR gs_toolbar.
        MOVE 'MODIFY' TO gs_toolbar-function.
    --&gt; This function code is evaluated in 'handle_menu_button'
        MOVE icon_change TO gs_toolbar-icon.
        MOVE 'Modificar' TO gs_toolbar-quickinfo.
        MOVE 0 TO gs_toolbar-butn_type.
        MOVE space TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object-&gt;mt_toolbar.
      ENDMETHOD.
      METHOD handle_menu_button.
    § 3.At event MENU_BUTTON query your function code and define a
        menu in the same way as a context menu.
    Part II: Evaluate 'e_ucomm' to see which menu button of the toolbar
             has been clicked on.
             Define then the corresponding menu.
             The menu contains function codes that are evaluated
             in 'handle_user_command'.
    query e_ucomm to find out which menu button has been clicked on
        IF e_ucomm = 'MODIFY'.
          CALL METHOD e_object-&gt;add_function
                      EXPORTING fcode   = 'MODIFY'
                                text    = 'Modificar'. "modificar
    § 3a.) choose a default function and define the same function code
            as used for the menu.
         CALL METHOD e_object-&gt;add_function
                     EXPORTING fcode   = 'DECISION'
                               text    = 'Decisión de empleo'. "Decisión
                                                               "de empleo
        ENDIF.
      ENDMETHOD.
      METHOD handle_user_command.
    § 4.At event USER_COMMAND query the function code of each function
        defined in step 3.
    Part III : Evaluate user command to invoke the corresponding
                      function.
        DATA: lt_rows TYPE lvc_t_row.
    get selected row
        CALL METHOD grid1-&gt;get_selected_rows
                 IMPORTING et_index_rows = lt_rows.
        CALL METHOD cl_gui_cfw=&gt;flush.
        IF sy-subrc NE 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
               EXPORTING
                    titel = repname
                    txt2  = sy-subrc
                    txt1  = 'Error in Flush'(500).
        ENDIF.
    go to other table
        CASE e_ucomm.
         WHEN 'DECISION'.
           REFRESH T_ROWS.
           PERFORM SELECCION_LINEAS_DECISION TABLES lt_rows.
          WHEN 'MODIFY'.
            REFRESH t_rows.
           PERFORM SELECCION_LINEAS_modify TABLES lt_rows.
           CALL SCREEN 200.
        ENDCASE.
      ENDMETHOD.                           "handle_user_command
    ENDCLASS.
    lcl_event_receiver (Implementation)
    *===================================================================
                   INITIALIZATION                      -
    INITIALIZATION.
      repname = sy-repid.
      PERFORM initialize_fieldcat.
      PERFORM initializa_layout.
       AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_alv     -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_alvasg.
      PERFORM alvl_value_request USING p_alvasg '  '.
                 START-OF-SELECTION                     -
    START-OF-SELECTION.
      PERFORM obtener_datos.
                 END-OF-SELECTION                        -
    END-OF-SELECTION.
      CALL SCREEN 9010.
                   Subrutinas                            -
         Form  obtener_datos
    FORM obtener_datos.
      REFRESH ti_acred.
      CLEAR ti_acred.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ti_acred
               FROM lfa1
               WHERE lifnr IN lifnr.
      LOOP AT ti_acred.
        SELECT SINGLE bukrs INTO ti_acred-bukrs FROM lfb1
               WHERE lifnr = ti_acred-lifnr.
        MODIFY ti_acred.
      ENDLOOP.
      i_salida[] = ti_acred[].
    ENDFORM.
          MODULE PBO OUTPUT                                             *
    MODULE status_9010 OUTPUT.
      DATA it_toolbar_excluding TYPE ui_func.
      SET PF-STATUS 'EMPRESA'.
    CLEAR g_custom_container.
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container
               EXPORTING container_name = g_container.
        CREATE OBJECT grid1
               EXPORTING i_parent = g_custom_container.
        CALL METHOD grid1-&gt;set_table_for_first_display
             EXPORTING i_structure_name = 'I_SALIDA'
                       is_variant       = t_disvariant
                       i_save           = save
                      I_DEFAULT        = ' '
                       is_layout        = t_layout
             CHANGING  it_outtab        = i_salida
                       it_fieldcatalog  = t_fieldtab.
        SET HANDLER lcl_event_receiver=&gt;handle_user_command
                    lcl_event_receiver=&gt;handle_menu_button
                    lcl_event_receiver=&gt;handle_toolbar FOR ALL INSTANCES.
        CALL METHOD grid1-&gt;set_toolbar_interactive.
      ELSE.
        CALL METHOD grid1-&gt;refresh_table_display.
      ENDIF.
    ENDMODULE.
         Module  EXIT  INPUT
    MODULE exit INPUT.
    REFRESH i_salida.
    CLEAR i_salida.
      SET SCREEN 0.
      LEAVE SCREEN.
    ENDMODULE.                 " EXIT  INPUT
         Form  initialize_fieldcat
    FORM initialize_fieldcat.
      DATA: l_fieldcat TYPE lvc_t_fcat WITH HEADER LINE.
      REFRESH t_fieldtab.
    Catálogo de Campos
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
      l_fieldcat-key        = 'X'.
      l_fieldcat-ref_field   = 'BUKRS'.
      l_fieldcat-ref_table   = 'LFB1'.
      l_fieldcat-fieldname  = 'BUKRS'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
      l_fieldcat-key        = 'X'.
      l_fieldcat-ref_field   = 'LIFNR'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'LIFNR'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'NAME1'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'NAME1'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'LAND1'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'LAND1'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'ORT01'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'ORT01'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'PSTLZ'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'PSTLZ'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'REGIO'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'REGIO'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'SORTL'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'SORTL'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
    l_fieldcat-edit       = 'X'.
      l_fieldcat-ref_field   = 'STRAS'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'STRAS'.
      APPEND l_fieldcat TO t_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname    = 'I_SALIDA'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = 'O'.
      l_fieldcat-key        = 'X'.
      l_fieldcat-ref_field   = 'ADRNR'.
      l_fieldcat-ref_table   = 'LFA1'.
      l_fieldcat-fieldname  = 'ADRNR'.
      APPEND l_fieldcat TO t_fieldtab.
    ENDFORM.                    " initialize_fieldcat
         Form  initializa_layout
    FORM initializa_layout.
      t_layout-zebra        = 'X'.
      t_layout-cwidth_opt   = 'X'.
    t_layout-no_toolbar   = 'X'.
    T_LAYOUT-EDIT         = 'X'.
      T_LAYOUT-DETAILINIT    = 'X'.
      T_LAYOUT-CWIDTH_OPT    = 'X'.
      T_LAYOUT-TOTALS_BEF    = 'X'.
      T_LAYOUT-NUMC_TOTAL    = 'X'.
    ENDFORM.                    " initializa_layout
         Module  USER_COMMAND_9010  INPUT
    MODULE user_command_9010 INPUT.
      CASE sy-ucomm.
        WHEN 'SAVE'.
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
             TITLEBAR                    = ' '
             DIAGNOSE_OBJECT             = ' '
              text_question               = 'Pulsaste SAVE'
             TEXT_BUTTON_1               = 'Ja'(001)
             ICON_BUTTON_1               = ' '
             TEXT_BUTTON_2               = 'Nein'(002)
             ICON_BUTTON_2               = ' '
             DEFAULT_BUTTON              = '1'
             DISPLAY_CANCEL_BUTTON       = 'X'
             USERDEFINED_F1_HELP         = ' '
             START_COLUMN                = 25
             START_ROW                   = 6
             POPUP_TYPE                  =
           IMPORTING
             ANSWER                      =
           TABLES
             PARAMETER                   =
           EXCEPTIONS
             TEXT_NOT_FOUND              = 1
             OTHERS                      = 2
          IF sy-subrc &lt;&gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9010  INPUT
         Form  alvl_value_request
    FORM alvl_value_request USING    pi_alv
                                     value(p_0158).
      DATA: l_disvariant TYPE disvariant.
    Wertehilfe
      l_disvariant-report  = sy-cprog.
    l_disvariant-report(1) = 'A'.
      l_disvariant-variant = pi_alv.
      l_disvariant-log_group = p_0158.
      CALL FUNCTION 'LVC_VARIANT_SAVE_LOAD'
           EXPORTING
                i_save_load = 'F'
                i_tabname   = '1'
           CHANGING
                cs_variant  = l_disvariant
           EXCEPTIONS
                OTHERS      = 1.
      IF sy-subrc = 0.
        pi_alv = l_disvariant-variant.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " ALVL_VALUE_REQUEST
    Kanagaraja L

  • How to Edit in ALV?

    Hi Experts,
    I am working on a BAPI for creating Requsition where i am taking one ref PR and then modifying required details and then creating a new PR.
    Everything is working fine but before creating the new PR i want to display that data in the form of alv grid and where i can edit the values and save then a new PR will be created as per modification on alv.
    check the sample code wht i hv done....
    SELECT * FROM EBAN INTO CORRESPONDING FIELDS OF TABLE IT_EBAN WHERE
    BANFN EQ S_BANFN.
    LOOP AT IT_EBAN.
    ENDLOOP.
    LOOP AT IT_EBAN.
    T_REQUISITION_ITEMS-DOC_TYPE = 'ZSD'.
    MOVE IT_EBAN-BNFPO TO T_REQUISITION_ITEMS-PREQ_ITEM.
    MOVE IT_EBAN-ERNAM TO T_REQUISITION_ITEMS-CREATED_BY.
    MOVE IT_EBAN-AFNAM TO T_REQUISITION_ITEMS-PREQ_NAME.
    MOVE IT_EBAN-BADAT TO T_REQUISITION_ITEMS-PREQ_DATE.
    MOVE IT_EBAN-TXZ01 TO T_REQUISITION_ITEMS-SHORT_TEXT.
    MOVE IT_EBAN-MATNR TO T_REQUISITION_ITEMS-MATERIAL.
    MOVE IT_EBAN-EMATN TO T_REQUISITION_ITEMS-PUR_MAT.
    T_REQUISITION_ITEMS-PLANT = '4000'.
    T_REQUISITION_ITEMS-STORE_LOC = 'YRD1'.
    T_REQUISITION_ITEMS-PUR_GROUP = 'JSD'.
    MOVE IT_EBAN-MATKL TO T_REQUISITION_ITEMS-MAT_GRP.
    MOVE IT_EBAN-MENGE TO T_REQUISITION_ITEMS-QUANTITY.
    MOVE IT_EBAN-MEINS TO T_REQUISITION_ITEMS-UNIT.
    T_REQUISITION_ITEMS-DELIV_DATE = '20080618'.
    APPEND T_REQUISITION_ITEMS.
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    EXPORTING
    SKIP_ITEMS_WITH_ERROR =
    IMPORTING
    NUMBER = E_NUMBER
    TABLES
    REQUISITION_ITEMS = T_REQUISITION_ITEMS
    *REQUISITION_ACCOUNT_ASSIGNMENT = T_REQ_ACCOUNT_ASSIGNMENT
    REQUISITION_ITEM_TEXT =
    REQUISITION_LIMITS =
    REQUISITION_CONTRACT_LIMITS =
    REQUISITION_SERVICES =
    REQUISITION_SRV_ACCASS_VALUES =
    RETURN = T_RETURN
    REQUISITION_SERVICES_TEXT =
    EXTENSIONIN =
    REQUISITION_ADDRDELIVERY =
    ENDLOOP.
    IF NOT E_NUMBER IS INITIAL .
    WRITE:/ 'REQ NO:' , E_NUMBER , 'CREATED'.
    ELSE.
    LOOP AT T_RETURN.
    WRITE T_RETURN-MESSAGE.
    ENDLOOP.
    ENDIF.
    what i want is before calling BAPI_REQUISITION_CREATE  i need to display it_eban as alv and then where i can edit the values and save and that values will move to T_REQUISITION_ITEMS table. no need of hard cording Plant and purch. grop and storage location details. I know how to display the ALV grid just tell me how to edit in ALV and when i cllick save it shold move to BAPI_REQUISITION_CREATE.
    its an urgent...
    <b>points will be rewarded for useful answers</b>
    Regards,
    sunil kairam.

    Check this editable alv report...
    REPORT zjay_edit_alv.
    * TYPE-POOLS *
    TYPE-POOLS: slis.
    * INTERNAL TABLES/WORK AREAS/VARIABLES
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
    i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
    w_field TYPE slis_fieldcat_alv,
    p_table LIKE dd02l-tabname,
    dy_table TYPE REF TO data,
    dy_tab TYPE REF TO data,
    dy_line TYPE REF TO data.
    * FIELD-SYMBOLS *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
    <dyn_wa> TYPE ANY,
    <dyn_field> TYPE ANY,
    <dyn_tab_temp> TYPE STANDARD TABLE.
    * SELECTION SCREEN *
    PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
    lines(5) TYPE n DEFAULT 7.
    * START-OF-SELECTION *
    START-OF-SELECTION.
    * Storing table name
    p_table = tabname.
    * Create internal table dynamically with the stucture of table name
    * entered in the selection screen
    CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_table->* TO <dyn_table>.
    IF sy-subrc <> 0.
    MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    * Create workarea for the table
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    * Create another temp. table
    CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_tab->* TO <dyn_tab_temp>.
    SORT i_fieldcat BY col_pos.
    * Select data from table
    SELECT * FROM (p_table)
    INTO TABLE <dyn_table>
    UP TO lines ROWS.
    REFRESH <dyn_tab_temp>.
    * Display report
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
    t_outtab = <dyn_table>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *& Form SET_PF_STATUS
    * Setting custom PF-Status
    * -->RT_EXTAB Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
    ENDFORM. "SET_PF_STATUS
    *& Form user_command
    * Handling custom function codes
    * -->R_UCOMM Function code value
    * -->RS_SELFIELD Info. of cursor position in ALV
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    * Local data declaration
    DATA: li_tab TYPE REF TO data,
    l_line TYPE REF TO data.
    * Local field-symbols
    FIELD-SYMBOLS:<l_tab> TYPE table,
    <l_wa> TYPE ANY.
    * Create table
    CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
    CREATE DATA l_line LIKE LINE OF <l_tab>.
    ASSIGN l_line->* TO <l_wa>.
    CASE r_ucomm.
    * When a record is selected
    WHEN '&IC1'.
    * Read the selected record
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
    rs_selfield-tabindex.
    IF sy-subrc = 0.
    * Store the record in an internal table
    APPEND <dyn_wa> TO <l_tab>.
    * Fetch the field catalog info
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = p_table
    CHANGING
    ct_fieldcat = i_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Make all the fields input enabled except key fields
    w_field-input = 'X'.
    MODIFY i_fieldcat FROM w_field TRANSPORTING input
    WHERE key IS INITIAL.
    ENDIF.
    * Display the record for editing purpose
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    it_fieldcat = i_fieldcat
    i_screen_start_column = 10
    i_screen_start_line = 15
    i_screen_end_column = 200
    i_screen_end_line = 20
    TABLES
    t_outtab = <l_tab>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    * Read the modified data
    READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
    * If the record is changed then track its index no.
    * and populate it in an internal table for future
    * action
    IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
    <dyn_wa> = <l_wa>.
    i_index = rs_selfield-tabindex.
    APPEND i_index.
    ENDIF.
    ENDIF.
    ENDIF.
    * When save button is pressed
    WHEN 'SAVE'.
    * Sort the index table
    SORT i_index.
    * Delete all duplicate records
    DELETE ADJACENT DUPLICATES FROM i_index.
    LOOP AT i_index.
    * Find out the changes in the internal table
    * and populate these changes in another internal table
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
    IF sy-subrc = 0.
    APPEND <dyn_wa> TO <dyn_tab_temp>.
    ENDIF.
    ENDLOOP.
    * Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    * Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    ENDIF.
    ENDCASE.
    rs_selfield-refresh = 'X'.
    ENDFORM. "user_command

  • How to insert horizontal lines in alv report?

    hi,
        i have to insert horizontal lines in alv report.( RM07MLBB )
            actually my requirement is:
                               basis list = RM07MLBB.
    first secondary list = another report is called here ( RM07DOCS )
                      i want to insert horizontal lines in the first secondary list, when i execute individually RM07DOCS , i can get horizontal lines, but when i dounle click in the basic list --> in the first secondary list , i am not getting the horizontal lnes.
    functional modules used are REUSE_ALV_HIERSEQ_LIST_DISPLAY & REUSE_ALV_GRID_DISPLAY.
        here in this program,
                        is_layout = alv_layout.
    hence i tried to give     
                  alv_layout-no_hline = ' '. 
    but not effecting.
              can some one please tell me , how to insert lines in the alv report.
    thanks in advance,
    Dastagir.

    hello,
         so i cannot insert horizontal lines in the first secondary list according to my sorting condition, i.e., in a single block there should be :
           if same delivery challan number is repeating they should come in the same block,
    for the corresponding delivery challen number, if have po number, is repeating , they also should come in the same block.
                       in this way i have to seperate the blocks containing EXNUM , EBELN CONDITIONED.

  • How do I move all clips from an event into the edit line...

    If I have an event of tons of clips that comprise an hour of footage, how can I select all of those clips at once from the event library and transfer them to the edit line above?
    There is no Select All feature, that I can see, and it takes forever to highlight each chunk of clips, one at a time, and drag them up.
    I'd like to drag the whole 1 hour's worth of clips in one event in my library up to the edit line at once.
    Thanks!

    Hi Rich,
    I am trying to somehow "select all" clips, (not just all shots within a clip), but all 100 or so slips from an entire tape, from the first clip, to the last clip, and everything in between, and move them all up to the edit pane at once.
    As it is now, I have to click on a thumbnail, select the entire clip, and move one clip at a time up to the edit pane.
    I want to move all the clips up at once.

  • ALV Graphs: How to set line type graph as default graph

    Hi All,
    I need to develop a line graph. The fields on the X-axis will change dynamically. Some times they may be 10 field and some times they may be more than 100 fields. I tried with Function Module GFW_PRES_SHOW_MULT. But I can only display maximum 32 fields. Can anyone tell me exact program which helps me to full fill my requirement. It will be a great help if you could told how do display line type graph as default graph in ALV.  In REUSE_ALV_GRID_DISPLAY there is a Exporting parameter MT_CHART_TYPES but this help you only to enter description for X-axis and Y-axis.
    Many thanks in advance.

    I would call GRAPH_MATRIX_2D with options depending on representation you wish
    look at the program GRBUSG_1 to see how to use it
    there you have some options to display bar chart, but you could use other values (complete list of options is available in documentation of function module GRAPH_MATRIX_2D - click on parameter OPTS in help display to see full explanation)
    exemple:
    P2TYPE = LN to display lines

  • Hi gurus in ALV how to edit the fields on out put list

    hi gurus in ALV how to edit the fields on out put list

    hi
    REPORT ZSB_ALV_EDITABLE_SAMPLE.
    TABLES: SFLIGHT.
    DATA: gc_container TYPE scrfname VALUE 'LIST_AREA',
    gc_custom_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    gc_grid TYPE REF TO CL_GUI_ALV_GRID,
    gs_layout TYPE LVC_S_LAYO,
    gt_fieldcat TYPE LVC_T_FCAT.
    DATA: ok_code TYPE SY-UCOMM.
    DATA: gt_outtab TYPE TABLE OF SFLIGHT.
    *DYNPRO
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS '100'.
    CREATE OBJECT gc_custom_container
    EXPORTING
    container_name = gc_container
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6.
    CREATE OBJECT gc_grid
    EXPORTING
    i_parent = gc_custom_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    OTHERS = 5 .
    PERFORM prepare_field_catalog CHANGING gt_fieldcat .
    PERFORM prepare_layout CHANGING gs_layout .
    PERFORM get_alv_display.
    ENDMODULE.
    *& Module USER_COMMAND_0100 INPUT
    MODULE USER_COMMAND_0100 INPUT.
    OK_CODE = SY-UCOMM.
    IF OK_CODE = 'BACK'.
    SET SCREEN 0.
    LEAVE SCREEN.
    CLEAR OK_CODE.
    ENDIF.
    ENDMODULE.
    FORM prepare_field_catalog CHANGING gt_fieldcat TYPE LVC_T_FCAT.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_BUFFER_ACTIVE =
    I_STRUCTURE_NAME = 'SFLIGHT'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_BYPASSING_BUFFER =
    I_INTERNAL_TABNAME =
    CHANGING
    ct_fieldcat = gt_fieldcat[].
    ENDFORM.
    FORM prepare_layout changing p_gs_layout TYPE lvc_s_layo.
    p_gs_layout-zebra = 'X'.
    p_gs_layout-edit = 'X'.
    ENDFORM. " prepare_layout
    FORM get_alv_display .
    SELECT * FROM sflight INTO TABLE gt_outtab UP TO 10 ROWS.
    CALL METHOD gc_grid->set_table_for_first_display
    EXPORTING
    I_STRUCTURE_NAME = 'SFLIGHT'
    IS_LAYOUT = gs_layout
    CHANGING
    it_outtab = gt_outtab
    IT_FIELDCATALOG = gt_fieldcat
    ENDFORM. " get_alv_display

  • How to edit email message suject line?

    I am wondering how to edit the incoming email's suject line with javamail api?
    and which api defines the subject line of an email?
    regards
    Gaz

    The simple answer is "you can't".
    Mail servers don't allow you to change messages.
    What you can do is make a copy of the message and change the copy.
    Of course, the copy won't be stored anywhere permanently so if you want
    to keep it you'll need to store it in a folder yourself.
    In your second question are you asking about the getSubject method?
    Since that's such an obvious answer to your question I'm sure you would've
    found that yourself so I'm assuming you're asking something else, but I don't
    understand what.

  • How to set the focus on the new added line in ALV list (OO)

    Dear Friends,
    I have an ALV list based on OO(using alv_grid->set_table_for_first_display), when I click the 'new' button to add a new line, the mouse arrow is always pointing to the first line - not the new created line for user to input!!.
    So how to set the focus (mouse arrow) on the new added line in ALV list for user to input it friendly?
    Thanks a lot!!

    Hello,
    To get the selected line row first we have get all the rows in the internal table.
    When u click on the button when it is creating the new line we have to pass the row number to the call method
    CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->get_selected_rows
       IMPORTING
          ET_INDEX_ROWS  =   <internal table of type LVC_T_ROW > (obsolete)
          ET_ROW_NO      =   <internal table of type LVC_T_ROID > .
    CALL METHOD<ref.var. to CL_GUI_ALV_GRID>->set_selected_rows
       EXPORTING
          IT_ROW_NO  =  <internal table of type LVC_T_ROID>
       or alternatively
       IT_INDEX_ROWS  =  <internal table of type LVC_T_ROW>
          IS_KEEP_OTHER_SELECTIONS  =  <type CHAR01>.
    http://help.sap.com/saphelp_erp2004/helpdata/EN/22/a3f5ecd2fe11d2b467006094192fe3/content.htm

  • How to Edit selected row in ALV

    Hi Experts,
                    I new to webdynpro ABAP. How to Edit the entire selected row in ALV. Please suggest?
    Thanks in advance.

    Hi,
    I guess you have created the node as dynamic and also set this to the ALV..
    1.  Have you created READ_ONLY attribute of type wdy_boolean inside the node to which the ALV is bound..If not create it first and set the default value for this readonly as abap_true...ie X.
    2.  Got the contents in the internal table.
    bind the table to the node..
    3.Instantiate the ALV.
    4. Now get teh column refrences of this ALV using the cl_salv_wd_config_table..and for columns
    use the cell editor type as cl_salv_wd_uie_input_field...
    loop through the column references and for all refrences create an object of type Input field and inside this class
    use the method set_read_only_field_name ( 'READ_ONLY' ).
    For the table settings if_salv_wd_table_settings of cl_salv_wd-config_table.. set the read only mode as abap_false..
    5 create the custom button in the ALV using the cl_salv_wd_fe_button..
    6 In this go for the events ON_FUCNTION and inside this method..do the coding
    7 .Initially the table will  be set to non editable..
    In the button handler....
    Get the refernece of this node to which the ALV is bound.....
    lr_node = wd_context->get_child_node( 'VBAK' ).  "dynamic node name
    lv_index  = lr_node->get_lead_selection_index ( ).
    loop at it_table into ls_table.
    if sy-tabix eq lv_index.
    ls_table-read_only = abap_false.  "editable
    else.
    ls_table-read_only = abap_true. "non editable
    endif.
    modify table
    endloop.
    lr_node->bind_table( lt_table ).
    If you have any doutbs just refer the previous thread posted on the same..
    You can follow the above steps to acheive thjs..
    Regards,
    Lekha.
    Edited by: Lekha on Dec 17, 2009 6:10 PM

Maybe you are looking for

  • India taxes

    Hello, I have created india tax procedure ZAXIN in  which created 5 different types ( VAT/CST/Service tax/Cess/S H Cess) of condition types & 3 act keys. Assignment is done in FTXP also but i don't see these condition types in SD pricing procedure ZX

  • I can't locate my catalog in Elements 8.0 to convert to 10.0

    I've watched the tutorial to convert my catalog but I don't have anything that remotely resembles the Organizer on my screen.  When I go to File, there is no catalog.  I upgraded to Elements 10.0 and also use Lightroom but chose to maintain Elements

  • Why can't I paste into an MSO state?

    I'm just trying to paste a box for a button into a state and I only have the choice of Delete state or Release state.

  • How can i take money out without a bank account

    How can i take money from my paypal balance and add it to my credit card ? my credit card is linked to my paypal and i do not have a bank account. some please help 

  • CS5 - remembering last pre-sets?

    I changed the last project's sizes and color to B&W and specific sizes. Now when I just started a new project - desktop- it opened the new color project in B&W and at distorted size. Any help would be appreciated. Michael