<?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: Dynamic ALV problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916143#M938648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please review the field catalog &lt;STRONG&gt;it_fieldcat&lt;/STRONG&gt; , you must have an problem on it (referring to the same field name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 12:45:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T12:45:09Z</dc:date>
    <item>
      <title>Dynamic ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916141#M938646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with dynamic ALV, Please see below:&lt;/P&gt;&lt;P&gt;I am passing internal table to FM as below: &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 = l_f_repid&lt;/P&gt;&lt;P&gt;            is_layout          = l_r_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat        = g_t_fieldcat&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab           = &amp;lt;dyn_table&amp;gt;&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;    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;just before execusion of the FM data in the internal table is:&lt;/P&gt;&lt;P&gt;                                                                                &amp;lt;dyn_table&amp;gt;                                                                                &lt;/P&gt;&lt;P&gt;WERKS :                         CP01                                &lt;/P&gt;&lt;P&gt;           MTART  :                        FERT                                &lt;/P&gt;&lt;P&gt;           MATNR  :                  03011782730066M                     &lt;/P&gt;&lt;P&gt;           MAKTX :    REPLACEABLE-BULB HEADLAMP           &lt;/P&gt;&lt;P&gt;           MATKL  :                        SD120                               &lt;/P&gt;&lt;P&gt;           PRDHA   :              DC00019SD120308178                  &lt;/P&gt;&lt;P&gt;           SALK3     :                           185.00                        &lt;/P&gt;&lt;P&gt;           WAERS :                         CZK                                 &lt;/P&gt;&lt;P&gt;           JAN05F :                                             0.000          &lt;/P&gt;&lt;P&gt;           FEB05F :                                           120.000          &lt;/P&gt;&lt;P&gt;           MAR05F:                                              0.000          &lt;/P&gt;&lt;P&gt;           APR05F :                                             0.000          &lt;/P&gt;&lt;P&gt;           AMMNG :                                             30.000          &lt;/P&gt;&lt;P&gt;           ADMNG  :                                             1.364                                                                                &lt;/P&gt;&lt;P&gt;but in display it is showing some other data as below:&lt;/P&gt;&lt;P&gt;          WERKS      :                    CP01                                &lt;/P&gt;&lt;P&gt;           MTART      :                    FERT                                &lt;/P&gt;&lt;P&gt;           MATNR  :                  03011782730066M                     &lt;/P&gt;&lt;P&gt;           MAKTX :    REPLACEABLE-BULB HEADLAMP           &lt;/P&gt;&lt;P&gt;           MATKL  :                        SD120                               &lt;/P&gt;&lt;P&gt;           PRDHA   :              DC00019SD120308178                  &lt;/P&gt;&lt;P&gt;           SALK3  :                              185.00                        &lt;/P&gt;&lt;P&gt;           WAERS  :                        CZK                                 &lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;JAN05F  :                         CZK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;FEB05F :                         CZK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;MAR05F :                       CZK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;APR05F                          CZK&lt;/STRONG&gt;                      AMMNG  :                         30.000          &lt;/P&gt;&lt;P&gt;          ADMNG  :                           1.364&lt;/P&gt;&lt;P&gt;                                                                                Can anybody tell me where I am doing mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916141#M938646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T12:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916142#M938647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check in your fieldcatalog&lt;/P&gt;&lt;P&gt;instead of giving fieldname as WAERS &lt;/P&gt;&lt;P&gt;JAN05F &lt;/P&gt;&lt;P&gt;FEB05F etc, you might had given the same fieldname for all of them like below.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname = 'I_FINAL1'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = 'WAERS'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_m = 'Loading Dt'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-key       = ' '.   "SUBTOTAL KEY&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;&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname = 'I_FINAL1'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = 'WAERS'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_m = 'Loading Dt'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-key       = ' '.   "SUBTOTAL KEY&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;&lt;/P&gt;&lt;P&gt;change the fieldnames&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916142#M938647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916143#M938648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please review the field catalog &lt;STRONG&gt;it_fieldcat&lt;/STRONG&gt; , you must have an problem on it (referring to the same field name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916143#M938648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916144#M938649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for immediate reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am preparing my field cat. as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xfc-fieldname = 'WAERS'.&lt;/P&gt;&lt;P&gt;  xfc-datatype  = 'CUKY'.&lt;/P&gt;&lt;P&gt;  xfc-intlen = 5.&lt;/P&gt;&lt;P&gt;  xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt;  xfc-decimals = 0.&lt;/P&gt;&lt;P&gt;  xfc-COL_POS = l_f_field_pos.&lt;/P&gt;&lt;P&gt;  APPEND xfc TO ifc.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING xfc TO l_t_fieldcat.&lt;/P&gt;&lt;P&gt;  l_t_fieldcat-fieldname = xfc-fieldname.&lt;/P&gt;&lt;P&gt;  l_t_fieldcat-seltext_s =&lt;/P&gt;&lt;P&gt;  l_t_fieldcat-seltext_m =&lt;/P&gt;&lt;P&gt;  l_t_fieldcat-seltext_l = text-014.&lt;/P&gt;&lt;P&gt;  APPEND l_t_fieldcat TO g_t_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR : l_t_fieldcat,xdetails,xfc.&lt;/P&gt;&lt;P&gt;  l_f_field_pos = l_f_field_pos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_con = 'X'.&lt;/P&gt;&lt;P&gt;    l_f_month = s_spmonc-low.&lt;/P&gt;&lt;P&gt;    l_f_char = 'c'.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE r_spmonc LINES line.&lt;/P&gt;&lt;P&gt;    DO line TIMES.&lt;/P&gt;&lt;P&gt;      PERFORM get_month USING    l_f_month&lt;/P&gt;&lt;P&gt;                                 l_f_char&lt;/P&gt;&lt;P&gt;                        CHANGING l_f_field.&lt;/P&gt;&lt;P&gt;      text-data = l_f_field .&lt;/P&gt;&lt;P&gt;      xfc-fieldname = l_f_field.&lt;/P&gt;&lt;P&gt;      xfc-datatype = 'QUAN'.&lt;/P&gt;&lt;P&gt;      xfc-intlen = 13.&lt;/P&gt;&lt;P&gt;      xfc-decimals = 3.&lt;/P&gt;&lt;P&gt;      xfc-COL_POS = l_f_field_pos.&lt;/P&gt;&lt;P&gt;      APPEND xfc TO ifc.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING xfc TO l_t_fieldcat.&lt;/P&gt;&lt;P&gt;      l_t_fieldcat-fieldname = xfc-fieldname.&lt;/P&gt;&lt;P&gt;      CONCATENATE l_f_field(5) text-005 INTO l_f_head.&lt;/P&gt;&lt;P&gt;      l_t_fieldcat-seltext_s =&lt;/P&gt;&lt;P&gt;      l_t_fieldcat-seltext_m =&lt;/P&gt;&lt;P&gt;      l_t_fieldcat-seltext_l = l_f_head.&lt;/P&gt;&lt;P&gt;      APPEND l_t_fieldcat TO g_t_fieldcat.&lt;/P&gt;&lt;P&gt;      APPEND text.&lt;/P&gt;&lt;P&gt;      CLEAR : l_t_fieldcat,xdetails, xfc.&lt;/P&gt;&lt;P&gt;      l_f_field_pos = l_f_field_pos + 1.&lt;/P&gt;&lt;P&gt;      CONCATENATE l_f_month '01' INTO l_f_date.&lt;/P&gt;&lt;P&gt;      l_f_date = l_f_date + 31.&lt;/P&gt;&lt;P&gt;      l_f_month = l_f_date(6).&lt;/P&gt;&lt;P&gt;      CLEAR: l_f_date.&lt;/P&gt;&lt;P&gt;      l_f_field_pos = l_f_field_pos + 1.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916144#M938649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916145#M938650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF p_con = 'X'.&lt;/P&gt;&lt;P&gt;l_f_month = s_spmonc-low.&lt;/P&gt;&lt;P&gt;l_f_char = 'c'.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE r_spmonc LINES line.&lt;/P&gt;&lt;P&gt;DO line TIMES.&lt;/P&gt;&lt;P&gt;PERFORM get_month USING l_f_month&lt;/P&gt;&lt;P&gt;l_f_char&lt;/P&gt;&lt;P&gt;CHANGING l_f_field.&lt;/P&gt;&lt;P&gt;text-data = l_f_field .&lt;/P&gt;&lt;P&gt;xfc-fieldname = l_f_field.&lt;/P&gt;&lt;P&gt;xfc-datatype = 'QUAN'.&lt;/P&gt;&lt;P&gt;xfc-intlen = 13.&lt;/P&gt;&lt;P&gt;xfc-decimals = 3.&lt;/P&gt;&lt;P&gt;xfc-COL_POS = l_f_field_pos.&lt;/P&gt;&lt;P&gt;APPEND xfc TO ifc.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING xfc TO l_t_fieldcat.&lt;/P&gt;&lt;P&gt;l_t_fieldcat-fieldname = xfc-fieldname.&lt;/P&gt;&lt;P&gt;CONCATENATE l_f_field(5) text-005 INTO l_f_head.&lt;/P&gt;&lt;P&gt;l_t_fieldcat-seltext_s =&lt;/P&gt;&lt;P&gt;l_t_fieldcat-seltext_m =&lt;/P&gt;&lt;P&gt;l_t_fieldcat-seltext_l = l_f_head.&lt;/P&gt;&lt;P&gt;APPEND l_t_fieldcat TO g_t_fieldcat.&lt;/P&gt;&lt;P&gt;APPEND text.&lt;/P&gt;&lt;P&gt;CLEAR : l_t_fieldcat,xdetails, xfc.&lt;/P&gt;&lt;P&gt;l_f_field_pos = l_f_field_pos + 1.&lt;/P&gt;&lt;P&gt;CONCATENATE l_f_month '01' INTO l_f_date.&lt;/P&gt;&lt;P&gt;l_f_date = l_f_date + 31.&lt;/P&gt;&lt;P&gt;l_f_month = l_f_date(6).&lt;/P&gt;&lt;P&gt;CLEAR: l_f_date.&lt;/P&gt;&lt;P&gt;l_f_field_pos = l_f_field_pos + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check in debugging when l_t_fieldcat-fieldname = xfc-fieldname..&lt;/P&gt;&lt;P&gt;what value are you getting xfc-fieldname. if you are getting JAN Check whether it is in Caps or not.&lt;/P&gt;&lt;P&gt;if not caps then convert them to caps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 13:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-problem/m-p/3916145#M938650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T13:13:56Z</dc:date>
    </item>
  </channel>
</rss>

