<?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: simple structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152402#M749688</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 check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zstemp_qty2_ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:t_kna1 TYPE kna1.&lt;/P&gt;&lt;P&gt;DATA:it_kna1 TYPE STANDARD TABLE OF t_kna1.&lt;/P&gt;&lt;P&gt;DATA:wa_kna1 TYPE t_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_kna1 INTO wa_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ wa_kna1-kunnr.&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;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 19, 2007 8:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 09:43:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T09:43:20Z</dc:date>
    <item>
      <title>simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152394#M749680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.I have a table &lt;STRONG&gt;KNA1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;2.I want to write a select statement which extracts all the fields into the internal table &lt;STRONG&gt;it_kan1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3.I want to maintain a structure &lt;STRONG&gt;t_kan1&lt;/STRONG&gt; of &lt;STRONG&gt;KNA1&lt;/STRONG&gt; table which has all the fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_kna1 type standard table of t_kna1,&lt;/P&gt;&lt;P&gt;        wt_kna1 type t_kna1.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the option I have &lt;/P&gt;&lt;P&gt;1. should I have to copy all the fields in the table and paste there in the structure.&lt;/P&gt;&lt;P&gt;or do you have any other option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152394#M749680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T08:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152395#M749681</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;just do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_kna1 type standard table of t_kna1,&lt;/P&gt;&lt;P&gt;        wt_kna1 type kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it_kna1  will be an interal table of type kna1 and wt_kna1 will be structure  or work area of type kna1 having all the fields as in kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 19, 2007 8:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152395#M749681</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-12-19T08:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152396#M749682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;in order to create a structure, go to transaction SE11 and create your own structure. There, in the field list, just type ".INCLUDE" at the first Component, and "KNA1" as the component type. This should make reference to the standard structure of table KNA1.&lt;/P&gt;&lt;P&gt;I hope this helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152396#M749682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152397#M749683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of t_kna1,&lt;/P&gt;&lt;P&gt;       &amp;lt;define your fields whatever you want&amp;gt;&lt;/P&gt;&lt;P&gt;       end of t_kna1.&lt;/P&gt;&lt;P&gt;data: it_kna1 like table of t_kna1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152397#M749683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152398#M749684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure for kna1 (all fields):&lt;/P&gt;&lt;P&gt;DATA : gw_kna1 TYPE kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal table for kna1 (all fields):&lt;/P&gt;&lt;P&gt;DATA : gt_kna1 TYPE TABLE OF kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152398#M749684</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-12-19T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152399#M749685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SE38&lt;/P&gt;&lt;P&gt;in ur program, click on pattern button just besides pretty printer.&lt;/P&gt;&lt;P&gt;in dat, structure radio button mention the table name KNA1, it will show all its fields, select which evr u want. &lt;/P&gt;&lt;P&gt;the entire strycture will be built in the program, without u having to copy manully any fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 19, 2007 8:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152399#M749685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152400#M749686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a structure that holds all the fields of table KNA1 or any table  with different options such as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.You can declare a internal table that reference to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_kna1 type standard table of t_kna1,&lt;/P&gt;&lt;P&gt;wt_kna1 type kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it_kna1 will be an interal table of type kna1 and wt_kna1 will be structure or work area of type kna1 having all the fields as in kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;in order to create a structure, go to transaction SE11 and create your own structure. There, in the field list, just type ".INCLUDE" at the first Component, and "KNA1" as the component type. This should make reference to the standard structure of table KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;In SE38&lt;/P&gt;&lt;P&gt;in ur program, click on pattern button just besides pretty printer.&lt;/P&gt;&lt;P&gt;in dat, structure radio button mention the table name KNA1, it will show all its fields, select which evr u want.&lt;/P&gt;&lt;P&gt;the entire strycture will be built in the program, without u having to copy manully any fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 19, 2007 8:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152400#M749686</guid>
      <dc:creator>former_member402443</dc:creator>
      <dc:date>2007-12-19T09:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152401#M749687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cartman, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my doubt is, &lt;/P&gt;&lt;P&gt;firstly I have to create structure t_kna1 which have all the fields of &lt;STRONG&gt;kna1&lt;/STRONG&gt; in se38. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly &lt;/P&gt;&lt;P&gt;data: it_kna1   type standard table of t_kna1, &lt;/P&gt;&lt;P&gt;        wa_kna1 type t_kna1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here t_kan1 = structure of kna1 which has all the fields of kan1 &lt;/P&gt;&lt;P&gt;       it_kna1 = internal table of structure t_kna1 &lt;/P&gt;&lt;P&gt;       wa_kna1 = work area of structure t_kna1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is how can I write t_kna1 structure which has all fields of table kna1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152401#M749687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152402#M749688</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 check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zstemp_qty2_ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:t_kna1 TYPE kna1.&lt;/P&gt;&lt;P&gt;DATA:it_kna1 TYPE STANDARD TABLE OF t_kna1.&lt;/P&gt;&lt;P&gt;DATA:wa_kna1 TYPE t_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_kna1 INTO wa_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ wa_kna1-kunnr.&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;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 19, 2007 8:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152402#M749688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152403#M749689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i understood u r question.&lt;/P&gt;&lt;P&gt;here no need to create structure with similar fields of KNA1 table.&lt;/P&gt;&lt;P&gt;u can directly refer to the table kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow this syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: ty_t_kna1 TYPE STANDARD TABLE OF kan1.&lt;/P&gt;&lt;P&gt;DATA : i_kna1    TYPE ty_t_kna1, (internal table).&lt;/P&gt;&lt;P&gt;           wa_kna1 TYPE kna1.(work area )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use this in select stmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from kna1&lt;/P&gt;&lt;P&gt;into table i_kna1&lt;/P&gt;&lt;P&gt;where..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here no need of declaring stmt tables:kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works,try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;suneetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 10:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152403#M749689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T10:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152404#M749690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;say I have some 100 fields in my internal table i_kna1,&lt;/P&gt;&lt;P&gt;so write the &lt;STRONG&gt;write statement&lt;/STRONG&gt; I have to write as &lt;/P&gt;&lt;P&gt;write:/ i_kna1-field1,i_kna1-field2,i_kna1-field3,--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;i_kna1-field40--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;i_kna1-field100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to over come this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 10:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152404#M749690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: simple structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152405#M749691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shilpa,&lt;/P&gt;&lt;P&gt;if u want to use write stmt u have to hard code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like write:\ i_kna1-field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead that use reuse_alv_grid_display funtion module&lt;/P&gt;&lt;P&gt;simple pass the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :l_i_fieldcatalog TYPE slis_t_fieldcat_alv,"Field Catalog&lt;/P&gt;&lt;P&gt;      l_i_events TYPE slis_t_event, "Events&lt;/P&gt;&lt;P&gt;      l_wa_layout TYPE slis_layout_alv. "layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FM to create strucure&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 = sy-repid&lt;/P&gt;&lt;P&gt;i_structure_name = 'kna1structure'&lt;/P&gt;&lt;P&gt;i_inclname = sy-repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = i_fieldcatalog&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_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;&lt;/P&gt;&lt;P&gt;*--Function Module to display Data.&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 = sy-repid&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'top_of_page'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_GRID_TITLE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is_layout = l_wa_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = l_i_fieldcatalog&lt;/P&gt;&lt;P&gt;it_events = l_i_events&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_kna1.&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;&lt;/P&gt;&lt;P&gt;create database stucture with similar to kna1,&lt;/P&gt;&lt;P&gt;pass this to alv_merge mentioned above.&lt;/P&gt;&lt;P&gt;after that pass that internal table i_kna1  as mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;suneetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-structure/m-p/3152405#M749691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:01:24Z</dc:date>
    </item>
  </channel>
</rss>

