<?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 Re: short dump during select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663091#M1097017</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;still i am getting the same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 12:50:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T12:50:32Z</dc:date>
    <item>
      <title>short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663082#M1097008</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;i have to display 1 alv list output using REUSE_ALV_HIERSEQ_LIST_DISPLAY function module...so i have populated the data using select statement&lt;/P&gt;&lt;P&gt;select EXIDV&lt;/P&gt;&lt;P&gt;    brgew meabm&lt;/P&gt;&lt;P&gt;           vegr1 erlkz vhilm erdat aenam&lt;/P&gt;&lt;P&gt;           ernam from vekp&lt;/P&gt;&lt;P&gt;                into corresponding fields of table  gt_master&lt;/P&gt;&lt;P&gt;                up to gs_test-select_amount rows.&lt;/P&gt;&lt;P&gt;so the data is also getting populated to gt_master table before the function module...but after executing the function module..it is giving short dump...due to some standard program....any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663082#M1097008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663083#M1097009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really sure what's happening, but I'd check the type of the variable used for up to n rows, and specifically, check if it's not initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663083#M1097009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663084#M1097010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so that means the error is not from the select statement , the error is coming from the fieldcatalog. how are you populating the fieldcatalog , show the code for fieldcatalog population.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663084#M1097010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663085#M1097011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply ,...but when i am going to remove the select statement the program is not giving any short dump..but the data are not there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing...i am getting this error in program      LKKBLF99 due to a typed field symbol...before it has been set with assign statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663085#M1097011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663086#M1097012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check once by removing CORRESPONDING FILEDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663086#M1097012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663087#M1097013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lkkbl means related to fieldcatalog and alv. nothing related to select. show your code if you have no issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663087#M1097013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663088#M1097014</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;my coding is&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;Report       : ZBCALV                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Author       :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAP-User     :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Requester    :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date         :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Specification:                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description  :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Changes      :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change No    :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Author       :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAP-User     :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date         :                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reason / Desc:                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;REPORT   ZBCALV.&lt;/P&gt;&lt;P&gt;**&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;**&amp;amp; Report  BCALV_TEST_HIERSEQ_LIST_EVENTS                              *&lt;/P&gt;&lt;P&gt;**&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;**&amp;amp;----&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;**&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*report  bcalv_test_hierseq_list_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: g_ty_t_exidv  type standard table of vekp,&lt;/P&gt;&lt;P&gt;       g_ty_t_brgew  type standard table of vekp,&lt;/P&gt;&lt;P&gt;       g_ty_t_vegr1  type standard table of vekp,&lt;/P&gt;&lt;P&gt;       g_ty_t_vekp    type standard table of vekp,&lt;/P&gt;&lt;P&gt;       g_ty_t_curr    type standard table of alv_cur,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      g_ty_s_vekp type alv_t_t2,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       g_ty_s_exidv  type alv_tab,&lt;/P&gt;&lt;P&gt;       g_ty_s_brgew   type alv_tab,&lt;/P&gt;&lt;P&gt;       g_ty_s_vegr1  type alv_chck,&lt;/P&gt;&lt;P&gt;       g_ty_s_vekp    type vekp,&lt;/P&gt;&lt;P&gt;       g_ty_s_curr    type alv_cur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;*con_vekp type lvc_fname value 'ALV_T_T2',&lt;/P&gt;&lt;P&gt;           con_scarr   type lvc_fname value 'ALV_TAB',      "#EC *&lt;/P&gt;&lt;P&gt;           con_spfli   type lvc_fname value 'ALV_CHCK',     "#EC *&lt;/P&gt;&lt;P&gt;           con_vekp    type lvc_fname value 'VEKP',&lt;/P&gt;&lt;P&gt;           con_scurx   type lvc_fname value 'ALV_CUR'.      "#EC *&lt;/P&gt;&lt;P&gt;&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;DATA                                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;tables: sscrfields.   " for processing the FCODEs in Selektion screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis, kkblo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_events_d1001 definition deferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of g_ty_s_test,&lt;/P&gt;&lt;P&gt;         select_amount      type i,&lt;/P&gt;&lt;P&gt;         selected_recs_m    type i,&lt;/P&gt;&lt;P&gt;         selected_recs_s    type i,&lt;/P&gt;&lt;P&gt;         no_info_popup      type char1,&lt;/P&gt;&lt;P&gt;         info_popup_once    type char1,&lt;/P&gt;&lt;P&gt;         events             type lvc_fname occurs 0,&lt;/P&gt;&lt;P&gt;         events_exit        type slis_t_event_exit,&lt;/P&gt;&lt;P&gt;         events_info_popup  type lvc_fname occurs 0,&lt;/P&gt;&lt;P&gt;         list_append        type char1,&lt;/P&gt;&lt;P&gt;         list_amount        type i,&lt;/P&gt;&lt;P&gt;         list_append_status type i,&lt;/P&gt;&lt;P&gt;         layo_expand_field  type char1,&lt;/P&gt;&lt;P&gt;         layo_expand_all    type char1,&lt;/P&gt;&lt;P&gt;         vari_default       type char1,&lt;/P&gt;&lt;P&gt;         vari_save          type char1,&lt;/P&gt;&lt;P&gt;         bypassing_buffer   type char1,&lt;/P&gt;&lt;P&gt;         buffer_active      type char1,&lt;/P&gt;&lt;P&gt;       end   of g_ty_s_test,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       begin of g_ty_s_evt_exit.&lt;/P&gt;&lt;P&gt;include type slis_event_exit.&lt;/P&gt;&lt;P&gt;types:   text    type string,&lt;/P&gt;&lt;P&gt;       end   of g_ty_s_evt_exit,&lt;/P&gt;&lt;P&gt;       g_ty_t_evt_exit type standard table of g_ty_s_evt_exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: con_true     type char1 value 'X',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           con_ok   type sy-ucomm value 'OK',&lt;/P&gt;&lt;P&gt;           con_exit type sy-ucomm value 'EXIT',&lt;/P&gt;&lt;P&gt;           con_canc type sy-ucomm value 'CANC',&lt;/P&gt;&lt;P&gt;           con_back type sy-ucomm value 'BACK',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           con_event_01 type lvc_fname value 'PF_STATUS_SET',&lt;/P&gt;&lt;P&gt;           con_event_02 type lvc_fname value 'USER_COMMAND',&lt;/P&gt;&lt;P&gt;           con_event_03 type lvc_fname value 'CALLER_EXIT',&lt;/P&gt;&lt;P&gt;           con_event_04 type lvc_fname value 'LIST_MODIFY',&lt;/P&gt;&lt;P&gt;           con_event_05 type lvc_fname value 'BEFORE_LINE_OUTPUT',&lt;/P&gt;&lt;P&gt;           con_event_06 type lvc_fname value 'AFTER_LINE_OUTPUT',&lt;/P&gt;&lt;P&gt;           con_event_07 type lvc_fname value 'SUBTOTAL_TEXT',&lt;/P&gt;&lt;P&gt;           con_event_08 type lvc_fname value 'REPREP_MODIFY',&lt;/P&gt;&lt;P&gt;           con_event_09 type lvc_fname value 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;           con_event_10 type lvc_fname value 'END_OF_PAGE',&lt;/P&gt;&lt;P&gt;           con_event_11 type lvc_fname value 'TOP_OF_LIST',&lt;/P&gt;&lt;P&gt;           con_event_12 type lvc_fname value 'END_OF_LIST',&lt;/P&gt;&lt;P&gt;           con_event_13 type lvc_fname value 'TOP_OF_COVERPAGE',&lt;/P&gt;&lt;P&gt;           con_event_14 type lvc_fname value 'END_OF_COVERPAGE',&lt;/P&gt;&lt;P&gt;           con_event_15 type lvc_fname value 'TOP_OF_FOREIGN_PAGE',&lt;/P&gt;&lt;P&gt;           con_event_16 type lvc_fname value 'END_OF_FOREIGN_PAGE',&lt;/P&gt;&lt;P&gt;           con_event_17 type lvc_fname value 'GROUPLEVEL_CHANGE',&lt;/P&gt;&lt;P&gt;           con_event_18 type lvc_fname value 'ITEM_DATA_EXPAND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gs_test type g_ty_s_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_okcode type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_repid type sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_evt_exit type g_ty_t_evt_exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gr_container_d1001   type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      gr_grid_d1001        type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      gr_events_d1001      type ref to lcl_events_d1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_start_listinfo type slis_lineinfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*addition for extra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fieldcatalog  TYPE slis_t_fieldcat_alv with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types  : BEGIN OF gt_output ,&lt;/P&gt;&lt;P&gt;       EXIDV TYPE VEKP-EXIDV,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VGBEL TYPE LIPS-VGBEL,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       BRGEW TYPE VEKP-BRGEW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       VEGR1 TYPE VEKP-VEGR1,&lt;/P&gt;&lt;P&gt;       MEABM TYPE VEKP-MEABM,&lt;/P&gt;&lt;P&gt;       ERLKZ TYPE VEKP-ERLKZ,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VSTAT TYPE NAST-VSTAT,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       VHILM TYPE VEKP-VHILM,&lt;/P&gt;&lt;P&gt;       ERDAT TYPE VEKP-ERDAT,&lt;/P&gt;&lt;P&gt;       AENAM TYPE VEKP-AENAM,&lt;/P&gt;&lt;P&gt;       VBELN TYPE VBELN_GEN,&lt;/P&gt;&lt;P&gt;       ERNAM TYPE VEKP-ERNAM,&lt;/P&gt;&lt;P&gt;        END OF gt_output.&lt;/P&gt;&lt;P&gt;data: ls_output type gt_output,&lt;/P&gt;&lt;P&gt;      lt_output type gt_output occurs 0 WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; types  : BEGIN OF gt_item_output ,&lt;/P&gt;&lt;P&gt;       EXIDV TYPE VEKP-EXIDV,&lt;/P&gt;&lt;P&gt;       BRGEW TYPE VEKP-BRGEW,&lt;/P&gt;&lt;P&gt;        vEGR1 TYPE VEKP-VEGR1,&lt;/P&gt;&lt;P&gt;       TARAG TYPE VEKP-TARAG,&lt;/P&gt;&lt;P&gt;       NTGEW TYPE VEKP-NTGEW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       MEABM TYPE VEKP-MEABM,&lt;/P&gt;&lt;P&gt;       BREIT TYPE VEKP-BREIT,&lt;/P&gt;&lt;P&gt;       HOEHE TYPE VEKP-HOEHE,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ANW_STATUS TYPE VEKP-ANW_STATUS,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       MATNR TYPE VEPO-MATNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       VEGR2 TYPE VEKP-VEGR2,&lt;/P&gt;&lt;P&gt;       VSTEL TYPE VEKP-VSTEL,&lt;/P&gt;&lt;P&gt;       WERKS TYPE VEKP-WERKS,&lt;/P&gt;&lt;P&gt;       END OF gt_item_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: ls_ITEM_output type gt_ITEM_output,&lt;/P&gt;&lt;P&gt;       lt_ITEM_output type gt_ITEM_output occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:       begin of g_ty_s_master.&lt;/P&gt;&lt;P&gt;include type gt_output.&lt;/P&gt;&lt;P&gt;types:   box                  type char1,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lights               type char1,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         checkbox             type char1,&lt;/P&gt;&lt;P&gt;         expand               type char1,&lt;/P&gt;&lt;P&gt;         help                 type i,&lt;/P&gt;&lt;P&gt;         end   of g_ty_s_master,&lt;/P&gt;&lt;P&gt;       g_ty_t_master type standard table of g_ty_s_master,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       begin of g_ty_s_slave.&lt;/P&gt;&lt;P&gt;include type gt_item_output.&lt;/P&gt;&lt;P&gt;types:   box                  type char1,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lights               type char1,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         checkbox             type char1,&lt;/P&gt;&lt;P&gt;         expand               type char1,&lt;/P&gt;&lt;P&gt;         help                 type i,&lt;/P&gt;&lt;P&gt;         end   of g_ty_s_slave,&lt;/P&gt;&lt;P&gt;       g_ty_t_slave type standard table of g_ty_s_slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_master type g_ty_t_master with header line,&lt;/P&gt;&lt;P&gt;      gt_slave  type g_ty_t_slave with header line,&lt;/P&gt;&lt;P&gt;      gs_master type g_ty_s_master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;      CLASS lcl_events_d1001 DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class lcl_events_d1001 definition.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    methods:&lt;/P&gt;&lt;P&gt;    data_changed         for event data_changed&lt;/P&gt;&lt;P&gt;                         of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                         importing er_data_changed&lt;/P&gt;&lt;P&gt;                                   e_onf4&lt;/P&gt;&lt;P&gt;                                   e_onf4_before&lt;/P&gt;&lt;P&gt;                                   e_onf4_after,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data_changed_finished&lt;/P&gt;&lt;P&gt;                         for event data_changed_finished&lt;/P&gt;&lt;P&gt;                         of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.                    "lcl_events_d1001 DEFINITION&lt;/P&gt;&lt;P&gt;&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;      CLASS lcl_events_d1001 IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class lcl_events_d1001 implementation.&lt;/P&gt;&lt;P&gt;  method data_changed.&lt;/P&gt;&lt;P&gt;  endmethod.                    "data_changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  method data_changed_finished.&lt;/P&gt;&lt;P&gt;  endmethod.                    "data_changed_finished&lt;/P&gt;&lt;P&gt;endclass.                    "lcl_events_d1001 IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&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;SELECTION-SCREEN                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;selection-screen begin of block gen with frame.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_amount type i default 30.&lt;/P&gt;&lt;P&gt;selection-screen end of block gen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&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;AT SELECTION-SCREEN                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  case sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;    when 'PB01'.&lt;/P&gt;&lt;P&gt;      call screen 1001 starting at 1 1 ending at 80 20.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&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;START-OF-SELECTION                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  g_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_test-select_amount = p_amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;END-OF-SELECTION                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;  perform f01_call_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f01_call_list&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_call_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_callback_program type sy-cprog,                   "#EC NEEDED&lt;/P&gt;&lt;P&gt;        ls_layo            type slis_layout_alv,&lt;/P&gt;&lt;P&gt;        lt_fcat            type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;        ls_keyinfo         type slis_keyinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ls_master type g_ty_s_master,&lt;/P&gt;&lt;P&gt;        ls_slave  type g_ty_s_slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_callback_program = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f01_alv_get_outtab.&lt;/P&gt;&lt;P&gt;  perform f01_alv_set_layout changing ls_layo.&lt;/P&gt;&lt;P&gt;  perform f01_alv_set_fcat   changing lt_fcat.&lt;/P&gt;&lt;P&gt;  perform f01_alv_set_keyinfo changing ls_keyinfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if gs_test-list_append_status ne 0.&lt;/P&gt;&lt;P&gt;    ls_layo-list_append = gs_test-list_append.&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;  call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program             = g_repid&lt;/P&gt;&lt;P&gt;      is_layout                      = ls_layo&lt;/P&gt;&lt;P&gt;      it_fieldcat                    = lt_fcat&lt;/P&gt;&lt;P&gt;      i_tabname_header               = 'GT_MASTER'&lt;/P&gt;&lt;P&gt;      i_tabname_item                 = 'GT_SLAVE'&lt;/P&gt;&lt;P&gt;      is_keyinfo                     = ls_keyinfo&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab_header                = gt_master&lt;/P&gt;&lt;P&gt;      t_outtab_item                  = gt_slave&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error                  = 1&lt;/P&gt;&lt;P&gt;      others                         = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;endform.                    " f01_call_list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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; FORM f01_alv_set_fcat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_set_fcat changing ct_fcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: lt_fcat_master type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;        lt_fcat_slave  type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear ct_fcat[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f01_alv_set_fcat_master changing lt_fcat_master.&lt;/P&gt;&lt;P&gt;  perform f01_alv_set_fcat_slave  changing lt_fcat_slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append lines of lt_fcat_master to ct_fcat.&lt;/P&gt;&lt;P&gt;  append lines of lt_fcat_slave  to ct_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " F01_ALV_SET_FCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f01_alv_set_fcat_master&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_set_fcat_master changing ct_fcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ls_fcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;        l_char(3) type c.&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 fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EXIDV'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-TECH        = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VGBEL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_L   = 'SALES ORDER'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'LIPS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BRGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WEIGHT'.&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MEABM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'DIMENSION'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'IPPC NR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERLKZ'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'STATUS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VSTAT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PRINT STATUS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VSTAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VHILM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PACKING MATERIAL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERDAT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'CREATED FROM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'AENAM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'LAST CHANGE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VBELN'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'DELIVERY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 11.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERNAM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'CREATED BY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 12.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fcat-tabname = 'GT_MASTER'.&lt;/P&gt;&lt;P&gt;  modify ct_fcat from ls_fcat transporting tabname&lt;/P&gt;&lt;P&gt;                 where tabname ne ls_fcat-tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at ct_fcat into ls_fcat.&lt;/P&gt;&lt;P&gt;    if    ls_fcat-fieldname eq 'BRGEW'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      or ls_fcat-fieldname eq ''.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*§1.Set status of columns PLANETYPE and SEATSOCC to editable.&lt;/P&gt;&lt;P&gt;      ls_fcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify ct_fcat from ls_fcat.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f01_alv_set_fcat_master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f01_alv_set_fcat_slave&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_set_fcat_slave changing ct_fcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ls_fcat   type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;        l_char(3) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EXIDV'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;   FIELDCATALOG-TECH        = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; fieldcatalog-fieldname   = 'TARAG'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'NTGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_L   = 'WEIGHT HU'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BRGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WEIGHT'.&lt;/P&gt;&lt;P&gt; FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'LAENG'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'LENGTH'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BREIT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WIDTH'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'HOEHE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HEIGHT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HU GR1'.&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR2'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HU GR2'.&lt;/P&gt;&lt;P&gt;  FIELDCATALOG-KEY         = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MATNR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'MAT NO'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEPO'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VSTEL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'SHIPPING'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'WERKS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PLANT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 11.&lt;/P&gt;&lt;P&gt;   fieldcatalog-ref_tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fcat-tabname = 'GT_SLAVE'.&lt;/P&gt;&lt;P&gt;  modify ct_fcat from ls_fcat transporting tabname&lt;/P&gt;&lt;P&gt;                 where tabname ne ls_fcat-tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f01_alv_set_fcat_slave&lt;/P&gt;&lt;P&gt;&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; FORM f01_alv_set_layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_set_layout changing cs_layout type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Display options&lt;/P&gt;&lt;P&gt;  cs_layout-colwidth_optimize      = con_true.&lt;/P&gt;&lt;P&gt;  cs_layout-no_colhead             = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_hotspot             = space.&lt;/P&gt;&lt;P&gt;  cs_layout-zebra                  = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_vline               = space.&lt;/P&gt;&lt;P&gt;  cs_layout-cell_merge             = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_min_linesize        = space.&lt;/P&gt;&lt;P&gt;  cs_layout-min_linesize           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-max_linesize           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-window_titlebar        = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_uline_hs            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_sumchoice           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_totalline           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-totals_before_items    = space.&lt;/P&gt;&lt;P&gt;  cs_layout-totals_only            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-totals_text            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_subchoice           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_subtotals           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-subtotals_text         = space.&lt;/P&gt;&lt;P&gt;  cs_layout-numc_sum               = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_unit_splitting      = space.&lt;/P&gt;&lt;P&gt;*... Interaction&lt;/P&gt;&lt;P&gt;  cs_layout-box_fieldname          = 'BOX'.&lt;/P&gt;&lt;P&gt;  cs_layout-box_tabname            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-box_rollname           = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if gs_test-layo_expand_field eq con_true.&lt;/P&gt;&lt;P&gt;    cs_layout-expand_fieldname       = 'EXPAND'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cs_layout-hotspot_fieldname      = space.&lt;/P&gt;&lt;P&gt;  cs_layout-f2code                 = space.&lt;/P&gt;&lt;P&gt;  cs_layout-key_hotspot            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-flexible_key           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-reprep                 = space.&lt;/P&gt;&lt;P&gt;  cs_layout-group_buttons          = space.&lt;/P&gt;&lt;P&gt;  cs_layout-no_keyfix              = space.&lt;/P&gt;&lt;P&gt;  cs_layout-get_selinfos           = con_true.&lt;/P&gt;&lt;P&gt;  cs_layout-group_change_edit      = con_true.&lt;/P&gt;&lt;P&gt;  cs_layout-no_scrolling           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-expand_all             = gs_test-layo_expand_all.&lt;/P&gt;&lt;P&gt;*... Detailed screen&lt;/P&gt;&lt;P&gt;  cs_layout-detail_popup           = space.&lt;/P&gt;&lt;P&gt;  cs_layout-detail_initial_lines   = space.&lt;/P&gt;&lt;P&gt;  cs_layout-detail_titlebar        = space.&lt;/P&gt;&lt;P&gt;*... PF-status&lt;/P&gt;&lt;P&gt;  cs_layout-def_status             = space.&lt;/P&gt;&lt;P&gt;*... Display variants&lt;/P&gt;&lt;P&gt;  cs_layout-header_text            = space.&lt;/P&gt;&lt;P&gt;  cs_layout-item_text              = space.&lt;/P&gt;&lt;P&gt;  cs_layout-default_item           = space.&lt;/P&gt;&lt;P&gt;*... colour&lt;/P&gt;&lt;P&gt;  cs_layout-info_fieldname         = space.&lt;/P&gt;&lt;P&gt;  cs_layout-coltab_fieldname       = space.&lt;/P&gt;&lt;P&gt;*... others&lt;/P&gt;&lt;P&gt;  cs_layout-list_append            = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " F01_ALV_SET_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f01_alv_set_keyinfo&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_set_keyinfo changing cs_keyinfo type slis_keyinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cs_keyinfo-header01 = 'EXIDV'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-item01   = 'EXIDV'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-header02 = 'BRGEW'."'CARRID'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-item02   = 'BRGEW'."."'CARRID'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-header03 = 'VEGR1'."'CONNID'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-item03   = 'VEGR1'."'CONNID'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-header04 = space.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-item04   = 'VEGR2'."'FLDATE'.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-header05 = space.&lt;/P&gt;&lt;P&gt;  cs_keyinfo-item05   = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f01_alv_set_keyinfo&lt;/P&gt;&lt;P&gt;&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; FORM f01_alv_event_pf_status_set&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_event_pf_status_set using rt_extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;                                                            "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_event type lvc_fname.                             "#EC NEEDED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if gs_test-info_popup_once eq con_true.&lt;/P&gt;&lt;P&gt;    read table gs_test-events_info_popup into l_event&lt;/P&gt;&lt;P&gt;               with key table_line = 'PF_STATUS_SET'.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      insert 'PF_STATUS_SET' into gs_test-events_info_popup index 1.&lt;/P&gt;&lt;P&gt;      message i000(0k) with text-t01.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  elseif gs_test-no_info_popup eq space.&lt;/P&gt;&lt;P&gt;    message i000(0k) with text-t01.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set pf-status 'STANDARD' excluding rt_extab.&lt;/P&gt;&lt;P&gt;  set titlebar 'STANDARD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " F01_ALV_EVENT_PF_STATUS_SET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  F01_ALV_EVENT_BEFORE_LINE_OUTP&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_event_before_line_outp&lt;/P&gt;&lt;P&gt;                      using rs_lineinfo type slis_lineinfo. "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_event type lvc_fname.                             "#EC NEEDED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if gs_test-info_popup_once eq con_true.&lt;/P&gt;&lt;P&gt;    read table gs_test-events_info_popup into l_event&lt;/P&gt;&lt;P&gt;               with key table_line = 'BEFORE_LINE_OUTPUT'.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      insert 'BEFORE_LINE_OUTPUT' into gs_test-events_info_popup&lt;/P&gt;&lt;P&gt;                                  index 1.&lt;/P&gt;&lt;P&gt;      message i000(0k) with text-t05.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  elseif gs_test-no_info_popup eq space.&lt;/P&gt;&lt;P&gt;    message i000(0k) with text-t05.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  format color off&lt;/P&gt;&lt;P&gt;         intensified off&lt;/P&gt;&lt;P&gt;         inverse off&lt;/P&gt;&lt;P&gt;         hotspot off&lt;/P&gt;&lt;P&gt;         input off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if rs_lineinfo-tabname eq 'GT_MASTER'.&lt;/P&gt;&lt;P&gt;    if&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   gs_master-exidv ne gt_master-exidv or&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       gs_master-brgew ne gt_master-brgew.&lt;/P&gt;&lt;P&gt;      write: / text-t05.&lt;/P&gt;&lt;P&gt;      write: /&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     gt_master-exidv,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               gt_master-brgew.&lt;/P&gt;&lt;P&gt;      gs_master = gt_master.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if gs_test-selected_recs_m eq rs_lineinfo-tabindex.&lt;/P&gt;&lt;P&gt;      clear gs_master.&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;endform.                               " F01_ALV_EVENT_BEFORE_LINE_OUTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f01_alv_get_outtab&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form f01_alv_get_outtab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols: .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select&lt;/P&gt;&lt;P&gt;   exidv BRGEW VEGR1&lt;/P&gt;&lt;P&gt;    TARAG NTgew  meabm  BREIT HOEHE  VEGR2 VSTEL weRKS&lt;/P&gt;&lt;P&gt;                       from&lt;/P&gt;&lt;P&gt;                      (con_vekp) into corresponding fields of table&lt;/P&gt;&lt;P&gt;                       lt_slave up to gs_test-select_amount rows&lt;/P&gt;&lt;P&gt;                       where&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      exidv eq &amp;lt;ls_master&amp;gt;-exidv and&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                       brgew eq -vegr1.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append lines of lt_slave to gt_slave.&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;  sort gt_slave by exidv brgew vegr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  describe table gt_master lines gs_test-selected_recs_m.&lt;/P&gt;&lt;P&gt;  describe table gt_slave  lines gs_test-selected_recs_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear gt_master.&lt;/P&gt;&lt;P&gt;  clear gt_slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " f01_alv_get_outtab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  d1001_pbo  OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;module d1001_pbo output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; perform d1001_pbo.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endmodule.                 " d1001_pbo  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  d1001_pai  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;module d1001_pai input.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; perform d1001_pai.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endmodule.                 " d1001_pai  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 12:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663088#M1097014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T12:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663089#M1097015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VEGR2 is Key in Slave table. But its not at all there in Master table. I think that is the problem. Just remove the marked line from Slave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
