<?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 Dynamically show key fields of table on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373710#M1993810</link>
    <description>&lt;P&gt;Hi Experts!&lt;/P&gt;
  &lt;P&gt;My aim is to dynamically display the key fields of the table in a selection screen after entering a table name.&lt;/P&gt;
  &lt;P&gt;The mandate should not be shown.&lt;/P&gt;
  &lt;P&gt;Here are two examples:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1890449-selection-sflight.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Here all the three key fields (carrid, connid &amp;amp; date) of table sflight should be displayed.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1890450-selection-vbak.png" /&gt;&lt;/P&gt;
  &lt;P&gt;At VBAK it only would be one key field (vbeln).&lt;/P&gt;
  &lt;P&gt;Does anyone has any idea on how i could implement this?&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 09:47:18 GMT</pubDate>
    <dc:creator>former_member690993</dc:creator>
    <dc:date>2021-02-09T09:47:18Z</dc:date>
    <item>
      <title>Dynamically show key fields of table on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373710#M1993810</link>
      <description>&lt;P&gt;Hi Experts!&lt;/P&gt;
  &lt;P&gt;My aim is to dynamically display the key fields of the table in a selection screen after entering a table name.&lt;/P&gt;
  &lt;P&gt;The mandate should not be shown.&lt;/P&gt;
  &lt;P&gt;Here are two examples:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1890449-selection-sflight.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Here all the three key fields (carrid, connid &amp;amp; date) of table sflight should be displayed.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1890450-selection-vbak.png" /&gt;&lt;/P&gt;
  &lt;P&gt;At VBAK it only would be one key field (vbeln).&lt;/P&gt;
  &lt;P&gt;Does anyone has any idea on how i could implement this?&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 09:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373710#M1993810</guid>
      <dc:creator>former_member690993</dc:creator>
      <dc:date>2021-02-09T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically show key fields of table on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373711#M1993811</link>
      <description>&lt;P&gt;Ok, if you absolutely no idea why on earth you would have such a requirement, but I'll try and think along.&lt;/P&gt;&lt;P&gt;If the list of tables for which your program needs to work is known, and limited, I would create a dropdown for the table and separate selection blocks per table. That way you can show/hide those blocks depending on what table is chosen.&lt;/P&gt;&lt;P&gt;If this somehow has to work for all tables, then you have the option to generate a new report at runtime using the statement below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INSERT REPORT &amp;lt;prog&amp;gt; FROM &amp;lt;program_table&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For documentation see here: &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapinsert_report.htm"&gt;abapdocu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If neither option is to your liking, I'd suggest you take a look at how a transaction like SE16n works. That way you don't have to reinvent the wheel, but it'll require some debugging of standard code..&lt;/P&gt;&lt;P&gt;Also, I found that you can create &lt;A href="https://help.sap.com/doc/abapdocu_740_index_htm/7.40/en-US/index.htm"&gt;parameters&lt;/A&gt; dynamically according to the abap docu, but the same isn't mentionned for select-options.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373711#M1993811</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-02-09T12:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically show key fields of table on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373712#M1993812</link>
      <description>&lt;P&gt;Hello Marlon,&lt;/P&gt;&lt;P&gt;You may try to use the Function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG for this purpose.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ahana&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373712#M1993812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-02-09T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically show key fields of table on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373713#M1993813</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;lbldraw427&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;It's not possible to have the selection screen created dynamically. You either have to have a predefined set of parameters like &lt;SPAN class="mention-scrubbed"&gt;pvnierop&lt;/SPAN&gt; suggests, or use a function like &lt;SPAN class="mention-scrubbed"&gt;ahana.sengupta&lt;/SPAN&gt; suggests.&lt;/P&gt;&lt;P&gt;To have the selection screen dynamic you need to regenerate it every time a user selects a different table. This is also how SE16 works - it regenerates the program every time different selection criteria fields are selected.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;Mateusz</description>
      <pubDate>Tue, 09 Feb 2021 12:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-show-key-fields-of-table-on-selection-screen/m-p/12373713#M1993813</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-09T12:35:36Z</dc:date>
    </item>
  </channel>
</rss>

