<?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 Table fields as check boxes on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000843#M1495234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display all fields of a table (ex. KNA1) as check boxes on my program PROG1 selection screen.&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>Fri, 18 Jun 2010 01:56:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-18T01:56:45Z</dc:date>
    <item>
      <title>Table fields as check boxes on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000843#M1495234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display all fields of a table (ex. KNA1) as check boxes on my program PROG1 selection screen.&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>Fri, 18 Jun 2010 01:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000843#M1495234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T01:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table fields as check boxes on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000844#M1495235</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;&lt;/P&gt;&lt;P&gt;Instead making the checkbox in a selection screen . you can follow the below way as coded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First FM Will get the Fields of KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second FM will use the fields and show it in a screen with check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second will fm return the tables   rett_name_tab ( it_return_fields) wil have the all the fields. Field FLAG2 of RETT_NAME_TAB&lt;/P&gt;&lt;P&gt;is not initial then its selected by the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can directly delete the ITAB RETT_NAME_TAB where FLAG2 is not initial. finally you have only the selected fields in RETT_NAME_TAB which is selected by user on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'DD_GET_NAMETAB'
  EXPORTING
*     STATUS           = 'A'
    tabname          = 'KNA1'
*     GET_ALL          = ' '
*   IMPORTING
*     F_STATUS         =
*     R_MODEFLAG       =
*     R_STATUS         =
*     X030L_WA         =
  TABLES
    x031l_tab        =  it_kna1_fields
*   EXCEPTIONS
*     NOT_FOUND        = 1
*     NO_FIELDS        = 2
*     OTHERS           = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


CALL FUNCTION 'RS_DATABROWSE_FIELDSELECT'
  EXPORTING
    tabname             = 'KNA1'
   action_2            = 'X'
*   IMPORTING
*     OKCODE              =
  TABLES
    name_tab            = it_kna1_fields
    rett_name_tab       =  it_return_fields
*     TAB2_FIELD          =
          . &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 03:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000844#M1495235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T03:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table fields as check boxes on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000845#M1495236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prasath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion looks good. One question. Our idea is to save a report variant with our selections. If I get the KNA1 fields in a popup would I be able to save a report variant with those selections? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 12:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000845#M1495236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T12:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table fields as check boxes on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000846#M1495237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - almost duplicate post locked

This is the second post on the same subject I've locked.

Repeated violations of forum rules can result in your account being deleted.

Please read &lt;SPAN __jive_macro_name="thread" id="927634"&gt;&lt;/SPAN&gt; and &lt;SPAN __jive_macro_name="thread" id="1170968"&gt;&lt;/SPAN&gt; and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-fields-as-check-boxes-on-selection-screen/m-p/7000846#M1495237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T13:15:28Z</dc:date>
    </item>
  </channel>
</rss>