fieldcatalog-fieldname = 'VEGR2'.
fieldcatalog-seltext_l = 'HU GR2'.
"FIELDCATALOG-KEY = 'X'.   Should remove
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also remove the keyinfo details for them&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
cs_keyinfo-header04 = space.
cs_keyinfo-item04 = 'VEGR2'."'FLDATE'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think that should solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 12:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663089#M1097015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663090#M1097016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'EXIDV'. "Field name in itab
fieldcatalog-seltext_l = 'HU-NR'. "Column text
FIELDCATALOG-KEY = 'X'.
FIELDCATALOG-TECH = 'X'.
fieldcatalog-col_pos = 1. "Column position
fieldcatalog-tabname = 'GT_MASTER'.  "For header use GT_MASTER
fieldcatalog-outputlen = 05. "Column width

APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you don't need to use ref_tabname, you can use tabname to specify the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for slave &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'EXIDV'. "Field name in itab
fieldcatalog-seltext_l = 'HU-NR'. "Column text
FIELDCATALOG-KEY = 'X'.
FIELDCATALOG-TECH = 'X'.
fieldcatalog-col_pos = 1. "Column position
fieldcatalog-tabname = 'GT_SALVE'.
fieldcatalog-outputlen = 05. "Column width

APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;see here you need to mention the tabname , until unless you specify the name of the internal table for header and item. ALv function fail to identify the tables to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_tabname_header = 'GT_MASTER'
i_tabname_item = 'GT_SLAVE'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so correct the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 12:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663090#M1097016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663091#M1097017</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;still i am getting the same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 12:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663091#M1097017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663092#M1097018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the code seems to be so confusing. seems like you copied standard program and modified the logic. why can't you try it from the scratch.&lt;/P&gt;&lt;P&gt;check the program BALVHD01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Oct 28, 2008 8:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 12:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663092#M1097018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T12:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663093#M1097019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done from the scratch...in simple way ...but it is giving me the same error...my coding is&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  BCALV_TEST_HIERSEQ_LIST                                     *&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;report  zbcalv_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : vekp,sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_z75580emp OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       exidv type vekp-exidv,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VGBEL TYPE LIPS-VGBEL,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       BRGEW TYPE VEKP-BRGEW,&lt;/P&gt;&lt;P&gt;       MEABM TYPE VEKP-MEABM,&lt;/P&gt;&lt;P&gt;       VEGR1 TYPE VEKP-VEGR1,&lt;/P&gt;&lt;P&gt;       ERLKZ TYPE VEKP-ERLKZ,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VSTAT TYPE NAST-VSTAT,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       VHILM TYPE VEKP-VHILM,&lt;/P&gt;&lt;P&gt;       ERDAT TYPE VEKP-ERDAT,&lt;/P&gt;&lt;P&gt;       AENAM TYPE VEKP-AENAM,&lt;/P&gt;&lt;P&gt;       VBELN TYPE VBELN_GEN,&lt;/P&gt;&lt;P&gt;       ERNAM TYPE VEKP-ERNAM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     END OF it_z75580emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LINE ITEMS INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_z75580dep OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MANDT TYPE VEKP-MANDT,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VENUM TYPE VEKP-VENUM,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       TARAG TYPE VEKP-TARAG,&lt;/P&gt;&lt;P&gt;       NTGEW TYPE VEKP-NTGEW,&lt;/P&gt;&lt;P&gt;       BRGEW TYPE VEKP-BRGEW,&lt;/P&gt;&lt;P&gt;       MEABM TYPE VEKP-MEABM,&lt;/P&gt;&lt;P&gt;       BREIT TYPE VEKP-BREIT,&lt;/P&gt;&lt;P&gt;       HOEHE TYPE VEKP-HOEHE,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ANW_STATUS TYPE VEKP-ANW_STATUS,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       MATNR TYPE VEPO-MATNR,&lt;/P&gt;&lt;P&gt;       vEGR1 TYPE VEKP-VEGR1,&lt;/P&gt;&lt;P&gt;       VEGR2 TYPE VEKP-VEGR2,&lt;/P&gt;&lt;P&gt;       VSTEL TYPE VEKP-VSTEL,&lt;/P&gt;&lt;P&gt;       WERKS TYPE VEKP-WERKS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     END OF it_z75580dep.&lt;/P&gt;&lt;P&gt;*FIELDCATALOG ( SAME FIELDCATALOG FOR BOTH HEADER AND LINE ITEMS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:it_fieldcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:ct_fcat TYPE slis_t_fieldcat_alv .&lt;/P&gt;&lt;P&gt;DATA:fieldcatalog TYPE slis_t_fieldcat_alv with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:l_repid TYPE sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:g_tabname_header TYPE slis_tabname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     g_tabname_item TYPE slis_tabname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     gs_keyinfo TYPE slis_keyinfo_alv. " KEYINFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS : s_o TYPE z75580emp-empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block gen with frame.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_amount type i default 30.&lt;/P&gt;&lt;P&gt;selection-screen end of block gen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&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;AT SELECTION-SCREEN                                                  *&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;  case sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;    when 'PB01'.&lt;/P&gt;&lt;P&gt;      call screen 1001 starting at 1 1 ending at 80 20.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER DATA INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;    select  exidv&lt;/P&gt;&lt;P&gt;    brgew meabm&lt;/P&gt;&lt;P&gt;           vegr1 erlkz vhilm erdat aenam&lt;/P&gt;&lt;P&gt;                into corresponding fields of table it_z75580emp from vekp&lt;/P&gt;&lt;P&gt;                up to p_amount rows.&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; SELECT empno&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        empname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        deptno&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        location&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        INTO TABLE it_z75580emp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FROM z75580emp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WHERE empno = s_empno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF NOT it_z75580dep[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select&lt;/P&gt;&lt;P&gt;   exidv&lt;/P&gt;&lt;P&gt;    TARAG NTgew BRGEW meabm  BREIT HOEHE VEGR1 VEGR2 VSTEL weRKS&lt;/P&gt;&lt;P&gt;                       from&lt;/P&gt;&lt;P&gt;                      vekp into corresponding fields of table&lt;/P&gt;&lt;P&gt;                       it_z75580dep&lt;/P&gt;&lt;P&gt;                       up to p_amount rows&lt;/P&gt;&lt;P&gt;                       where&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      exidv eq &amp;lt;ls_master&amp;gt;-exidv and&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                       brgew eq it_z75580emp-brgew&lt;/P&gt;&lt;P&gt;                       and vegr1 eq it_z75580emp-vegr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SELECT deptname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          INTO TABLE it_z75580dep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          FROM z75580dep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          FOR ALL ENTRIES IN it_z75580emp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          WHERE deptno = it_z75580emp-deptno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&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; l_repid = sy-repid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD CATALOG FOR HEADER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_program_name         = l_repid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_internal_tabname     = 'IT_Z75580EMP'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_inclname             = l_repid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_bypassing_buffer     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_buffer_active        = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ct_fieldcat            = it_fieldcat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     inconsistent_interface = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     program_error          = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS                 = 3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data: ls_fcat type slis_fieldcat_alv,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       l_char(3) type c.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'EXIDV'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VGBEL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_L   = 'SALES ORDER'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'LIPS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BRGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WEIGHT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MEABM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'DIMENSION'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'IPPC NR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERLKZ'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'STATUS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VSTAT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PRINT STATUS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VSTAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VHILM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PACKING MATERIAL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERDAT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'CREATED FROM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'AENAM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'LAST CHANGE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VBELN'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'DELIVERY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 11.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ERNAM'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'CREATED BY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 12.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580EMP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&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;FIELD CATALOG FOR ITEMS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_program_name         = l_repid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_internal_tabname     = 'IT_Z75580DEP'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_inclname             = l_repid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_bypassing_buffer     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_buffer_active        = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ct_fieldcat            = it_fieldcat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     inconsistent_interface = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     program_error          = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS                 = 3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&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;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&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;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname   = 'EXIDV'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; fieldcatalog-fieldname   = 'TARAG'.           "Field name in itab&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l  = 'HU-NR'.  "Column text&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.  "Column position&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 05.                "Column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'NTGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_L   = 'WEIGHT HU'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BRGEW'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WEIGHT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'LAENG'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'LENGTH'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'BREIT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'WIDTH'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'HOEHE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HEIGHT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HU GR1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VEGR2'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'HU GR2'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MATNR'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'MAT NO'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEPO'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'VSTEL'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'SHIPPING'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'WERKS'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'PLANT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 11.&lt;/P&gt;&lt;P&gt;   fieldcatalog-tabname     = 'IT_Z75580DEP'."'VEKP'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO ct_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;PASSING THE FOREIGN KEY RELATIONSHIP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_keyinfo-header01 = 'EXIDV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_keyinfo-item01 = 'EXIDV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_tabname_header = 'IT_Z75580EMP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_tabname_item = 'IT_Z75580DEP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = l_repid&lt;/P&gt;&lt;P&gt;      it_fieldcat        = ct_fcat&lt;/P&gt;&lt;P&gt;      i_tabname_header   = g_tabname_header&lt;/P&gt;&lt;P&gt;      i_tabname_item     = g_tabname_item&lt;/P&gt;&lt;P&gt;      is_keyinfo         = gs_keyinfo&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab_header    = it_z75580emp&lt;/P&gt;&lt;P&gt;      t_outtab_item      = it_z75580dep&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error      = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&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;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 13:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663093#M1097019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663094#M1097020</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; In this new program there are 2 small problems which i can see in calling REUSE_ALV_HIERSEQ_LIST_DISPLAY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)This line is commented(i guess) and then you used l_repid in call function. just uncomment it&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
l_repid = sy-repid. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Directly pass the table names like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
i_tabname_header =  'IT_Z75580EMP'   "Should be in CAPS
i_tabname_item = 'IT_Z75580DEP'   "Should be in CAPS
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to correct them. Atleast the error may be different &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 04:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663094#M1097020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T04:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: short dump during select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663095#M1097021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the modified code.&lt;/P&gt;&lt;P&gt;The error is coming from the keyfields you mentioned . there should be a common field for both thte tables then only you can show the hierarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS : SLIS.

