<?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: Help need on ALV Report Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594019#M594047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  &lt;/P&gt;&lt;P&gt;this code is working fine i tested ... if u r getting this eroor try to change the declaration of the internal table and please check once.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maheedhar.t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 06:41:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T06:41:59Z</dc:date>
    <item>
      <title>Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594016#M594044</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;im facing problem in the following code....it shows 'No records found' (as same as my coding generated)whenever i give wrong vendor no:(lifnr), but if i gives the correct one(as in table lfa1)...it shows Runtime error as &amp;lt;b&amp;gt;"the occupied line length in the program text must not exceed the width of the internal table"&amp;lt;/b&amp;gt;..&lt;/P&gt;&lt;P&gt;pls verify...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just go thru my code and revert me the feedback of what i did wrong and pls i dont want any example codes from u guys since i've seen so much and couldnt solve it with that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u understand......what i need&lt;/P&gt;&lt;P&gt;Rewards based on the above reuirements....only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************&lt;STRONG&gt;CODING&lt;/STRONG&gt;***********************************************&lt;/P&gt;&lt;P&gt;REPORT ZALV_MERGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF itab OCCURS 100,&lt;/P&gt;&lt;P&gt;lifnr LIKE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;land1 LIKE lfa1-land1,&lt;/P&gt;&lt;P&gt;name1 LIKE lfa1-name1,&lt;/P&gt;&lt;P&gt;ort01 LIKE lfa1-ort01,&lt;/P&gt;&lt;P&gt;regio LIKE lfa1-regio,&lt;/P&gt;&lt;P&gt;sortl LIKE lfa1-sortl,&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;      i_tabix like sy-tabix.&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;P&gt;DATA: fcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: LIFNR FOR LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE itab WHERE lifnr IN LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_tabix.&lt;/P&gt;&lt;P&gt;describe table itab lines i_tabix.&lt;/P&gt;&lt;P&gt;if i_tabix lt 1.&lt;/P&gt;&lt;P&gt;write:/ 'No materials found'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&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;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;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                  = 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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_CALLBACK_PROGRAM             = i_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;/UL&gt;&lt;P&gt;   I_STRUCTURE_NAME               = 'ITAB'&lt;/P&gt;&lt;UL&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                    = fcat&lt;/P&gt;&lt;P&gt;   I_SAVE                         = 'A'&lt;/P&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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594016#M594044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594017#M594045</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;There is no problem in your coding it is working fine ok. Do one thing change your internal table declaration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594017#M594045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594018#M594046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove/comment this line  I_STRUCTURE_NAME = 'ITAB' , while calling FM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594018#M594046</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-07-24T06:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594019#M594047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  &lt;/P&gt;&lt;P&gt;this code is working fine i tested ... if u r getting this eroor try to change the declaration of the internal table and please check once.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maheedhar.t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594019#M594047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594020#M594048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy Paste the below code, the errors are corrected....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF itab OCCURS 100,&lt;/P&gt;&lt;P&gt;lifnr LIKE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;land1 LIKE lfa1-land1,&lt;/P&gt;&lt;P&gt;name1 LIKE lfa1-name1,&lt;/P&gt;&lt;P&gt;ort01 LIKE lfa1-ort01,&lt;/P&gt;&lt;P&gt;regio LIKE lfa1-regio,&lt;/P&gt;&lt;P&gt;sortl LIKE lfa1-sortl,&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;i_tabix like sy-tabix.&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;P&gt;DATA: fcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: LIFNR FOR LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE itab WHERE lifnr&lt;/P&gt;&lt;P&gt;IN LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_tabix.&lt;/P&gt;&lt;P&gt;describe table itab lines i_tabix.&lt;/P&gt;&lt;P&gt;if i_tabix lt 1.&lt;/P&gt;&lt;P&gt;write:/ 'No materials found'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&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;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;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 = 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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = i_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;/UL&gt;&lt;P&gt;*I_STRUCTURE_NAME = 'ITAB'&lt;/P&gt;&lt;UL&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 = fcat&lt;/P&gt;&lt;P&gt;I_SAVE = 'A'&lt;/P&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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594020#M594048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594021#M594049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this error is coming due to fm 'REUSE_ALV_FIELDCATALOG_MERGE' here it is reading the report. So check any of your line width is more than 72 or not. Just reduce the length of each line(in your code) below 72. it will work. even for commented lines also reduce the length less than 72.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594021#M594049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594022#M594050</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;No way, im facing the same problem again here and though it didnt work after i've changed the internal table decalration.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply me the clear one....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594022#M594050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T06:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594023#M594051</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;do like below.this it_structure we will in this example case&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TABLES:MARA.&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO TABLE ITAB UP TO 25 ROWS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_CALLBACK_PROGRAM                = SY-REPID&lt;/P&gt;&lt;P&gt;   I_STRUCTURE_NAME                  = 'MARA'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                       = ITAB.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur program&lt;/P&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;TABLES:lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF itab OCCURS 100,&lt;/P&gt;&lt;P&gt;lifnr LIKE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;land1 LIKE lfa1-land1,&lt;/P&gt;&lt;P&gt;name1 LIKE lfa1-name1,&lt;/P&gt;&lt;P&gt;ort01 LIKE lfa1-ort01,&lt;/P&gt;&lt;P&gt;regio LIKE lfa1-regio,&lt;/P&gt;&lt;P&gt;sortl LIKE lfa1-sortl,&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;i_tabix like sy-tabix.&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;P&gt;DATA: fcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: LIFNR FOR LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;  TABLE itab WHERE lifnr IN LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_tabix.&lt;/P&gt;&lt;P&gt;describe table itab lines i_tabix.&lt;/P&gt;&lt;P&gt;if i_tabix lt 1.&lt;/P&gt;&lt;P&gt;write:/ 'No materials found'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&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;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                  = fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = i_repid&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = fcat&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*I_STRUCTURE_NAME = 'ITAB'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;I_SAVE = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594023#M594051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594024#M594052</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; think inthis program in the function module REUSE_ALV_FIELDCATALOG_MERGE &lt;/P&gt;&lt;P&gt;in exporting parameter you are using --&amp;gt;&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME = &amp;lt;itab_name&amp;gt;&lt;/P&gt;&lt;P&gt;this &amp;lt;itab_name&amp;gt; is not like any physical structure .So make a structure through SE11 like &amp;lt;itab_name&amp;gt;.&lt;/P&gt;&lt;P&gt;u have to create a structure in SE11 with the fields, and then pass that structure into the REUSE_ALV_FIELDCATALOG_MERGE , in the parameter&lt;/P&gt;&lt;P&gt;I_internal_tabname = ' structure name '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even though u create a structure, u need to pass it to the table parameter.&lt;/P&gt;&lt;P&gt;then it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise manually build the fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the following code as an example.&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;DATA : l_pos TYPE i VALUE 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ist_fieldcat-fieldname = 'POSID'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-tabname   = 'IT_FINAL'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-outputlen = 24.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-col_pos   = l_pos.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ist_fieldcat-ddictxt = 'L'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ist_fieldcat-key = 'X'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-seltext_l = 'Appropriation Request Number'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  APPEND ist_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ist_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-fieldname = 'TXT04'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-tabname   = 'IT_FINAL'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-outputlen = 4.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-col_pos   = l_pos.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-ddictxt = 'L'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ist_fieldcat-key = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ist_fieldcat-seltext_l = 'Status'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-EMPHASIZE = 'C400'.&lt;/P&gt;&lt;P&gt;  APPEND ist_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ist_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-fieldname = 'UDATE'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-tabname   = 'IT_FINAL'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-outputlen = 8.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-col_pos   = l_pos.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-ddictxt = 'L'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-key = 'X'.&lt;/P&gt;&lt;P&gt;  ist_fieldcat-seltext_l = 'Status Date'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IST_FIELDCAT-EMPHASIZE = 'C600'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND ist_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ist_fieldcat.&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;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Reward point if find helpful&lt;/P&gt;&lt;P&gt;Debjani&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594024#M594052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594025#M594053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry.....Bharat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the one u said,i did it already and its working fine.....&lt;/P&gt;&lt;P&gt;but i want to do it in a structure defined datatype......if u can,pls revert me so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye n thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594025#M594053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594026#M594054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the FM - REUSE_FIELDCATALOG_MERGE, you can use only a structure/ table existing in the data dictionary. &lt;/P&gt;&lt;P&gt;You cannot use the name of the structure/ table created during RUNTIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So create a ZStructure in SE11 and then use that for structure in the FM. It will work. I had same problem some time ago and after creating a structure in data dictionary, the issue was resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if answer is informatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594026#M594054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594027#M594055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RAM,&lt;/P&gt;&lt;P&gt;Sorry for the late reply.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll do it like what u said and back to reward u if it goes well....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait for my points...sorry&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594027#M594055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help need on ALV Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594028#M594056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to resolve the issue with ALV Field catalog using the Zstructure?&lt;/P&gt;&lt;P&gt;Just curious about the output &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need-on-alv-report-program/m-p/2594028#M594056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:31:26Z</dc:date>
    </item>
  </channel>
</rss>

