<?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: Problem with ALV : fieldcatlog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306448#M504623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just noticed that fieldcatalog-fieldnames are not capitalized.&lt;/P&gt;&lt;P&gt;Please see the following sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM f_build USING:&lt;/P&gt;&lt;P&gt;    'MATNR'      text-003,    "material&lt;/P&gt;&lt;P&gt;    'MAKTX'      text-004,    "material description&lt;/P&gt;&lt;P&gt;    'INVBEG'     text-005,    "inv beg&lt;/P&gt;&lt;P&gt;    'INVAMT'     text-006,    "inv amount&lt;/P&gt;&lt;P&gt;    'SOLD'        text-007,     "sold&lt;/P&gt;&lt;P&gt;    'CANCEL'    text-008,    "cancelled&lt;/P&gt;&lt;P&gt;    'INVEND'     text-009.    "inv end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_build&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;      Build ALV fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_build USING p_fieldname&lt;/P&gt;&lt;P&gt;                   p_fieldtext LIKE wa_fieldcatalog-seltext_l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname      = p_fieldname.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_l      = p_fieldtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_build&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2007 01:33:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-16T01:33:30Z</dc:date>
    <item>
      <title>Problem with ALV : fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306446#M504621</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 am trying to use 'REUSE_ALV_GRID_DISPLAY' to display  a simple ITAB.&lt;/P&gt;&lt;P&gt;For some reason, its giving a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me to indentify the problem. Am enclosing the code over here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hrishi&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; Report  ZTEST3&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST3 line-size 400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:  EKKO, LFA1, MAKT, EKET, EKPO, cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data Declaration&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:  BEGIN OF FINAL,&lt;/P&gt;&lt;P&gt;	 ebeln type ekko-ebeln,&lt;/P&gt;&lt;P&gt;        BEDAT type ekko-bedat,&lt;/P&gt;&lt;P&gt;        lifnr type ekko-lifnr,&lt;/P&gt;&lt;P&gt;        ernam type ekko-ernam,&lt;/P&gt;&lt;P&gt;        name1 type lfa1-name1,&lt;/P&gt;&lt;P&gt;        matnr type ekpo-matnr,&lt;/P&gt;&lt;P&gt;        eindt type eket-eindt,&lt;/P&gt;&lt;P&gt;        MAKTX type MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;        MBLNR type MSEG-MBLNR,&lt;/P&gt;&lt;P&gt;        eldat type eket-eldat,&lt;/P&gt;&lt;P&gt;        end of FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  ITAB TYPE STANDARD TABLE OF FINAL INITIAL SIZE 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;all ALV declarations&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;type-pools: slis.                                 "ALV Declarations&lt;/P&gt;&lt;P&gt;&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;        G_REPID             TYPE SY-REPID,&lt;/P&gt;&lt;P&gt;        GS_PRINT            TYPE SLIS_PRINT_ALV,&lt;/P&gt;&lt;P&gt;        GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,&lt;/P&gt;&lt;P&gt;        GT_EVENTS           TYPE SLIS_T_EVENT,&lt;/P&gt;&lt;P&gt;        GT_SORT             TYPE SLIS_T_SORTINFO_ALV,&lt;/P&gt;&lt;P&gt;        GS_LAYOUT           TYPE SLIS_LAYOUT_ALV,&lt;/P&gt;&lt;P&gt;        COL_POS TYPE I.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;----------------&lt;DEL&gt;-SELECTION SCREEN&lt;/DEL&gt;----------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select-options podate for EKKO-bedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;*................... GET DATA..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EKKO~EBELN&lt;/P&gt;&lt;P&gt;       EKKO~BEDAT&lt;/P&gt;&lt;P&gt;       EKKO~LIFNR&lt;/P&gt;&lt;P&gt;       EKKO~ERNAM&lt;/P&gt;&lt;P&gt;       LFA1~NAME1&lt;/P&gt;&lt;P&gt;       MAKT~MATNR&lt;/P&gt;&lt;P&gt;       EKET~EINDT&lt;/P&gt;&lt;P&gt;       MAKT~MAKTX&lt;/P&gt;&lt;P&gt;       MSEG~MBLNR&lt;/P&gt;&lt;P&gt;       eket~eldat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF ITAB&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;( EKKO INNER JOIN LFA1&lt;/P&gt;&lt;P&gt;ON EKKO~LIFNR = LFA1~LIFNR&lt;/P&gt;&lt;P&gt;INNER JOIN MSEG&lt;/P&gt;&lt;P&gt;ON EKKO~EBELN = MSEG~EBELN&lt;/P&gt;&lt;P&gt;INNER JOIN MKPF&lt;/P&gt;&lt;P&gt;ON MSEG~MBLNR = MKPF~MBLNR&lt;/P&gt;&lt;P&gt;INNER JOIN EKPO&lt;/P&gt;&lt;P&gt;ON EKKO~EBELN = EKPO~EBELN&lt;/P&gt;&lt;P&gt;INNER JOIN MAKT&lt;/P&gt;&lt;P&gt;ON EKPO~MATNR = MAKT~MATNR&lt;/P&gt;&lt;P&gt;INNER JOIN EKET&lt;/P&gt;&lt;P&gt;ON EKKO~EBELN = EKET~EBELN&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;WHERE EKKO~BEDAT IN PODATE  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ITAB. CLEAR ITAB.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*LOOP AT ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;at first.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     write: / 'VENDOR NO' color 6 INVERSE,' VENDOR NAME' COLOR 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*INVERSE,48'MATERIAL NO' COLOR 6 INVERSE,67'MATERIAL DESCRIPTION' COLOR 6 INVERSE,108'PO.NUMBER' COLOR 6 INVERSE,119'DATE' COLOR 6 INVERSE,129'CREATED BY' COLOR 6 INVERSE,143'G R NO' COLOR 6 INVERSE, 154'GR DATE' COLOR 6 INVERSE,&lt;/P&gt;&lt;P&gt;*167'DELIVERY DATE PROMISED' COLOR 6 INVERSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ULINE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*WRITE:/ ITAB-LIFNR,ITAB-NAME1,ITAB-MATNR,ITAB-MAKTX,ITAB-EBELN,ITAB-BEDAT,ITAB-ERNAM,ITAB-MBLNR, ITAB-ELDAT, ITAB-EINDT, itab-udate.&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;*&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;CDHDR&lt;SUB&gt;OBJECTCLAS AND CDHDR&lt;/SUB&gt;TCODE EQ 'ME28'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*SELECT * FROM CDHDR WHERE OBJECTid = ITAB-EBELN AND .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*ITAB-UDATE = CDHDR-UDATE.&lt;/P&gt;&lt;P&gt;*APPEND ITAB. CLEAR ITAB.&lt;/P&gt;&lt;P&gt;*ENDSELECT.&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;**----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'ebeln'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'po Number'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'bedat'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'po date'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'lifnr'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'vendor no'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  fieldcatalog-emphasize   = 'X'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-key         = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-do_sum      = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcatalog-no_zero     = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&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_m   = 'created by'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'name1'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'vendor name'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;   fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&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_m   = 'material number'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; fieldcatalog-fieldname   = 'eindt'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'date promised'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&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   = 'maktx'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'material desc'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 7.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&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   = 'mblnr'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'GR no'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 8.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'eldat'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'gr date'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 9.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&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;HR originaltext="-------------------------------------------------------------------------" /&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      = g_repid&lt;/P&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;             is_layout               = GS_layout&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;           is_variant              = z_template&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = itab&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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 01:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306446#M504621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T01:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV : fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306447#M504622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hrishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the field names within single quotes to CAPITAL Letters and it should solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'ebeln'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'EBELN'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Change &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'bedat'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname = 'BEDAT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on for all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if I can be of further assistance on this.&lt;/P&gt;&lt;P&gt;Do reward points if helpful and mark this question as 'Answered'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 01:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306447#M504622</guid>
      <dc:creator>former_member214288</dc:creator>
      <dc:date>2007-05-16T01:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV : fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306448#M504623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just noticed that fieldcatalog-fieldnames are not capitalized.&lt;/P&gt;&lt;P&gt;Please see the following sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM f_build USING:&lt;/P&gt;&lt;P&gt;    'MATNR'      text-003,    "material&lt;/P&gt;&lt;P&gt;    'MAKTX'      text-004,    "material description&lt;/P&gt;&lt;P&gt;    'INVBEG'     text-005,    "inv beg&lt;/P&gt;&lt;P&gt;    'INVAMT'     text-006,    "inv amount&lt;/P&gt;&lt;P&gt;    'SOLD'        text-007,     "sold&lt;/P&gt;&lt;P&gt;    'CANCEL'    text-008,    "cancelled&lt;/P&gt;&lt;P&gt;    'INVEND'     text-009.    "inv end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_build&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;      Build ALV fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_build USING p_fieldname&lt;/P&gt;&lt;P&gt;                   p_fieldtext LIKE wa_fieldcatalog-seltext_l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcatalog.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname      = p_fieldname.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-seltext_l      = p_fieldtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcatalog TO it_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_build&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 01:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-fieldcatlog/m-p/2306448#M504623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T01:33:30Z</dc:date>
    </item>
  </channel>
</rss>

