<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017080#M713081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Atish , I think you are at the right point of the fieldcat...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the fileds populated in that ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         0 |         1 |EBELN                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         2 |EBELP                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         4 |MATNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         5 |MAKTX                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         6 |GERNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         7 |EQUNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;_______________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that one field is missing in it ....please see the definition of the iternal table output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF gt_output OCCURS 0,&lt;/P&gt;&lt;P&gt;       ebeln TYPE ebeln,&lt;/P&gt;&lt;P&gt;       ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;       zucode TYPE zitp01-zucode,&lt;/P&gt;&lt;P&gt;       matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;       maktx TYPE maktx,&lt;/P&gt;&lt;P&gt;       gernr TYPE gernr,&lt;/P&gt;&lt;P&gt;       equnr TYPE equnr,&lt;/P&gt;&lt;P&gt;       END OF gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any correction I need to make in this???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 01:44:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-12T01:44:43Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017076#M713077</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 am just learning ALV reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table and I have an issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the output but the only problem is ...I am not getting the heading(field names ) for the output .&lt;/P&gt;&lt;P&gt;Please review my code and let me know if there is anything else I need to add in it..&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;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            I_PROGRAM_NAME     = G_REPID&lt;/P&gt;&lt;P&gt;            I_INTERNAL_TABNAME = 'GT_OUTPUT'&lt;/P&gt;&lt;P&gt;            I_INCLNAME         = G_repid&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            CT_FIELDCAT        = GT_FIELDCAT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INCONSISTENT&lt;/P&gt;&lt;P&gt;            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;  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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               IS_LAYOUT               = GS_LAYOUT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               I_SAVE                  = G_SAVE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               IS_VARIANT              = GS_VARIANT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            IT_FIELDCAT             = GT_FIELDCAT[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               IT_EVENTS               = GT_EVENTS[]&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               ES_EXIT_CAUSED_BY_USER  = GS_EXIT_CAUSED_BY_USER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            T_OUTTAB                = gt_output&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 = 0.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 00:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017076#M713077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T00:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017077#M713078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a breakpoint after Fm REUSE_ALV_FIELDCATALOG_MERGE and see if the fieldname are populated in the GT_FIELDCAT. This FM create the field label if those fields are referrend from the dictionary structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017077#M713078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T01:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017078#M713079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Atish ,&lt;/P&gt;&lt;P&gt;I see that all the fields are populated in that itab of fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017078#M713079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T01:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017079#M713080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for the field reptext_ddic, or seltext_l, seltext_m or seltext_s.&lt;/P&gt;&lt;P&gt;These should be filled to show the field label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017079#M713080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T01:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017080#M713081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Atish , I think you are at the right point of the fieldcat...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the fileds populated in that ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         0 |         1 |EBELN                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         2 |EBELP                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         4 |MATNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         5 |MAKTX                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         6 |GERNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;         0 |         7 |EQUNR                         |GT_OUTPUT          &amp;lt;&lt;/P&gt;&lt;P&gt;_______________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that one field is missing in it ....please see the definition of the iternal table output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF gt_output OCCURS 0,&lt;/P&gt;&lt;P&gt;       ebeln TYPE ebeln,&lt;/P&gt;&lt;P&gt;       ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;       zucode TYPE zitp01-zucode,&lt;/P&gt;&lt;P&gt;       matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;       maktx TYPE maktx,&lt;/P&gt;&lt;P&gt;       gernr TYPE gernr,&lt;/P&gt;&lt;P&gt;       equnr TYPE equnr,&lt;/P&gt;&lt;P&gt;       END OF gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any correction I need to make in this???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017080#M713081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T01:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017081#M713082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First change the defination of &lt;/P&gt;&lt;P&gt;zucode TYPE zitp01-zucode&lt;/P&gt;&lt;P&gt;and refer it to the dataelemnet of the field ZUCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zucode TYPE &amp;lt;dataelement&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017081#M713082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T01:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017082#M713083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to define your table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF gt_output OCCURS 0,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
zucode TYPE zucode,   "&amp;lt;&amp;lt;&amp;lt;
matnr TYPE matnr,
maktx TYPE maktx,
gernr TYPE gernr,
equnr TYPE equnr,
END OF gt_output.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 01:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017082#M713083</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-12T01:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017083#M713084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh &amp;amp; Atish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF gt_output OCCURS 0,&lt;/P&gt;&lt;P&gt;       ebeln type ebeln,&lt;/P&gt;&lt;P&gt;       ebelp type ebelp,&lt;/P&gt;&lt;P&gt;       zucode type zucode,&lt;/P&gt;&lt;P&gt;       matnr type matnr,&lt;/P&gt;&lt;P&gt;       maktx type maktx,&lt;/P&gt;&lt;P&gt;       gernr type sernr,&lt;/P&gt;&lt;P&gt;       equnr type equnr,&lt;/P&gt;&lt;P&gt;       END OF gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is the same ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 02:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017083#M713084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T02:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017084#M713085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I told you the field names are poulated only if those fields are referrend from the dictionary structure. That is when you pass the structure name to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are using only 7 fields just create the fieldcatlog in the same way as below for the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fieldcat-col_pos       =  pos.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname     = 'UNIT_PRICE'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname       = 'GT_DISP_TABLE'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_fieldname = 'DMBTR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_tabname   = 'MSEG'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-reptext_ddic  = text-c01.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_l     = text-c01.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_m     = text-c01.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_s     = text-c01.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ddic_outputlen = 15.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO  gt_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;  pos = pos + 1.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-col_pos       =  pos.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname     = 'DMBTR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname       = 'GT_DISP_TABLE'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_fieldname = 'DMBTR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ref_tabname   = 'MSEG'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-reptext_ddic  = text-c04.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_l     = text-c04.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_m     = text-c04.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_s     = text-c04.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-ddic_outputlen = 15.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO  gt_fieldcat.&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;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 02:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017084#M713085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T02:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017085#M713086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 02:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3017085#M713086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T02:56:06Z</dc:date>
    </item>
  </channel>
</rss>

