<?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/1387865#M188755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: ls_fieldcat type sls_alv_fieldcat,&lt;/P&gt;&lt;P&gt;lt_fieldcat type table of ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like matnr,&lt;/P&gt;&lt;P&gt;maktx like maktx,&lt;/P&gt;&lt;P&gt;mtart like mtart,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;building fieldcat&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'matnr'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'material'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'maktx'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'description'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'mtart'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'type'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2006 05:09:18 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-06-14T05:09:18Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387860#M188750</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;  I have one clarification regarding ALV.&lt;/P&gt;&lt;P&gt;I am getting ID from one table but description is getting from one BAPI function module for that ID.&lt;/P&gt;&lt;P&gt;Description is not storing in any database table.it is storing in variable.&lt;/P&gt;&lt;P&gt;In this how can I display the fileds on output screen using the function module 'REUSE_ALV_GRID_DISPLAY'.Because I need to fill the Field catalog right?.How can I go about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 13:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387860#M188750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387861#M188751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;Build the output table that contains both the ID and description text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if you have ID in an internal table itab. Then build the output table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;   outtab-id = itab-id.&lt;/P&gt;&lt;P&gt;  //Call the BAPI ID field&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI__*'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     ID = itab-id&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     DESC = outtab-desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND outtab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use the table OUTTAB for display in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 13:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387861#M188751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387862#M188752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is ID and the description of that id are the two fields in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you get the id description from the FUNCTION MODULE and then pass that variable in to final internal table field and then append that final interanal table.&lt;/P&gt;&lt;P&gt;then pass that final internal table into 'REUSE_ALV_GRID_DISPLAY' function module i think this will work&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikranth Khimavath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 13:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387862#M188752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387863#M188753</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;please follow the following&lt;/P&gt;&lt;P&gt;a) create a single internal table where you will store teh ID and the ID description. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) When you are building the field catalog please follwo the manual method and then fill in the filedcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 13:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387863#M188753</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2006-06-13T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387864#M188754</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;  How we will fill the Field catalog with manual method?Can you please give me one example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 05:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387864#M188754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T05:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387865#M188755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: ls_fieldcat type sls_alv_fieldcat,&lt;/P&gt;&lt;P&gt;lt_fieldcat type table of ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like matnr,&lt;/P&gt;&lt;P&gt;maktx like maktx,&lt;/P&gt;&lt;P&gt;mtart like mtart,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;building fieldcat&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'matnr'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'material'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'maktx'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'description'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'mtart'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-sel_text = 'type'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls-fieldcat to lt_fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 05:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387865#M188755</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-06-14T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387866#M188756</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;I have pasted below a code in which it fills the fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE m_field.&lt;/P&gt;&lt;P&gt;    add 1 to lc_fieldcat-col_pos.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-fieldname   = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-outputlen   = &amp;amp;2.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-seltext_l   = &amp;amp;3.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-do_sum      = &amp;amp;4.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-inttype     = &amp;amp;5.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-hotspot     = &amp;amp;6.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-fix_column  = &amp;amp;7.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-just        = &amp;amp;8.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-decimals_out = '0'.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-ddictxt     = 'L'.&lt;/P&gt;&lt;P&gt;    lc_fieldcat-no_zero     = 'X'.&lt;/P&gt;&lt;P&gt;    append lc_fieldcat to %fieldcat.&lt;/P&gt;&lt;P&gt;  END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  m_field 'VBELN' '10' 'Ref Doc'                  ''  ''  'X' ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'POSNR' '06' 'Item'                     ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'MATNR' '18' 'Material'                 ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'ARKTX' '40' 'Description'              ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'KWMENG' '15' 'Quantity'                ''  ''  ''  ''  'R'.&lt;/P&gt;&lt;P&gt;  m_field 'ZIEME' '3' 'UM'                        ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'LS_LINES2' '132' 'Ship-To'             ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'LS_LINES3' '132' 'Contact Person'       ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;  m_field 'LS_LINES4' '132' 'Contact Number'       ''  ''  ''  ''  ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 05:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387866#M188756</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-14T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387867#M188757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuradha,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Define ur Fieldcatalog Itab like &lt;/P&gt;&lt;P&gt;DATA:i_fieldcat TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;     w_fieldcat LIKE LINE OF i_fieldcat,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Populate Fieldcatlog table .&lt;/P&gt;&lt;P&gt;  CLEAR :w_fieldcat,&lt;/P&gt;&lt;P&gt;         i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'PERNR'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'PERNR'.&lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'ENDDA'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'ENDDA'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.&lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'BEGDA'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'BEGDA'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.  &lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'MASSN'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'MASSN'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.&lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'STAT1'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'STAT1'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.  &lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_fieldcat-fieldname = 'STAT2'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-seltext_m = 'STAT2'.&lt;/P&gt;&lt;P&gt;  w_fieldcat-tabname = 'I_IT0002'.  &lt;/P&gt;&lt;P&gt;  APPEND w_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR w_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 05:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1387867#M188757</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2006-06-14T05:52:24Z</dc:date>
    </item>
  </channel>
</rss>

