<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Delete from db table using alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531055#M849445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; I am trying to select row from alv and delete them from custom table zrrmm02. structure zrrmm02 and i_d_wa is same. But this below code is not working. pls suggest.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zrralvcontrol .

TABLES: zrrmm02.

TYPE-POOLS: slis.

DATA: BEGIN OF itab OCCURS 0,
      box(1)  TYPE c,
      matnr LIKE zrrmm02-matnr,
      werks LIKE zrrmm02-werks,
      ersda LIKE zrrmm02-ersda,
      timestamp LIKE zrrmm02-timestamp,
      oldval LIKE zrrmm02-oldval,
      newval LIKE zrrmm02-newval,
      msg LIKE zrrmm02-msg,
      END OF itab,

      BEGIN OF i_d_wa,
      matnr LIKE zrrmm02-matnr,
      werks LIKE zrrmm02-werks,
      ersda LIKE zrrmm02-ersda,
      timestamp LIKE zrrmm02-timestamp,
      oldval LIKE zrrmm02-oldval,
      newval LIKE zrrmm02-newval,
      msg LIKE zrrmm02-msg,
      END OF i_d_wa,

      g_t_fieldcat TYPE slis_t_fieldcat_alv,
       g_r_fieldcat LIKE LINE OF g_t_fieldcat.

START-OF-SELECTION.

  SELECT * FROM zrrmm02 INTO CORRESPONDING FIELDS OF TABLE itab.
  PERFORM display_data.

END-OF-SELECTION.

*---------------------------------------------------------------------*
*       FORM display_data                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM display_data.
  DATA: l_f_repid LIKE sy-repid,
         l_r_layout TYPE slis_layout_alv.

  l_f_repid = sy-repid.
  l_r_layout-zebra = 'X'.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            i_program_name         = l_f_repid
            i_internal_tabname     = 'ITAB'
            i_client_never_display = 'X'
            i_inclname             = l_f_repid
       CHANGING
            ct_fieldcat            = g_t_fieldcat.

  LOOP AT g_t_fieldcat INTO g_r_fieldcat.
    CASE g_r_fieldcat-fieldname.
      WHEN 'BOX'.
        g_r_fieldcat-checkbox = 'X'.
        g_r_fieldcat-col_pos = 0.
        g_r_fieldcat-seltext_m = 'Check'.
        g_r_fieldcat-seltext_l = 'Check'.
        g_r_fieldcat-edit = 'X'.
      WHEN 'WERKS'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'WERKS'.
      WHEN 'ERSDA'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'DATE'.
      WHEN 'TIMESTAMP'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'TIME'.
        g_r_fieldcat-edit = 'X'.
      WHEN 'NEWVAL'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'New Value'.
      WHEN 'OLDVAL'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'Old Value'.
      WHEN 'MSG'.
        g_r_fieldcat-seltext_l =
          g_r_fieldcat-seltext_m =
          g_r_fieldcat-seltext_s =
          g_r_fieldcat-reptext_ddic = 'Message'.

    ENDCASE.
    MODIFY g_t_fieldcat FROM g_r_fieldcat.
    CLEAR g_r_fieldcat.

  ENDLOOP.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program       = l_f_repid
            is_layout                = l_r_layout
            i_callback_pf_status_set = 'SET_PF_STATUS'
            i_callback_user_command  = 'USER_COMMAND'
            i_save                   = 'X'
            it_fieldcat              = g_t_fieldcat
       TABLES
            t_outtab                 = itab[]
       EXCEPTIONS
            program_error            = 1
            OTHERS                   = 2.

ENDFORM.

*---------------------------------------------------------------------*
*       FORM set_pf_status                                            *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM set_pf_status USING extab TYPE slis_t_extab.
  SET PF-STATUS 'SET_PF_STATUS'.
ENDFORM.

*---------------------------------------------------------------------*
*       FORM user_command                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  UCOMM                                                         *
*  --&amp;gt;  SEL_FIELD                                                     *
*---------------------------------------------------------------------*
FORM user_command USING ucomm LIKE sy-ucomm
               sel_field TYPE slis_selfield.
  CASE ucomm.
    WHEN 'SALL'.
      LOOP AT itab.
        itab-box = 'X'.
        MODIFY itab.
        CLEAR itab.
      ENDLOOP.
      sel_field-refresh = 'X'.
    WHEN 'DALL' .
      LOOP AT itab.
        itab-box = ' '.
        MODIFY itab.
        CLEAR itab.
      ENDLOOP.
      sel_field-refresh = 'X'.
    WHEN 'DELETE'.
      LOOP AT itab WHERE box = 'X'.
