<?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: Why this dump(2)? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761257#M329511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      The internal table it_record has 9 fields and the field catalog has 11 records&lt;/P&gt;&lt;P&gt;      so when it tries to assign the two fields in the standard program  &lt;/P&gt;&lt;P&gt;      SAPLSLVC  it dumps as there is a mismatch in the Data types.&lt;/P&gt;&lt;P&gt;      assign component &amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;           message x000(0k)&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     the rt_data does not have a field as KOSTL  and sy-subrc fails here and dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two fields are missing from the internal table it_record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-seltext_m = 'CdC'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-col_pos = 7.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-fieldname = 'EIND'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-seltext_m = 'Data cons.prev.'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-col_pos = 8.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points iff this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Srinivas Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 11:16:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T11:16:43Z</dc:date>
    <item>
      <title>Why this dump(2)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761254#M329508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Execute this report and try to sum "menge" column...goes it in dump? Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zanalisi_oda                                                .&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tipo record da visualizzare&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF t_record,&lt;/P&gt;&lt;P&gt;   aedat LIKE ekpo-aedat,&lt;/P&gt;&lt;P&gt;   ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;   ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;   matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;   txz01 LIKE ekpo-txz01,&lt;/P&gt;&lt;P&gt;   werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;   knttp LIKE ekpo-knttp,&lt;/P&gt;&lt;P&gt;   menge LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;   meins LIKE ekpo-meins,&lt;/P&gt;&lt;P&gt;END OF t_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tabelle in questione&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES: ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tabelle interne&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: wa_record TYPE t_record,&lt;/P&gt;&lt;P&gt;      it_record TYPE STANDARD TABLE OF t_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV data declarations&lt;/P&gt;&lt;P&gt;DATA: it_fieldcatalog TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      wa_fieldcatalog LIKE LINE OF it_fieldcatalog,&lt;/P&gt;&lt;P&gt;      gd_layout TYPE slis_layout_alv,&lt;/P&gt;&lt;P&gt;      gd_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;selezioni dell'utente&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: s_aedat FOR ekpo-aedat,&lt;/P&gt;&lt;P&gt;                s_ebeln FOR ekpo-ebeln,&lt;/P&gt;&lt;P&gt;                s_matnr FOR ekpo-matnr,&lt;/P&gt;&lt;P&gt;                s_werks FOR ekpo-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: c_elikz AS CHECKBOX DEFAULT 'X'.&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;                START     OF     SELECTION                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;carico i dati richiesti&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM load_report.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stampo i dati&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;  PERFORM build_layout.&lt;/P&gt;&lt;P&gt;  PERFORM display_alv_report.&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  load_report&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;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        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 load_report .&lt;/P&gt;&lt;P&gt;  CLEAR it_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ciclo nella tabella EKPO&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;  FROM ekpo&lt;/P&gt;&lt;P&gt;  WHERE aedat IN s_aedat AND&lt;/P&gt;&lt;P&gt;        ebeln IN s_ebeln AND&lt;/P&gt;&lt;P&gt;        matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;        werks IN s_werks AND&lt;/P&gt;&lt;P&gt;        elikz EQ c_elikz AND&lt;/P&gt;&lt;P&gt;        loekz NE 'X'&lt;/P&gt;&lt;P&gt;  ORDER BY ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR wa_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_record-aedat = ekpo-aedat.&lt;/P&gt;&lt;P&gt;    wa_record-ebeln = ekpo-ebeln.&lt;/P&gt;&lt;P&gt;    wa_record-ebelp = ekpo-ebelp.&lt;/P&gt;&lt;P&gt;    wa_record-matnr = ekpo-matnr.&lt;/P&gt;&lt;P&gt;    wa_record-txz01 = ekpo-txz01.&lt;/P&gt;&lt;P&gt;    wa_record-werks = ekpo-werks.&lt;/P&gt;&lt;P&gt;    wa_record-knttp = ekpo-knttp.&lt;/P&gt;&lt;P&gt;    wa_record-menge = ekpo-menge.&lt;/P&gt;&lt;P&gt;    wa_record-meins = ekpo-meins.&lt;/P&gt;&lt;P&gt;    APPEND wa_record TO it_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " load_report&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  build_fieldcatalog&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;      Routine per la generazione dei campi della ALV GRID&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; No parameters&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 build_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'AEDAT'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Data ODA'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'EBELN'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Numero ODA'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-key         = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'EBELP'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Pos.ODA'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-key         = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'MATNR'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Materiale'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-emphasize   = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'TXZ01'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Descrizione'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'WERKS'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Mag.'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'KNTTP'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Tipo contab.'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'KOSTL'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'CdC'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'EIND'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Data cons.prev.'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname   = 'MENGE'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'Qta ord.'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_fieldcatalog-fieldname   = 'MEINS'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_m   = 'UdM'.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos     = 10.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " fill_fieldcatalog&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  build_layout&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;      Routine per il settaggio del layout della ALV GRID&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; No parameters&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 build_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_layout-no_input          = 'X'.&lt;/P&gt;&lt;P&gt;  gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-totals_text       = 'Totals'(201).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-totals_only        = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-f2code            = 'DISP'.  "Sets fcode for when double&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                        "click(press f2)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-zebra             = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-group_change_edit = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_layout-header_text       = ''.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " build_layout&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  DISPLAY_ALV_REPORT&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;      Routine per la visualizzazione della ALV GRID&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; No parameters&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 display_alv_report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_repid = sy-repid.&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      = gd_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           I_CALLBACK_TOP_OF_PAGE   = 'TOP-OF-PAGE'  "see FORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_grid_title           = outtext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            is_layout               = gd_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat             = it_fieldcatalog[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           it_special_groups       = gd_tabgroup&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           IT_EVENTS                = GT_XEVENTS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            i_save                  = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           is_variant              = z_template&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab                = it_record&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;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;ENDFORM.                    " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 10:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761254#M329508</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-12-19T10:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why this dump(2)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761255#M329509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the dump you are getting? Please send the dump statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 11:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761255#M329509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why this dump(2)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761256#M329510</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;you have to give the ref_fieldname and ref_tabname in fcat which refer to the table and fieldname for MENGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kaluvala Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 11:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761256#M329510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why this dump(2)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761257#M329511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      The internal table it_record has 9 fields and the field catalog has 11 records&lt;/P&gt;&lt;P&gt;      so when it tries to assign the two fields in the standard program  &lt;/P&gt;&lt;P&gt;      SAPLSLVC  it dumps as there is a mismatch in the Data types.&lt;/P&gt;&lt;P&gt;      assign component &amp;lt;ls_fieldcat&amp;gt;-fieldname of structure rt_data to &amp;lt;g_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;           message x000(0k)&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     the rt_data does not have a field as KOSTL  and sy-subrc fails here and dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two fields are missing from the internal table it_record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-seltext_m = 'CdC'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-col_pos = 7.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-fieldname = 'EIND'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-seltext_m = 'Data cons.prev.'.&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-col_pos = 8.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points iff this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Srinivas Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 11:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-dump-2/m-p/1761257#M329511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T11:16:43Z</dc:date>
    </item>
  </channel>
</rss>

