<?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 field catalog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820026#M1470037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please format your code?&lt;/P&gt;&lt;P&gt;It is not readable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing ang sorthing operation while passing to FM?&lt;/P&gt;&lt;P&gt;I guess becoz of sorthing  you are getting different order and you are thinking it's wrond data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 04:13:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-16T04:13:03Z</dc:date>
    <item>
      <title>problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820024#M1470035</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 'm getting correct values in the final internal table i_outtab .But whenpass this Internal table into the REUSE_ALV_GRID_DISPLAy , i'm not getting the correct value for one column . it is taking values from the preceeding column . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code shows the field catalog im populating &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f_build_table USING:&lt;/P&gt;&lt;P&gt;        c_pname1  lc_pname1_txt   c_space   c_space,&lt;/P&gt;&lt;P&gt;        c_pname2  lc_pname2_txt   c_space   c_space,&lt;/P&gt;&lt;P&gt;        c_pname3  lc_pname3_txt   c_space   c_space,&lt;/P&gt;&lt;P&gt;        c_ernam   lc_ernam_txt    c_ernam   c_vbmtv,&lt;/P&gt;&lt;P&gt;      c_pernr       lc_zvpartner          c_pernr  c_vbpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_build_table USING p_var1 p_var2 p_var3 p_var4.&lt;/P&gt;&lt;P&gt;  CONSTANTS: lc_l TYPE c VALUE 'L'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname   = p_var1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_l   = p_var2.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_m   = p_var2.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-ddictxt     = lc_l.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-no_convext  = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_var3 NE c_space.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_tabname     = p_var4 .&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_fieldname   = p_var3.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  " Start of addition HPQC 1757, USBILJ00&lt;/P&gt;&lt;P&gt;  IF p_var1 EQ c_zcst_kwert OR&lt;/P&gt;&lt;P&gt;     p_var1 EQ c_zv6d_kwert. "Set the data type&lt;/P&gt;&lt;P&gt;    wa_fieldcat-datatype = 'CURR'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-inttype = 'P'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-intlen = 13.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF p_var1 EQ c_zsmr_kbetr. "Set the data type&lt;/P&gt;&lt;P&gt;    wa_fieldcat-datatype = 'CURR'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-inttype = 'P'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-intlen = 14.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  " End of addition HPQC 1757, USBILJ00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of add USGUMR00&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p_var1 EQ c_zbacko OR&lt;/P&gt;&lt;P&gt;     p_var1 EQ c_zvoidh. "Set the data type&lt;/P&gt;&lt;P&gt;    wa_fieldcat-datatype = 'DATS'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-inttype = 'D'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-intlen = 8.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of Addition, USGUMR00&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_fieldcat.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F_BUILD_FIELD_CATALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_interface_check           = ' '&lt;/P&gt;&lt;P&gt;      i_callback_program          = lv_repid&lt;/P&gt;&lt;P&gt;      i_callback_user_command     = c_f_user_command&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set    = c_f_set_pf_status&lt;/P&gt;&lt;P&gt;      is_layout                   = wa_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat                 = i_fieldcat&lt;/P&gt;&lt;P&gt;      it_excluding                = i_excluding&lt;/P&gt;&lt;P&gt;      i_callback_html_top_of_page = 'F_HTML_TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;      i_save                      = lv_save&lt;/P&gt;&lt;P&gt;      is_variant                  = wa_variant2&lt;/P&gt;&lt;P&gt;      it_events                   = i_events&lt;/P&gt;&lt;P&gt;      it_event_exit               = i_event_exit&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                    = i_outtab&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;No required processing.&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;&lt;/P&gt;&lt;P&gt;but i'm not getting values for the last column which i have passedin to the field catalog . But i can see the correct values in the i_outtab which is my final internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some problem in the field catalog . &lt;/P&gt;&lt;P&gt;I have checked the data declarations and constant declarations . I could not figure out the bug . &lt;/P&gt;&lt;P&gt;So Can anybody help me in fixng this issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 03:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820024#M1470035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T03:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820025#M1470036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are not clearing the field catalog work area correctly. Could you try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM f_build_table USING: c_pname1 lc_pname1_txt c_space c_space, 
                             c_pname2 lc_pname2_txt c_space c_space, 
                             c_pname3 lc_pname3_txt c_space c_space, 
                             c_ernam lc_ernam_txt c_ernam c_vbmtv, 
                             c_pernr lc_zvpartner c_pernr c_vbpa. 

FORM f_build_table USING p_var1 p_var2 p_var3 p_var4. 

CONSTANTS: lc_l TYPE c VALUE 'L'. 

clear: wa_fieldcat.   "&amp;lt;=== LINE INSERTED
wa_fieldcat-fieldname = p_var1. 
wa_fieldcat-seltext_l = p_var2. 
wa_fieldcat-seltext_m = p_var2. 
wa_fieldcat-col_pos = 0. 
wa_fieldcat-ddictxt = lc_l. 
wa_fieldcat-no_convext = space. 
IF p_var3 NE c_space. 
  wa_fieldcat-ref_tabname = p_var4 . 
  wa_fieldcat-ref_fieldname = p_var3. 
ENDIF. 
" Start of addition HPQC 1757, USBILJ00 
IF p_var1 EQ c_zcst_kwert OR p_var1 EQ c_zv6d_kwert. "Set the data type 
  wa_fieldcat-datatype = 'CURR'. 
  wa_fieldcat-inttype = 'P'. 
  wa_fieldcat-intlen = 13. 