*        i_d_wa-matnr = itab-matnr.
*        i_d_wa-werks = itab-werks.
*        i_d_wa-ersda = itab-ersda.
*        i_d_wa-timestamp = itab-timestamp.
*        i_d_wa-oldval = itab-oldval.
*        i_d_wa-newval = itab-newval.
*        i_d_wa-msg = itab-msg.
        MOVE-corresponding itab to i_d_wa.
        DELETE  zrrmm02  FROM i_d_wa.
        CLEAR i_d_wa.
      ENDLOOP.
  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 07:16:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T07:16:16Z</dc:date>
    <item>
      <title>Delete from db table using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531055#M849445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; I am trying to select row from alv and delete them from custom table zrrmm02. structure zrrmm02 and i_d_wa is same. But this below code is not working. pls suggest.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zrralvcontrol .

TABLES: zrrmm02.

TYPE-POOLS: slis.

DATA: BEGIN OF itab OCCURS 0,
      box(1)  TYPE c,
      matnr LIKE zrrmm02-matnr,
      werks LIKE zrrmm02-werks,
      ersda LIKE zrrmm02-ersda,
      timestamp LIKE zrrmm02-timestamp,
      oldval LIKE zrrmm02-oldval,
      newval LIKE zrrmm02-newval,
      msg LIKE zrrmm02-msg,
      END OF itab,

      BEGIN OF i_d_wa,
      matnr LIKE zrrmm02-matnr,
      werks LIKE zrrmm02-werks,
      ersda LIKE zrrmm02-ersda,
      timestamp LIKE zrrmm02-timestamp,
      oldval LIKE zrrmm02-oldval,
      newval LIKE zrrmm02-newval,
      msg LIKE zrrmm02-msg,
      END OF i_d_wa,

      g_t_fieldcat TYPE slis_t_fieldcat_alv,
       g_r_fieldcat LIKE LINE OF g_t_fieldcat.

START-OF-SELECTION.

  SELECT * FROM zrrmm02 INTO CORRESPONDING FIELDS OF TABLE itab.
  PERFORM display_data.

END-OF-SELECTION.

*---------------------------------------------------------------------*
*       FORM display_data                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM display_data.
  DATA: l_f_repid LIKE sy-repid,
         l_r_layout TYPE slis_layout_alv.

  l_f_repid = sy-repid.
  l_r_layout-zebra = 'X'.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            i_program_name         = l_f_repid
            i_internal_tabname     = 'ITAB'
            i_client_never_display = 'X'
            i_inclname             = l_f_repid
       CHANGING
            ct_fieldcat            = g_t_fieldcat.

  LOOP AT g_t_fieldcat INTO g_r_fieldcat.
    CASE g_r_fieldcat-fieldname.
      WHEN 'BOX'.
        g_r_fieldcat-checkbox = 'X'.
        g_r_fieldcat-col_pos = 0.
        g_r_fieldcat-seltext_m = 'Check'.
        g_r_fieldcat-seltext_l = 'Check'.
        g_r_fieldcat-edit = 'X'.
      WHEN 'WERKS'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'WERKS'.
      WHEN 'ERSDA'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'DATE'.
      WHEN 'TIMESTAMP'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'TIME'.
        g_r_fieldcat-edit = 'X'.
      WHEN 'NEWVAL'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'New Value'.
      WHEN 'OLDVAL'.
        g_r_fieldcat-seltext_l =
        g_r_fieldcat-seltext_m =
        g_r_fieldcat-seltext_s =
        g_r_fieldcat-reptext_ddic = 'Old Value'.
      WHEN 'MSG'.
        g_r_fieldcat-seltext_l =
          g_r_fieldcat-seltext_m =
          g_r_fieldcat-seltext_s =
          g_r_fieldcat-reptext_ddic = 'Message'.

    ENDCASE.
    MODIFY g_t_fieldcat FROM g_r_fieldcat.
    CLEAR g_r_fieldcat.

  ENDLOOP.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program       = l_f_repid
            is_layout                = l_r_layout
            i_callback_pf_status_set = 'SET_PF_STATUS'
            i_callback_user_command  = 'USER_COMMAND'
            i_save                   = 'X'
            it_fieldcat              = g_t_fieldcat
       TABLES
            t_outtab                 = itab[]
       EXCEPTIONS
            program_error            = 1
            OTHERS                   = 2.

