<?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 Grid Layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661145#M293012</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;Check the below link, it has detailed steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 20:39:03 GMT</pubDate>
    <dc:creator>venkata_ramisetti</dc:creator>
    <dc:date>2006-11-13T20:39:03Z</dc:date>
    <item>
      <title>ALV Grid Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661144#M293011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Good Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Report is like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Stucture definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tab,&lt;/P&gt;&lt;P&gt;         field_1 type table-field1, &lt;/P&gt;&lt;P&gt;        field_2 type table_field2 &lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;        end of tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*internal table definition&lt;/P&gt;&lt;P&gt;Data: i_tab type standard table of tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from table-xyz &lt;/P&gt;&lt;P&gt;into corresponding fields of table i_tab&lt;/P&gt;&lt;P&gt;where ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Outprint&lt;/P&gt;&lt;P&gt;I wanted to make outprint like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*My BOSS prefers outprint with ALV Grid Layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out. I would appreciate detailed step by step infos. on what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. how to create a Structure of my i_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. how the print out would come out as ALV Grid Layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours Ara (From Germany)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 20:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661144#M293011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T20:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661145#M293012</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;Check the below link, it has detailed steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 20:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661145#M293012</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-11-13T20:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661146#M293013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.  This is very simple, here is an outline of a very simple ALV grid using the funciton module, there are other ways, but this is the least complex.   You simply put data into your internal table, and build the field catalog, then call the function module.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0004
       no standard page heading.
 
type-pools slis.
 
data: fieldcat type slis_t_fieldcat_alv.
 
data: begin of imara occurs 0,
      matnr type mara-matnr,
      maktx type makt-maktx,
      end of imara.
 
* Selection Screen
selection-screen begin of block b1 with frame title text-001 .
select-options: s_matnr for imara-matnr .
selection-screen end of block b1.
 
start-of-selection.
 
  perform get_data.
  perform write_report.
 

************************************************************************
*  Get_Data
************************************************************************
form get_data.
 
  select  mara~matnr makt~maktx
            into corresponding fields of table imara
              from mara
               inner join makt
                 on mara~matnr = makt~matnr
                    where mara~matnr in s_matnr
                      and makt~spras = sy-langu.
 
endform.
 
************************************************************************
*  WRITE_REPORT
************************************************************************
form write_report.
 
  perform build_field_catalog.
 
* CALL ABAP LIST VIEWER (ALV)
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            it_fieldcat = fieldcat
       tables
            t_outtab    = imara.
 
endform.
 
************************************************************************
* BUILD_FIELD_CATALOG
************************************************************************
form build_field_catalog.
 
  data: fc_tmp type slis_t_fieldcat_alv with header line.
  clear: fieldcat. refresh: fieldcat.
 
  clear: fc_tmp.
  fc_tmp-reptext_ddic    = 'Material Number'.
  fc_tmp-fieldname  = 'MATNR'.
  fc_tmp-tabname   = 'IMARA'.
  fc_tmp-outputlen  = '18'.
  fc_tmp-col_pos    = 2.
  append fc_tmp to fieldcat.
 

  clear: fc_tmp.
  fc_tmp-reptext_ddic    = 'Material'.
  fc_tmp-fieldname  = 'MAKTX'.
  fc_tmp-tabname   = 'IMARA'.
  fc_tmp-outputlen  = '40'.
  fc_tmp-col_pos    = 3.
  append fc_tmp to fieldcat.
 
endform.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 20:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661146#M293013</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-13T20:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661147#M293014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I will try your tips then give points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rich.&lt;/P&gt;&lt;P&gt;I thinks yours is simply enough for me.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 20:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-layout/m-p/1661147#M293014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T20:55:03Z</dc:date>
    </item>
  </channel>
</rss>