ENDIF. 
IF p_var1 EQ c_zsmr_kbetr. "Set the data type 
  wa_fieldcat-datatype = 'CURR'. 
  wa_fieldcat-inttype = 'P'. 
  wa_fieldcat-intlen = 14. 
ENDIF. " End of addition HPQC 1757, USBILJ00 

* Start of add USGUMR00 
IF p_var1 EQ c_zbacko OR p_var1 EQ c_zvoidh. "Set the data type 
  wa_fieldcat-datatype = 'DATS'. 
  wa_fieldcat-inttype = 'D'. 
  wa_fieldcat-intlen = 8. 
ENDIF. * End of Addition, USGUMR00 

APPEND wa_fieldcat TO i_fieldcat. 
* CLEAR wa_fieldcat.    "&amp;lt;=== LINE COMMENTED
ENDFORM. " F_BUILD_FIELD_CATALOG 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 
  EXPORTING i_interface_check = ' ' 
            i_callback_program = lv_repid 
            i_callback_user_command = c_f_user_command 
            i_callback_pf_status_set = c_f_set_pf_status 
            is_layout = wa_layout 
            it_fieldcat = i_fieldcat 
            it_excluding = i_excluding 
            i_callback_html_top_of_page = 'F_HTML_TOP_OF_PAGE' 
            i_save = lv_save 
               is_variant = wa_variant2 
            it_events = i_events 
            it_event_exit = i_event_exit 
  TABLES 
            t_outtab = i_outtab 
  EXCEPTIONS 
            program_error = 1 
            OTHERS = 2. 

IF sy-subrc 0. 
* No required processing.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shailesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820025#M1470036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820026#M1470037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please format your code?&lt;/P&gt;&lt;P&gt;It is not readable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing ang sorthing operation while passing to FM?&lt;/P&gt;&lt;P&gt;I guess becoz of sorthing  you are getting different order and you are thinking it's wrond data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820026#M1470037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820027#M1470038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SHAILESH &lt;/P&gt;&lt;P&gt;THANKS FOR THE REPLY. i HAVE COMMENTED AS U HAVE SAID . BUT STILL I M GETTING SAME PROBLEM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820027#M1470038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820028#M1470039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to understand your code clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE CODE LIKE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fieldcat USING:&lt;/P&gt;&lt;P&gt;'1' 'KUNNR' 'I_MARD' 'CUSTOMER NO' ,&lt;/P&gt;&lt;P&gt;'2' 'DMBTR' 'I_MARD' 'CURRENCY' ,&lt;/P&gt;&lt;P&gt;..............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fieldcat USING value(p_0029)&lt;/P&gt;&lt;P&gt;value(p_0030)&lt;/P&gt;&lt;P&gt;value(p_0031)&lt;/P&gt;&lt;P&gt;value(p_0032)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos = p_0029.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = p_0030.&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = p_0031.&lt;/P&gt;&lt;P&gt;wa_fieldcat-reptext = p_0032.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " FIELDCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BYPASSING_BUFFER                = ' '&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;/UL&gt;&lt;P&gt;   I_CALLBACK_PROGRAM                = w_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_PF_STATUS_SET          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_USER_COMMAND           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_LAYOUT                         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IT_FIELDCAT                       = i_fieldcat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCLUDING                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_SPECIAL_GROUPS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_SORT                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_FILTER                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_SEL_HIDE                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_DEFAULT                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SAVE                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_VARIANT                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EVENTS                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EVENT_EXIT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_PRINT                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_REPREP_ID                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                          = i_mard&lt;/P&gt;&lt;UL&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;  PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                            = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820028#M1470039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820029#M1470040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, if the problem is repeating, can you debug and check the contents of your field catalog table? Maybe you'll find a mismatch there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, try mentioning the field catalog table in the REUSE_ALV FM as it_fieldcatalog[] and not just it_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thirdly, try populating the field COL_POS with 1, 2, 3 etc to ensure correct column positioning. That might solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all else fails, delete the subroutine and populate the field catalog as simply as possible to avoid any confusion. I'll give you an example how I do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      CLEAR: gwa_fieldcat.
      gwa_fieldcat-col_pos = 1.
      gwa_fieldcat-fieldname = 'BUCKETNAME'. "must be in CAPS
      gwa_fieldcat-tabname = 'GT_OUTTAB'. "must be in CAPS
      gwa_fieldcat-coltext = gc_bucket.
      gwa_fieldcat-scrtext_l = gc_bucket.
      gwa_fieldcat-outputlen = 10.
      APPEND gwa_fieldcat TO gt_fieldcat.

      CLEAR: gwa_fieldcat.
      gwa_fieldcat-col_pos = 2.
      gwa_fieldcat-fieldname = 'ITEMID'.
      gwa_fieldcat-tabname = 'GT_OUTTAB'.
      gwa_fieldcat-coltext = gc_itemid.
      gwa_fieldcat-scrtext_l = gc_itemid.
      gwa_fieldcat-outputlen = 15.
      APPEND gwa_fieldcat TO gt_fieldcat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! Do let me know if you need anything else!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shailesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-catalog/m-p/6820029#M1470040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:47:13Z</dc:date>
    </item>
  </channel>
</rss>