ENDFORM.

*---------------------------------------------------------------------*
*       FORM set_pf_status                                            *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM set_pf_status USING extab TYPE slis_t_extab.
  SET PF-STATUS 'SET_PF_STATUS'.
ENDFORM.

*---------------------------------------------------------------------*
*       FORM user_command                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  UCOMM                                                         *
*  --&amp;gt;  SEL_FIELD                                                     *
*---------------------------------------------------------------------*
FORM user_command USING ucomm LIKE sy-ucomm
               sel_field TYPE slis_selfield.
  CASE ucomm.
    WHEN 'SALL'.
      LOOP AT itab.
        itab-box = 'X'.
        MODIFY itab.
        CLEAR itab.
      ENDLOOP.
      sel_field-refresh = 'X'.
    WHEN 'DALL' .
      LOOP AT itab.
        itab-box = ' '.
        MODIFY itab.
        CLEAR itab.
      ENDLOOP.
      sel_field-refresh = 'X'.
    WHEN 'DELETE'.
      LOOP AT itab WHERE box = 'X'.
*        i_d_wa-matnr = itab-matnr.
*        i_d_wa-werks = itab-werks.
*        i_d_wa-ersda = itab-ersda.
*        i_d_wa-timestamp = itab-timestamp.
*        i_d_wa-oldval = itab-oldval.
*        i_d_wa-newval = itab-newval.
*        i_d_wa-msg = itab-msg.
        MOVE-corresponding itab to i_d_wa.
        DELETE  zrrmm02  FROM i_d_wa.
        CLEAR i_d_wa.
      ENDLOOP.
  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 07:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531055#M849445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T07:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from db table using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531056#M849446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I heard , we need to use class too. if anyone knows pls suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531056#M849446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from db table using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531057#M849447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refere the attached program. This program we have developed for the same purpose but the tables are different...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work for you too....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award Points if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZINMM_ADTH_MAINTAIN&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZINMM_ADTH_MAINTAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_filename type localfile.  " File Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types :begin of ty_tab.&lt;/P&gt;&lt;P&gt;        include structure ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;types :  sel(1).&lt;/P&gt;&lt;P&gt;types : message(25).&lt;/P&gt;&lt;P&gt;types :end of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : int_tab type table of ty_tab,&lt;/P&gt;&lt;P&gt;        wa_tab  type ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*excel&lt;/P&gt;&lt;P&gt;types :begin of ty_excelformat,&lt;/P&gt;&lt;P&gt;        col type kcd_ex_col_n,&lt;/P&gt;&lt;P&gt;        field type field,&lt;/P&gt;&lt;P&gt;        field_desc(30),&lt;/P&gt;&lt;P&gt;       end of ty_excelformat.&lt;/P&gt;&lt;P&gt;data : int_excelformat type table of ty_excelformat,&lt;/P&gt;&lt;P&gt;        wa_excelformat  type ty_excelformat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV GRID REQUIREMENTS&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;*FIELD CATALOG&lt;/P&gt;&lt;P&gt;data: int_fieldcatalog type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;data: wa_fieldcatalog type slis_fieldcat_alv ,&lt;/P&gt;&lt;P&gt;      wa_layout       type slis_layout_alv  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECTION SCREEN&lt;/P&gt;&lt;P&gt;tables : ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;selection-screen begin of block a with frame title  text-000.&lt;/P&gt;&lt;P&gt;parameters: p_fname type localfile obligatory modif id upd .     " File Name&lt;/P&gt;&lt;P&gt;selection-screen comment /1(60) comm1 modif id upd .&lt;/P&gt;&lt;P&gt;selection-screen comment /1(70) comm2 modif id upd .&lt;/P&gt;&lt;P&gt;selection-screen comment /1(50) comm3 modif id upd .&lt;/P&gt;&lt;P&gt;selection-screen comment /1(50) comm4 modif id upd .&lt;/P&gt;&lt;P&gt;selection-screen comment /1(50) comm5 modif id upd .&lt;/P&gt;&lt;P&gt;select-options s_werks for ZINMM_ADTH-werks modif id chd obligatory.&lt;/P&gt;&lt;P&gt;select-options s_budat for ZINMM_ADTH-budat modif id chd.&lt;/P&gt;&lt;P&gt;select-options s_matnr for ZINMM_ADTH-matnr modif id chd.&lt;/P&gt;&lt;P&gt;select-options s_LGORT for ZINMM_ADTH-LGORT modif id chd.&lt;/P&gt;&lt;P&gt;select-options s_ploT  for ZINMM_ADTH-ploT modif id chd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*GET EXCEL FILE&lt;/P&gt;&lt;P&gt;  perform f_getfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comm1 = 'Excel File Details :'.&lt;/P&gt;&lt;P&gt;comm2 = '* Row 1 : Field Names of the table ( All Key Fields are Mandatory ) '.&lt;/P&gt;&lt;P&gt;comm3 = '* Row 2 : Field Descriptions'.&lt;/P&gt;&lt;P&gt;comm4 = '* Row 3 and Above : Data '.&lt;/P&gt;&lt;P&gt;comm5 = '* Col 1 : Please start from Col1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SCREEN MODIFICATIONS AS PER TCODE&lt;/P&gt;&lt;P&gt;*UPLOAD DATA&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'ZINMM010A'.      "UPLOAD&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'CHD'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DISP/MODIFY&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'ZINMM010B'       "DISP/CHANGE&lt;/P&gt;&lt;P&gt;   or sy-tcode = 'ZINMM010C' .&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'UPD'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TITLE&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'ZINMM010A'.      "UPLOAD&lt;/P&gt;&lt;P&gt;    sy-title = 'Upload Wood ADT stock'.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010B'.  "CHANGE&lt;/P&gt;&lt;P&gt;    sy-title = 'Change Wood ADT stock'.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010C'.  "DISP&lt;/P&gt;&lt;P&gt;    sy-title = 'Display Wood ADT stock'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'ZINMM010A'.      "UPLOAD&lt;/P&gt;&lt;P&gt;    sy-title = 'Upload Wood ADT stock '.&lt;/P&gt;&lt;P&gt;    set titlebar 'TITLE' with sy-title.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010B'.  "CHANGE&lt;/P&gt;&lt;P&gt;    sy-title = 'Change Wood ADT stock'.&lt;/P&gt;&lt;P&gt;    set titlebar 'TITLE' with sy-title.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010C'.  "DISP&lt;/P&gt;&lt;P&gt;    sy-title = 'Display Wood ADT stock'.&lt;/P&gt;&lt;P&gt;    set titlebar 'TITLE' with sy-title.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'ZINMM010A'.      "UPLOAD&lt;/P&gt;&lt;P&gt;    v_filename = p_fname.&lt;/P&gt;&lt;P&gt;    perform f_getdata.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010B'.  "CHANGE&lt;/P&gt;&lt;P&gt;    perform f_getdata_tab.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010C'.  "DISP&lt;/P&gt;&lt;P&gt;    perform f_getdata_tab.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f_create_alv.&lt;/P&gt;&lt;P&gt;  perform f_disp_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  F_GETDATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      READ DATA FROM EXCEL AND DO DATA CLEANSING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_getdata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: wa_excel  type alsmex_tabline,&lt;/P&gt;&lt;P&gt;        int_excel type standard table of alsmex_tabline initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data wf_row type kcd_ex_row_n. " Row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: wf_value(80) type c,&lt;/P&gt;&lt;P&gt;       fieldname(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;value&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : wf_date type dats,&lt;/P&gt;&lt;P&gt;         wf_time type tims.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      filename                = v_filename&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1&lt;/P&gt;&lt;P&gt;      i_begin_row             = 1&lt;/P&gt;&lt;P&gt;      i_end_col               = 50&lt;/P&gt;&lt;P&gt;      i_end_row               = 65000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                  = int_excel&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;      upload_ole              = 2&lt;/P&gt;&lt;P&gt;      others                  = 3.&lt;/P&gt;&lt;P&gt;  if sy-subrc  &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    message 'Error in reading file' type 'I'.&lt;/P&gt;&lt;P&gt;    leave list-processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GET ALL THE FIELDS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at int_excel&lt;/P&gt;&lt;P&gt;    into wa_excel&lt;/P&gt;&lt;P&gt;    where&lt;/P&gt;&lt;P&gt;      row = 1.&lt;/P&gt;&lt;P&gt;      wa_excelformat-field = wa_excel-value .&lt;/P&gt;&lt;P&gt;      wa_excelformat-col = wa_excel-col.&lt;/P&gt;&lt;P&gt;      append  wa_excelformat to int_excelformat.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GET THE DESCRIPTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at int_excel&lt;/P&gt;&lt;P&gt;    into wa_excel&lt;/P&gt;&lt;P&gt;    where&lt;/P&gt;&lt;P&gt;      row = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table int_excelformat&lt;/P&gt;&lt;P&gt;      into wa_excelformat&lt;/P&gt;&lt;P&gt;      with key&lt;/P&gt;&lt;P&gt;       col = wa_excel-col.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        wa_excelformat-field_desc = wa_excel-value.&lt;/P&gt;&lt;P&gt;        modify int_excelformat index sy-tabix from wa_excelformat .&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SORT int_excel&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; BY row ASCENDING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    col ASCENDING.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wf_row = 3.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FETC THE DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at int_excel into  wa_excel.&lt;/P&gt;&lt;P&gt;    clear wf_value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if wf_row =  wa_excel-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table int_excelformat&lt;/P&gt;&lt;P&gt;      into wa_excelformat&lt;/P&gt;&lt;P&gt;      with key&lt;/P&gt;&lt;P&gt;       col = wa_excel-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if  wa_excelformat-field eq 'BUDAT'&lt;/P&gt;&lt;P&gt;            or wa_excelformat-field eq 'ERDAT'&lt;/P&gt;&lt;P&gt;            or wa_excelformat-field eq 'LCDAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          call function 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;            exporting&lt;/P&gt;&lt;P&gt;              date_external = wa_excel-value&lt;/P&gt;&lt;P&gt;            importing&lt;/P&gt;&lt;P&gt;              date_internal = wf_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          fieldname = wa_excelformat-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          concatenate 'WA_TAB-'&lt;/P&gt;&lt;P&gt;                       fieldname&lt;/P&gt;&lt;P&gt;          into wf_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          assign (wf_value) to &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            &amp;lt;value&amp;gt; =  wf_date.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            unassign &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        elseif  wa_excelformat-field eq 'MATNR' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          fieldname = wa_excelformat-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          concatenate 'WA_TAB-'&lt;/P&gt;&lt;P&gt;                       fieldname&lt;/P&gt;&lt;P&gt;          into wf_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          assign (wf_value) to &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          call function 'CONVERSION_EXIT_MATN1_INPUT'&lt;/P&gt;&lt;P&gt;            exporting&lt;/P&gt;&lt;P&gt;              input        = wa_excel-value&lt;/P&gt;&lt;P&gt;            importing&lt;/P&gt;&lt;P&gt;              output       = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;            exceptions&lt;/P&gt;&lt;P&gt;              length_error = 1&lt;/P&gt;&lt;P&gt;              others       = 2.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          fieldname = wa_excelformat-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          concatenate 'WA_TAB-'&lt;/P&gt;&lt;P&gt;                       fieldname&lt;/P&gt;&lt;P&gt;          into wf_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          assign (wf_value) to &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            condense wa_excel-value.&lt;/P&gt;&lt;P&gt;            &amp;lt;value&amp;gt; =  wa_excel-value.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            unassign &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      at end of row.&lt;/P&gt;&lt;P&gt;        wf_row = wf_row + 1.&lt;/P&gt;&lt;P&gt;        append wa_tab to int_tab.&lt;/P&gt;&lt;P&gt;        clear wa_tab.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " F_GETDATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_getfile&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      GET FILE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_getfile .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      file_name = p_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f_getfile&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  F_CREATE_ALV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CREATE ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_create_alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode eq 'ZINMM010A'.&lt;/P&gt;&lt;P&gt;    loop at int_excelformat&lt;/P&gt;&lt;P&gt;     into wa_excelformat.&lt;/P&gt;&lt;P&gt;      wa_fieldcatalog-fieldname = wa_excelformat-field.&lt;/P&gt;&lt;P&gt;      wa_fieldcatalog-tabname   = 'INT_TAB'.&lt;/P&gt;&lt;P&gt;      wa_fieldcatalog-seltext_l = wa_excelformat-field_desc.&lt;/P&gt;&lt;P&gt;      append wa_fieldcatalog to int_fieldcatalog.&lt;/P&gt;&lt;P&gt;      clear: wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode eq 'ZINMM010B' or&lt;/P&gt;&lt;P&gt;     sy-tcode eq 'ZINMM010C'.&lt;/P&gt;&lt;P&gt;    call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        i_program_name   = sy-repid&lt;/P&gt;&lt;P&gt;        i_structure_name = 'ZINMM_ADTH'&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        ct_fieldcat      = int_fieldcatalog.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode eq 'ZINMM010B'.&lt;/P&gt;&lt;P&gt;    loop at int_fieldcatalog into wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;      if  wa_fieldcatalog-fieldname ne 'WERKS'&lt;/P&gt;&lt;P&gt;          and  wa_fieldcatalog-fieldname ne 'LGORT'&lt;/P&gt;&lt;P&gt;          and  wa_fieldcatalog-fieldname ne 'MATNR'&lt;/P&gt;&lt;P&gt;          and  wa_fieldcatalog-fieldname ne 'BUDAT'&lt;/P&gt;&lt;P&gt;          and  wa_fieldcatalog-fieldname ne 'PLOT'.&lt;/P&gt;&lt;P&gt;        wa_fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;        wa_fieldcatalog-input = 'X'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify int_fieldcatalog from wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;  if sy-tcode ne 'ZINMM010C'.&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-fieldname = 'MESSAGE'.&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-col_pos   = '28'.&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-seltext_l = 'Message'.&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-edit = ' '.&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-input = ' '.&lt;/P&gt;&lt;P&gt;    append wa_fieldcatalog to int_fieldcatalog.&lt;/P&gt;&lt;P&gt;    clear: wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LAYOUT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_layout-colwidth_optimize  = 'X'.&lt;/P&gt;&lt;P&gt;  wa_layout-zebra  = 'X'.&lt;/P&gt;&lt;P&gt;  if sy-tcode ne 'ZINMM010C'.&lt;/P&gt;&lt;P&gt;    wa_layout-box_fieldname  = 'SEL'.&lt;/P&gt;&lt;P&gt;    wa_layout-box_tabname  = 'INT_TAB'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " F_CREATE_ALV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_disp_ALV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DISPLAY ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_disp_alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: v_repid type syrepid.&lt;/P&gt;&lt;P&gt;  v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program       = v_repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      it_fieldcat              = int_fieldcatalog&lt;/P&gt;&lt;P&gt;      is_layout                = wa_layout&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                 = int_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f_disp_ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  set_pf_status&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SET PF STAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form set_pf_status using rt_extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'ZINMM010A'.      "UPLOAD&lt;/P&gt;&lt;P&gt;    set pf-status 'ZINMM_ADTH_010A'.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010B'.  "CHANGE&lt;/P&gt;&lt;P&gt;    set pf-status 'ZINMM_ADTH_010B'.&lt;/P&gt;&lt;P&gt;  elseif sy-tcode = 'ZINMM010C'.  "DISP&lt;/P&gt;&lt;P&gt;    set pf-status 'ZINMM_ADTH_010C'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    "set_pf_status&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  user_command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      READ USER SELECTIONS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;R_UCOMM      text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;RS_SELFIELD  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form user_command  using r_ucomm like sy-ucomm&lt;/P&gt;&lt;P&gt;                           rs_selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data ref1 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_ucomm eq 'EXIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    leave program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_ucomm eq 'UPD'.&lt;/P&gt;&lt;P&gt;    loop at int_tab into wa_tab&lt;/P&gt;&lt;P&gt;    where sel = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform f_update changing wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify int_tab from wa_tab.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_ucomm eq 'DEL'.&lt;/P&gt;&lt;P&gt;    loop at int_tab into wa_tab&lt;/P&gt;&lt;P&gt;    where sel = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform f_delete changing wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify int_tab from wa_tab.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_ucomm eq 'SAV'.&lt;/P&gt;&lt;P&gt;    call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        e_grid = ref1.&lt;/P&gt;&lt;P&gt;    call method ref1-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at int_tab into wa_tab.&lt;/P&gt;&lt;P&gt;      perform f_update changing wa_tab.&lt;/P&gt;&lt;P&gt;      modify int_tab from wa_tab.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f_disp_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "user_command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_update&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MODIFY TAB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_WA_TAB  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_update  changing p_wa_tab type ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : wa_ZINMM_ADTH type ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;  data : wf_matnr type matnr,&lt;/P&gt;&lt;P&gt;         wf_werks type werks_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move-corresponding p_wa_tab to wa_ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     mode_rstable         = 'W'&lt;/P&gt;&lt;P&gt;     tabname              = 'ZINMM_ADTH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     foreign_lock         = 1&lt;/P&gt;&lt;P&gt;     system_failure       = 2&lt;/P&gt;&lt;P&gt;     others               = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single&lt;/P&gt;&lt;P&gt;   matnr&lt;/P&gt;&lt;P&gt;   werks&lt;/P&gt;&lt;P&gt;   into (wf_matnr,wf_werks)&lt;/P&gt;&lt;P&gt;  from marc&lt;/P&gt;&lt;P&gt;  where&lt;/P&gt;&lt;P&gt;   matnr = p_wa_tab-matnr&lt;/P&gt;&lt;P&gt;   and werks = p_wa_tab-werks.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-tcode = 'ZINMM010A'.&lt;/P&gt;&lt;P&gt;      insert into  ZINMM_ADTH  values  wa_ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Entry Exists'.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Successfull Updation'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-tcode = 'ZINMM010B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        modify ZINMM_ADTH from wa_ZINMM_ADTH .&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Modification Error'.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Modification Success'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    p_wa_tab-message = 'Material / Plant Error'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     mode_rstable       = 'W'&lt;/P&gt;&lt;P&gt;     tabname            = 'ZINMM_ADTH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE             = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SYNCHRON          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "f_update&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_getdata_TAB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      GET DATA FROM TABLE - CHANGE - DISP MODE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_getdata_tab .&lt;/P&gt;&lt;P&gt;  select *&lt;/P&gt;&lt;P&gt;  from ZINMM_ADTH&lt;/P&gt;&lt;P&gt;  into corresponding fields of table int_tab&lt;/P&gt;&lt;P&gt;  where&lt;/P&gt;&lt;P&gt;    werks in s_werks&lt;/P&gt;&lt;P&gt;    and  lgort in s_lgort&lt;/P&gt;&lt;P&gt;    and  plot  in s_plot&lt;/P&gt;&lt;P&gt;    and  matnr in s_matnr&lt;/P&gt;&lt;P&gt;    and  budat in s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message 'No Data Available' type 'S'.&lt;/P&gt;&lt;P&gt;    leave list-processing.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " f_getdata_TAB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_DELETE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_WA_TAB  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_delete  changing p_wa_tab type ty_tab.&lt;/P&gt;&lt;P&gt;data : wa_ZINMM_ADTH type ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;data w_answer(1).&lt;/P&gt;&lt;P&gt;  move-corresponding p_wa_tab to wa_ZINMM_ADTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     mode_rstable         = 'W'&lt;/P&gt;&lt;P&gt;     tabname              = 'ZINMM_ADTH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     foreign_lock         = 1&lt;/P&gt;&lt;P&gt;     system_failure       = 2&lt;/P&gt;&lt;P&gt;     others               = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;   text_question               = 'Confirm Deletion of Data ?'&lt;/P&gt;&lt;P&gt;   text_button_1               = 'Yes'&lt;/P&gt;&lt;P&gt;   text_button_2               = 'No'&lt;/P&gt;&lt;P&gt;   display_cancel_button       = ' '&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    answer                      = w_answer&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_answer = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete ZINMM_ADTH from wa_ZINMM_ADTH .&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Delete Error'.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        p_wa_tab-message = 'Delete Success'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     mode_rstable       = 'W'&lt;/P&gt;&lt;P&gt;     tabname            = 'ZINMM_ADTH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE             = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SYNCHRON          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f_DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection texts&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;P_FNAME         File Name&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_BUDAT         Posting Date&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_LGORT         Storage Location&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_MATNR         Material&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_PLOT         Plot&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;S_WERKS         Plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Messages&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message class: Hard coded&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error in reading file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531057#M849447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from db table using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531058#M849448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use   &lt;STRONG&gt;DELETE zrrmm02  FROM TABLE i_d_wa.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work.If still it is not working  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  DELETE zrrmm02 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531058#M849448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from db table using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531059#M849449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to use this :- &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA ref1 TYPE REF TO cl_gui_alv_grid.
  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
       IMPORTING
            e_grid = ref1.
  CALL METHOD ref1-&amp;gt;check_changed_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now is there a way to refresh the alv too . like after clciking the delete i dont want to show those rows anymore..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-db-table-using-alv/m-p/3531059#M849449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:51:20Z</dc:date>
    </item>
  </channel>
</rss>

