<?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 in alv fieldcat function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817211#M658899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx the problem is nw resloved .. i had to change the i_program_name from sy-repid to the actual program name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 07:28:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T07:28:36Z</dc:date>
    <item>
      <title>problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817202#M658890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of it_mara occurs 100,&lt;/P&gt;&lt;P&gt;         matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;         ernam LIKE mara-ernam,&lt;/P&gt;&lt;P&gt;         ersda LIKE mara-ersda,&lt;/P&gt;&lt;P&gt;         mtart LIKE mara-mtart,&lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;i am using the above mentioned int tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following function is returning an error which states that ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The ABAP program lines are wider than the internal table."&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;  i_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     I_PROGRAM_NAME               = i_repid&lt;/P&gt;&lt;P&gt;     I_INTERNAL_TABNAME           = 'IT_MARA'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_STRUCTURE_NAME             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CLIENT_NEVER_DISPLAY       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   I_INCLNAME                   = i_repid&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;    CHANGING&lt;/P&gt;&lt;P&gt;      CT_FIELDCAT                  = int_fcat&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;P&gt;    PROGRAM_ERROR                = 2&lt;/P&gt;&lt;P&gt;     OTHERS                       = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest how this problem can be resolved ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 06:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817202#M658890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T06:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817203#M658891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can u provide me the select staement which is filling the internal table IT_MARA.&lt;/P&gt;&lt;P&gt;as wellas the Field cataolg u cretaed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rvert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 06:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817203#M658891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T06:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817204#M658892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no problem with your code provided itab definition is in the main source of the program, so how do you define int_fcat ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  TYPE-POOLS : slis.
  DATA int_fcat TYPE slis_t_fieldcat_alv.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 06:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817204#M658892</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-20T06:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817205#M658893</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;Try commenting I_PROGRAM_NAME = i_repid and pass your internal table to I_STRUCTURE_NAME and comment I_INCLNAME .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide your declaration of fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sriram Ponna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817205#M658893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817206#M658894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use the function module  LVC_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;here for the exporting parameter i_structure_name , you should pass the 'MARA'  and from the changing table (field catalog table) int_fcat, you should choose the required fields you want to display.&lt;/P&gt;&lt;P&gt;here is the example for it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_structure_name       = 'CNVMBTTABLES'&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            ct_fieldcat            = p_lt_fct&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;            program_error          = 2&lt;/P&gt;&lt;P&gt;            OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e369(cnv_mbt_46).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT p_lt_fct INTO ls_fct.&lt;/P&gt;&lt;P&gt;    CASE ls_fct-fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'TABNAME'.&lt;/P&gt;&lt;P&gt;        ls_fct-edit      = 'X'.&lt;/P&gt;&lt;P&gt;        ls_fct-key       = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY p_lt_fct FROM ls_fct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u understood this, if u have any doubts revert back to me&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasant&lt;/P&gt;&lt;P&gt;*reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817206#M658894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817207#M658895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naveen, &lt;/P&gt;&lt;P&gt;plz find the req. statements :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: int_fcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr ernam ersda mtart into table it_mara from marav where matnr in matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- where matnr value is coming from the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817207#M658895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817208#M658896</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;see this small program so that you can understand very well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_TEST_ALV_MERGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables : Mara,makt.&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: FEILDCAT type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       MATNR like mara-matnr,&lt;/P&gt;&lt;P&gt;       ERSDA like mara-ersda,&lt;/P&gt;&lt;P&gt;       PSTAT like mara-pstat,&lt;/P&gt;&lt;P&gt;       MTART like mara-mtart,&lt;/P&gt;&lt;P&gt;       MAKTx like makt-maktx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: I_REPID like sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_REPID = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into corresponding fields of itab.&lt;/P&gt;&lt;P&gt;select * from makt into corresponding fields of itab where matnr =&lt;/P&gt;&lt;P&gt;itab-matnr.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_PROGRAM_NAME               = I_REPID&lt;/P&gt;&lt;P&gt;   I_INTERNAL_TABNAME           = 'ITAB'&lt;/P&gt;&lt;P&gt;   I_INCLNAME                   = I_REPID&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    CT_FIELDCAT                  = FEILDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   IT_FIELDCAT                       = FEILDCAT&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                          = IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817208#M658896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817209#M658897</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 can check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="561027"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure that your program line size should be less than 72 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sriram Ponna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817209#M658897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817210#M658898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ritika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced same problem,...what you have to do is,  check coding length &amp;gt;72 and adjust according whole program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is to aviod using FM 'REUSE_ALV_FIELDCATALOG_MERGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if your not getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Brunda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817210#M658898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817211#M658899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx the problem is nw resloved .. i had to change the i_program_name from sy-repid to the actual program name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817211#M658899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv fieldcat function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817212#M658900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can u just modify mara to marav, just its a suggetsion and not sure whether its really gonna work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ---&lt;/P&gt;&lt;P&gt;matnr LIKE marav-matnr,&lt;/P&gt;&lt;P&gt;ernam LIKE marav-ernam,&lt;/P&gt;&lt;P&gt;ersda LIKE marav-ersda,&lt;/P&gt;&lt;P&gt;mtart LIKE marav-mtart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover can u provide how u defined fieldcatalog.&lt;/P&gt;&lt;P&gt;ex: col_pos&lt;/P&gt;&lt;P&gt;    field_name&lt;/P&gt;&lt;P&gt;  sel_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revrt back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-fieldcat-function/m-p/2817212#M658900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:33:19Z</dc:date>
    </item>
  </channel>
</rss>