TABLES : VEKP,SSCRFIELDS.

DATA:BEGIN OF IT_Z75580EMP OCCURS 0,
    EXIDV LIKE VEKP-EXIDV,
    VGBEL LIKE LIPS-VGBEL,
    BRGEW  LIKE VEKP-BRGEW,
    MEABM  LIKE VEKP-MEABM,
    VEGR1  LIKE VEKP-VEGR1,
    ERLKZ  LIKE VEKP-ERLKZ,
    VSTAT  LIKE NAST-VSTAT,
    VHILM  LIKE VEKP-VHILM,
    ERDAT  LIKE VEKP-ERDAT,
    AENAM  LIKE VEKP-AENAM,
    VBELN  LIKE VEKP-VBELN_GEN,
    ERNAM  LIKE VEKP-ERNAM,
END OF IT_Z75580EMP.


DATA:BEGIN OF IT_Z75580DEP OCCURS 0,
    EXIDV  LIKE VEKP-EXIDV,
    VENUM  LIKE VEKP-VENUM,
    TARAG  LIKE VEKP-TARAG,
    NTGEW  LIKE VEKP-NTGEW,
    BRGEW  LIKE VEKP-BRGEW,
    MEABM  LIKE VEKP-MEABM,
    BREIT  LIKE VEKP-BREIT,
    HOEHE  LIKE VEKP-HOEHE,
    ANW_STATUS  LIKE VEKP-STATUS,
    MATNR  LIKE VEPO-MATNR,
    VEGR1  LIKE VEKP-VEGR1,
    VEGR2  LIKE VEKP-VEGR2,
    VSTEL  LIKE VEKP-VSTEL,
    WERKS  LIKE VEKP-WERKS,

