<?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 alv display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1640776#M285418</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;have a requirement such that i to have display the material in the colunm dynamically ...ie., if the sale order contains some 5 material that has to be displayed in the colunm dynamically ..... how to do that ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my required layout is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer,invoice no,mat1, mat2 ,mat3...(depends on no. of material in sale order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the customer filed i should get this below said 3 in each row ... ex,&lt;/P&gt;&lt;P&gt;customer name______ row 1.1&lt;/P&gt;&lt;P&gt;city _______________row 1.2&lt;/P&gt;&lt;P&gt;incoterms __________ row 1.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this layout possible in alv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advnce&lt;/P&gt;&lt;P&gt;lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 07:06:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T07:06:09Z</dc:date>
    <item>
      <title>alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1640776#M285418</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;have a requirement such that i to have display the material in the colunm dynamically ...ie., if the sale order contains some 5 material that has to be displayed in the colunm dynamically ..... how to do that ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my required layout is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer,invoice no,mat1, mat2 ,mat3...(depends on no. of material in sale order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the customer filed i should get this below said 3 in each row ... ex,&lt;/P&gt;&lt;P&gt;customer name______ row 1.1&lt;/P&gt;&lt;P&gt;city _______________row 1.2&lt;/P&gt;&lt;P&gt;incoterms __________ row 1.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this layout possible in alv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advnce&lt;/P&gt;&lt;P&gt;lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 07:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1640776#M285418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T07:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1640777#M285419</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 create column in internal table dynamically and display it as ALV report.&lt;/P&gt;&lt;P&gt;Here the samlpe code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Z_JRQ012R .

TYPE-POOLS: slis.
data: 	IS_LVC_CAT type LVC_S_FCAT,
      	IT_LVC_CAT type LVC_T_FCAT,
	IS_FIELDCAT type SLIS_FIELDCAT_ALV,
	IT_FIELDCAT type SLIS_T_FIELDCAT_ALV,
	IS_LAYOUT type SLIS_LAYOUT_ALV,
	new_table TYPE REF TO data,
	new_line TYPE REF TO data.

FIELD-SYMBOLS: 	&amp;lt;l_table&amp;gt; TYPE TABLE,
		&amp;lt;l_line&amp;gt; TYPE ANY,
		&amp;lt;l_field&amp;gt; TYPE ANY.

* create fieldscatalog for create table dynamicly
IS_LVC_CAT-fieldname = 'PERNR'.
IS_LVC_CAT-ref_field = 'PERNR'.
IS_LVC_CAT-ref_table = 'PA0001'.
APPEND IS_LVC_CAT TO IT_LVC_CAT.

IS_LVC_CAT-fieldname = 'BEGDA'.
IS_LVC_CAT-ref_field = 'BEGDA'.
IS_LVC_CAT-ref_table = 'PA0001'.
APPEND IS_LVC_CAT TO IT_LVC_CAT.

IS_LVC_CAT-fieldname = 'ENDDA'.
IS_LVC_CAT-ref_field = 'ENDDA'.
IS_LVC_CAT-ref_table = 'PA0001'.
APPEND IS_LVC_CAT TO IT_LVC_CAT.

* create fieldscatalog for display data in ALV
IS_FIELDCAT-fieldname = 'PERNR'.
IS_FIELDCAT-ref_fieldname = 'PERNR'.
IS_FIELDCAT-ref_tabname = 'PA0001'.
APPEND IS_FIELDCAT TO IT_FIELDCAT.

IS_FIELDCAT-fieldname = 'BEGDA'.
IS_FIELDCAT-ref_fieldname = 'BEGDA'.
IS_FIELDCAT-ref_tabname = 'PA0001'.
APPEND IS_FIELDCAT TO IT_FIELDCAT.

IS_FIELDCAT-fieldname = 'ENDDA'.
IS_FIELDCAT-ref_fieldname = 'ENDDA'.
IS_FIELDCAT-ref_tabname = 'PA0001'.
APPEND IS_FIELDCAT TO IT_FIELDCAT.

* Create a new Table
CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
   EXPORTING
	it_fieldcatalog = IT_LVC_CAT
   IMPORTING
	ep_table = new_table.

* Create a new Line with the same structure of the table.
ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;.
CREATE DATA new_line LIKE LINE OF &amp;lt;l_table&amp;gt;.
ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;.

* Test it...add value for every fields
  DO 3 TIMES.
	ASSIGN COMPONENT 'PERNR' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
	&amp;lt;l_field&amp;gt; = 123456789.
	ASSIGN COMPONENT 'BEGDA' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
	&amp;lt;l_field&amp;gt; = '99991231'.
	ASSIGN COMPONENT 'ENDDA' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
	&amp;lt;l_field&amp;gt; = '20030101'.
	INSERT &amp;lt;l_line&amp;gt; INTO TABLE &amp;lt;l_table&amp;gt;.
  ENDDO.

* Layout
IS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
  EXPORTING
	IS_LAYOUT = IS_LAYOUT
	IT_FIELDCAT = IT_FIELDCAT
  TABLES
	T_OUTTAB = &amp;lt;l_table&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1640777#M285419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:53:13Z</dc:date>
    </item>
  </channel>
</rss>

