<?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 Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492707#M1256878</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;take one more internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill this third internal table with the two internal table which you alreay filled ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then build the field catalog by using this third internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ritesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 10:28:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T10:28:11Z</dc:date>
    <item>
      <title>ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492703#M1256874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we display contents of two internal table through single ALV list display?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492703#M1256874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492704#M1256875</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;Take a third internal table which comprises of all the fields of internal table 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the values into internal table 3 and use it to display data in alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492704#M1256875</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-14T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492705#M1256876</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;Input for the ALV List should be a single internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is identical , then I would gather all the data into a single internal table and then use ALV to output list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your requirement seems to be strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain why you are trying to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492705#M1256876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492706#M1256877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; Yes we can display contents of two internal table &lt;/P&gt;&lt;P&gt;please refer this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1200471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492706#M1256877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492707#M1256878</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;take one more internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill this third internal table with the two internal table which you alreay filled ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then build the field catalog by using this third internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ritesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492707#M1256878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492708#M1256879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  R Pathak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      You create a one structure and internal table for two internal table fields.Then use Append lines of itab to itab1(final table).after then you pass the internal table(itab1) to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Anupama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 11:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492708#M1256879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492709#M1256880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to this coding by &lt;STRONG&gt;UWE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could define the "structure" dependent methods as interface methods and create different implementations of this interface depending on the choosen option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this appear to be an overkill to me. In order to simplify your class partially you could introduce two additional attributes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:
  mdo_data    TYPE REF TO data.
 
FIELD-SYMBOLS:
  &amp;lt;lt_outtab&amp;gt;    TYPE table.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The switch between the different structure should be imported into your class using the CONSTRUCTOR method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

METHOD constructor.
  me-&amp;gt;md_wbs = id_wbs.  " e.g. you import the radio-button parameter for WBS
ENDMETHOD.




METHOD process.  " NOTE: public method
 
  IF ( me-&amp;gt;md_wbs = 'X' ).
      CALL METHOD me-&amp;gt;process_wbs( ).  " NOTE: private method
      GET REFERENCE OF me-&amp;gt;mt_wbs INTO me-&amp;gt;mdo_data.
  ELSE.
      CALL METHOD me-&amp;gt;process_kpi( ).  " NOTE: private method
      GET REFERENCE OF me-&amp;gt;mt_wbs INTO me-&amp;gt;mdo_data.
  ENDIF.
 
ENDMETHOD.




METHOD write.
FIELD-SYMBOLS:
  &amp;lt;lt_outtab&amp;gt;    TYPE table.
 
  ASSIGN me-&amp;gt;mdo_data-&amp;gt;* TO &amp;lt;lt_outtab&amp;gt;.
 
cl_salv_table=&amp;gt;factory(
EXPORTING
list_display = if_salv_c_bool_sap=&amp;gt;false
IMPORTING
r_salv_table = salv_table
CHANGING
t_table = &amp;lt;lt_outtab&amp;gt;
).
salv_table-&amp;gt;display( ).
 
ENDMETHOD.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the coding of the main report looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


START-OF-SELECTION.
 
  CREATE OBJECT go_myclass
    EXPORTING
      id_wbs = p_wbs.
 
  go_myclass-&amp;gt;process( ).
  go_myclass-&amp;gt;write( ).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;K.Sibi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sibi k  kanagaraj on Apr 14, 2009 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 12:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/5492709#M1256880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T12:12:28Z</dc:date>
    </item>
  </channel>
</rss>

