<?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: Database table extract - fields for selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038223#M1500327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case there wont be any user interaction at any point except at selection screen. Is there a way (quick way if possible) to get the list of fields of a database table at selection screen so that we can select the one's we need for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and waiting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jun 2010 15:07:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-16T15:07:21Z</dc:date>
    <item>
      <title>Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038219#M1500323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom report to extract all fields of a database table. Now the user wants to select the fields that he would like to extract from the database table (ex. using check boxes on the selection screen) like the OUTPUT column feature we have in SE16N or in SE11 once we display a table records SETTINGS -&amp;gt; FORMAL LIST -&amp;gt; CHOOSE FIELDS feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 12:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038219#M1500323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038220#M1500324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you not using ALV? Because there the user can pick any column he/she wants (and save it as an variant).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 13:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038220#M1500324</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2010-06-16T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038221#M1500325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. It is an ALV but in our case we will not see the ALV output as we are writing the output directly to the application server once the report is executed. So the output field selection has to be performed at the selection screen level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 13:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038221#M1500325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038222#M1500326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep. Because of the fact you are using ALV, you will be able to set the fieldcatalog based on a subselection of fields (columns) made by the user on the selection screen. Please check ALV reporting help for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 14:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038222#M1500326</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2010-06-16T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038223#M1500327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case there wont be any user interaction at any point except at selection screen. Is there a way (quick way if possible) to get the list of fields of a database table at selection screen so that we can select the one's we need for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and waiting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 15:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038223#M1500327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038224#M1500328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a number of display variants and then let the user select the variant to be used on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 15:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038224#M1500328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038225#M1500329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. Variant idea sounds reasonable. Not sure if our users would like that approach. Will give it a try. They instead on having fields check box selections on the selection screen. Is that something do-able? Please let me know your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 15:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038225#M1500329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038226#M1500330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yest that should be doable. Have the field catalog pick all fields, but only display those on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 15:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038226#M1500330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038227#M1500331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of taking the display variant approach but the issue I have is, my program PROG1 calls another program PROG2 through SUBMIT which actually returns the ALV list. So I think we need to save the display variants for PROG2. If that is the case, can we access PROG2 variants with PROG1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 13:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038227#M1500331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038228#M1500332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can "access" the variant from PROG1, but you can pass it a s a parameter to PROG2 (so long at it is on the selection screen of PROG2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 13:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038228#M1500332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T13:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038229#M1500333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. In that case I think display variant is not going to work for me. Here's what I need exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am extracting LFA1 table records when I execute my program. User would like to see the LFA1 table fields on the selection screen with check boxes so that he can select what all fields he needs to extract. Eventually we would like to save a report variant so that we can run the program in background. What options do we have to get the table fields on selection screen? Is there any easy way to achieve this? Is it do-able? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 13:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038229#M1500333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T13:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038230#M1500334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier you said "&lt;STRONG&gt;Yest that should be doable. Have the field catalog pick all fields, but only display those on the selection screen&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;" in reponse to one of my question. Can you please shed more light on this for my understanding? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Adrian Vlasan on Jun 17, 2010 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 13:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038230#M1500334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T13:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038231#M1500335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone with any thoughts on gettings the database table fields as check boxes on selection screen? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 14:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038231#M1500335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038232#M1500336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I would do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen I would add a button. Either as a parameter or in the tool bar. I'm assuming you know how to do that. If not, we can talk about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on the button, display an ALV that lists all the fields of the table. Make the ALV list interactive, so that the user can select or delete the fields that he does not want. When the user comes out of the ALV, copy the fields that the user has selected into a hidden select-option (this will allow you to create a variant, so you can run it in the background).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program, use the hidden select-option to know what fields you have to extract. They you can create an internal table with the field names you want and make a dynamic select query (check F1 on select statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then extract the fields that you selected, into a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to create a field symbol dynamically that has only the fields that the user selected, so that the select query can put the data into the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a specific table you are writing this for? Or are you trying to create a generic program for any table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 15:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038232#M1500336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038233#M1500337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Displaying the fields as ALV for selection is not going to work in our case. We want them on selection screen so that we can save a report variant for later use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 16:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038233#M1500337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T16:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038234#M1500338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone please.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 16:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038234#M1500338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Database table extract - fields for selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038235#M1500339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrong answer - locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 16:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-extract-fields-for-selection/m-p/7038235#M1500339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T16:33:40Z</dc:date>
    </item>
  </channel>
</rss>