END OF IT_Z75580DEP.

DATA:IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA:CT_FCAT TYPE SLIS_T_FIELDCAT_ALV .
DATA:FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
DATA:L_REPID TYPE SY-REPID.


DATA:G_TABNAME_HEADER TYPE SLIS_TABNAME,
G_TABNAME_ITEM TYPE SLIS_TABNAME,
GS_KEYINFO TYPE SLIS_KEYINFO_ALV. " KEYINFO




SELECTION-SCREEN BEGIN OF BLOCK GEN WITH FRAME.
      PARAMETERS:
      P_AMOUNT TYPE I DEFAULT 30.
SELECTION-SCREEN END OF BLOCK GEN.

AT SELECTION-SCREEN.

  CASE SSCRFIELDS-UCOMM.
    WHEN 'PB01'.
      CALL SCREEN 1001 STARTING AT 1 1 ENDING AT 80 20.
  ENDCASE.

START-OF-SELECTION.
  SELECT EXIDV
  BRGEW MEABM
  VEGR1 ERLKZ VHILM ERDAT AENAM
  INTO CORRESPONDING FIELDS OF TABLE IT_Z75580EMP FROM VEKP
  UP TO P_AMOUNT ROWS.
  IF NOT IT_Z75580EMP[] IS INITIAL.
    SELECT
    EXIDV
    TARAG NTGEW BRGEW MEABM BREIT HOEHE VEGR1 VEGR2 VSTEL WERKS
    FROM
    VEKP INTO CORRESPONDING FIELDS OF TABLE
    IT_Z75580DEP
    UP TO P_AMOUNT ROWS
    WHERE
    BRGEW EQ IT_Z75580EMP-BRGEW
    AND VEGR1 EQ IT_Z75580EMP-VEGR1.
    L_REPID = SY-REPID.
