<?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 Internal table structure for Field n based on selection screen Input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480338#M1652200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created internal table for headers dynamically in alv output using alv oops like i have charactertics in my selection screen&lt;/P&gt;&lt;P&gt; based on each characterstic selected in selection screen i need to create two dynamic columns in my alv grid output, this one i have achieved. now my problem is for static fields im passing data(from my first internal table) for my dynamic fields ( how cna i pass ) since how can i design my  final internal table it is some thing like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_final occurs 0,&lt;/P&gt;&lt;P&gt;kunnr type kunrr,&lt;/P&gt;&lt;P&gt;city type city1,&lt;/P&gt;&lt;P&gt;land1 type land1,&lt;/P&gt;&lt;P&gt;feild1 type char30, " field 1&lt;/P&gt;&lt;P&gt;. " filed2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;fieldn type char30, " filed n&lt;/P&gt;&lt;P&gt;end of t_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes my final internal table may have dynamic columns of field1, field2 but may be some other times it may have 100 fields(if selection screen selects 50 characterstics) it is based on input selected in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question is how can create structure dynamically based on my selection screen input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shwetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2011 01:10:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-22T01:10:22Z</dc:date>
    <item>
      <title>Internal table structure for Field n based on selection screen Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480338#M1652200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created internal table for headers dynamically in alv output using alv oops like i have charactertics in my selection screen&lt;/P&gt;&lt;P&gt; based on each characterstic selected in selection screen i need to create two dynamic columns in my alv grid output, this one i have achieved. now my problem is for static fields im passing data(from my first internal table) for my dynamic fields ( how cna i pass ) since how can i design my  final internal table it is some thing like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_final occurs 0,&lt;/P&gt;&lt;P&gt;kunnr type kunrr,&lt;/P&gt;&lt;P&gt;city type city1,&lt;/P&gt;&lt;P&gt;land1 type land1,&lt;/P&gt;&lt;P&gt;feild1 type char30, " field 1&lt;/P&gt;&lt;P&gt;. " filed2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;fieldn type char30, " filed n&lt;/P&gt;&lt;P&gt;end of t_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes my final internal table may have dynamic columns of field1, field2 but may be some other times it may have 100 fields(if selection screen selects 50 characterstics) it is based on input selected in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question is how can create structure dynamically based on my selection screen input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shwetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 01:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480338#M1652200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T01:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table structure for Field n based on selection screen Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480339#M1652201</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 search in SDN/WIKI to get sample codes to create dyn internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 03:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480339#M1652201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T03:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table structure for Field n based on selection screen Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480340#M1652202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shwetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this may help you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Interactive" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Interactive&lt;/A&gt;&lt;EM&gt;Editable&lt;/EM&gt;OO&lt;EM&gt;ALV&lt;/EM&gt;grid&lt;EM&gt;with&lt;/EM&gt;dynamic&lt;EM&gt;itab%2CFCAT&lt;/EM&gt;and&lt;EM&gt;ENTER&lt;/EM&gt;key&lt;EM&gt;event&lt;/EM&gt;trigger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details you can get many threads or WIKI for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ganesh Lathi on Dec 22, 2011 4:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 03:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure-for-field-n-based-on-selection-screen-input/m-p/8480340#M1652202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T03:53:59Z</dc:date>
    </item>
  </channel>
</rss>

