<?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 values to select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482331#M559483</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;I have to modify an existing program.&lt;/P&gt;&lt;P&gt;here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I am populating one field in the selection-screen with a file path which contain  some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then this file i am converting into an internal table.(At selection-screen event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Now, i have to pass this data of the internal table to a select-option in the selection-screen back.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how it is possible, i have tried a lot.&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maahi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2007 00:53:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-28T00:53:45Z</dc:date>
    <item>
      <title>internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482331#M559483</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;I have to modify an existing program.&lt;/P&gt;&lt;P&gt;here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I am populating one field in the selection-screen with a file path which contain  some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then this file i am converting into an internal table.(At selection-screen event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Now, i have to pass this data of the internal table to a select-option in the selection-screen back.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how it is possible, i have tried a lot.&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maahi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 00:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482331#M559483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T00:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482332#M559484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maahi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you just paste your existing code so that I can suggest the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 00:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482332#M559484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T00:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482333#M559485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;s_sopt-low = itab-value.&lt;/P&gt;&lt;P&gt;s_sopt-option = 'EQ'.&lt;/P&gt;&lt;P&gt;s_sopt-sign = 'I'.&lt;/P&gt;&lt;P&gt;append s_opt.&lt;/P&gt;&lt;P&gt;clear s_opt.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 00:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482333#M559485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T00:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482334#M559486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maahi,&lt;/P&gt;&lt;P&gt;  For whcih field do you want to populate the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See one appoach is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case1: I have 2 screen fields then If i select entries in first field related data should be displayed on selection screen.like,&lt;/P&gt;&lt;P&gt; at selection on &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt; at selection output.&lt;/P&gt;&lt;P&gt; Where you will pass the FM which takes input as screen field1 and output internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case2. May be after filling internal table you can set screen 0 and again call screen &amp;lt;selection-screen no&amp;gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482334#M559486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482335#M559487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;tables bkpf.

data: begin of itab occurs 0.
INCLUDE STRUCTURE alsmex_tabline.
data end of itab.

PARAMETERS p_fpath like rlgrap-filename.

SELECT-OPTIONS rbelnr FOR bkpf-belnr.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fpath.

CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
 EXPORTING
*   PROGRAM_NAME        = SYST-REPID
*   DYNPRO_NUMBER       = SYST-DYNNR
*   FIELD_NAME          = ' '
   STATIC              = 'X'
*   MASK                = ' '
  CHANGING
    FILE_NAME           = p_fpath
* EXCEPTIONS
*   MASK_TOO_LONG       = 1
*   OTHERS              = 2
          .
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 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  EXPORTING
    FILENAME                      = p_fpath
    I_BEGIN_COL                   = 1
    I_BEGIN_ROW                   = 1
    I_END_COL                     = 1
    I_END_ROW                     = 2000
  TABLES
    INTERN                        = itab
* EXCEPTIONS
*   INCONSISTENT_PARAMETERS       = 1
*   UPLOAD_OLE                    = 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.

sort itab by value.
delete adjacent duplicates from itab comparing value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now after this i have to implement the logic in 3rd point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;Maahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482335#M559487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482336#M559488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maahi,&lt;/P&gt;&lt;P&gt; Check whether you can write Call Screen again after filling select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;sel_option-low = itab-value.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Append sel_option.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call Screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482336#M559488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482337#M559489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Maahi verma,&lt;/P&gt;&lt;P&gt;   This feature is already there in a normal select-option/&lt;/P&gt;&lt;P&gt;Just do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS rbelnr FOR bkpf-belnr.&lt;/P&gt;&lt;P&gt;Whne you have a file with all the BELNRs in a file.&lt;/P&gt;&lt;P&gt;You just have to run the program.&lt;/P&gt;&lt;P&gt;Click on the Multiple selection Button on the selection-screen.&lt;/P&gt;&lt;P&gt;Click on the "Import from the text file" button on the pop up.(Shift+f11).&lt;/P&gt;&lt;P&gt;Then you can browse for your file and transfer the values in to select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482337#M559489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482338#M559490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;rbelnr-low = itab-value.&lt;/P&gt;&lt;P&gt;rbelnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;rbelnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;append rbelnr.&lt;/P&gt;&lt;P&gt;clear rbelnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after your code i.e. at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write your select query in START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482338#M559490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal table values to select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482339#M559491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats right. but i cant sort those data and delete the duplicate entries,if i directly fetch the file from multiple selection screen option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 01:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-values-to-select-options/m-p/2482339#M559491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T01:48:00Z</dc:date>
    </item>
  </channel>
</rss>