*field catalog for header
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        I_PROGRAM_NAME         = L_REPID
        I_INTERNAL_TABNAME     = 'IT_Z75580EMP'
        I_INCLNAME             = L_REPID
      CHANGING
        CT_FIELDCAT            = IT_FIELDCAT
      EXCEPTIONS
        INCONSISTENT_INTERFACE = 1
        PROGRAM_ERROR          = 2
        OTHERS                 = 3.
    DATA:L_CHAR(3) TYPE C.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        I_PROGRAM_NAME         = L_REPID
        I_INTERNAL_TABNAME     = 'IT_Z75580DEP'
        I_INCLNAME             = L_REPID
        I_BYPASSING_BUFFER     = 'X'
        I_BUFFER_ACTIVE        = ''
      CHANGING
        CT_FIELDCAT            = IT_FIELDCAT
      EXCEPTIONS
        INCONSISTENT_INTERFACE = 1
        PROGRAM_ERROR          = 2
        OTHERS                 = 3.
    IF SY-SUBRC NE 0.
    ENDIF.

*  passing the foreign key relationship
    GS_KEYINFO-HEADER01 = 'EXIDV'.
    GS_KEYINFO-ITEM01 = 'EXIDV'.
    G_TABNAME_HEADER = 'IT_Z75580EMP'.
    G_TABNAME_ITEM = 'IT_Z75580DEP'.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM = L_REPID
        IT_FIELDCAT        = IT_FIELDCAT
        I_TABNAME_HEADER   = G_TABNAME_HEADER
        I_TABNAME_ITEM     = G_TABNAME_ITEM
        IS_KEYINFO         = GS_KEYINFO
      TABLES
        T_OUTTAB_HEADER    = IT_Z75580EMP
        T_OUTTAB_ITEM      = IT_Z75580DEP
      EXCEPTIONS
        PROGRAM_ERROR      = 1
        OTHERS             = 2.

    IF SY-SUBRC NE 0.

    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 08:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-during-select-statement/m-p/4663095#M1097021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T08:01:35Z</dc:date>
    </item>
  </channel>
</rss>

