<?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: Select-option length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515925#M569223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From SAP Help on SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Two input fields with the name selscrit-low and selscrit-high are created on the current selection screen using a matching external data type in a new line at positions 35 and 60. The length of the input fields bases upon the length of the data type which is defined after FOR. &amp;lt;b&amp;gt;The maximum length of the input fields is 45.&amp;lt;/b&amp;gt; The maximum visible length of the input fields is, depending on the nesting depth, in blocks with frames between 10 and 18. If the length is larger than the maximum visible length, then the content is scrollable. &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For longer values - use a PARAMETERS statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 04:43:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T04:43:58Z</dc:date>
    <item>
      <title>Select-option length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515921#M569219</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 am working on a BDC program. In that, I have declared a Select-options for the Upload file name as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;SELECT-OPTIONS: S_PATH      FOR      PARMS-PATH&lt;/P&gt;&lt;P&gt;                               NO INTERVALS&lt;/P&gt;&lt;P&gt;                               LOWER CASE.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;PARMS-PATH&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; is defined for 128 CHARs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later in the program I am using S_PATH-LOW value in the upload logic and etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though S_Path is defined for 128 CHARs, &amp;lt;b&amp;gt;it is taking only 45 characters(max)&amp;lt;/b&amp;gt; when I give the file path in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Eg:&amp;lt;/b&amp;gt; If the Path is &amp;lt;b&amp;gt;'C:\ZTEST012uom.txt'&amp;lt;/b&amp;gt;, it works and we are getting the output as below(as the file path length is less than 45 char).&lt;/P&gt;&lt;P&gt;And if the path is &amp;lt;b&amp;gt;'C:\folder1\folder2\folder3\folder4\folder5\ZTEST012uom.txt'&amp;lt;/b&amp;gt;, it doesn't work(as the file path length is more than 45 char).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, is there any fixed length defined for the select-options. Why am I facing this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how I can rectify this issue...?? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515921#M569219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515922#M569220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont know why it is happening to you for me this code is working properly. Just try that...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_path like rlgrap-filename.

data : val type string.

data : begin of itab occurs 0,
       f1(10),
       f2(10),
       f3(10),
       f4(10),
       end of itab.

data : len type i.
at selection-screen on value-request for p_path.

CALL FUNCTION 'F4_FILENAME'
 EXPORTING
   PROGRAM_NAME        = SYST-CPROG
   DYNPRO_NUMBER       = SYST-DYNNR
*   FIELD_NAME          = ' '
 IMPORTING
   FILE_NAME           = p_path

          .


val = p_path.
compute len = strlen( p_path ).
start-of-selection.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = val
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = '#'
*   HEADER_LENGTH                 = 0
*   READ_BY_LINE                  = 'X'
*   DAT_MODE                      = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   CHECK_BOM                     = ' '
*   NO_AUTH_CHECK                 = ' '
* IMPORTING
*   FILELENGTH                    =
*   HEADER                        =
  TABLES
    DATA_TAB                      = itab
* EXCEPTIONS
*   FILE_OPEN_ERROR               = 1
*   FILE_READ_ERROR               = 2
*   NO_BATCH                      = 3
*   GUI_REFUSE_FILETRANSFER       = 4
*   INVALID_TYPE                  = 5
*   NO_AUTHORITY                  = 6
*   UNKNOWN_ERROR                 = 7
*   BAD_DATA_FORMAT               = 8
*   HEADER_NOT_ALLOWED            = 9
*   SEPARATOR_NOT_ALLOWED         = 10
*   HEADER_TOO_LONG               = 11
*   UNKNOWN_DP_ERROR              = 12
*   ACCESS_DENIED                 = 13
*   DP_OUT_OF_MEMORY              = 14
*   DISK_FULL                     = 15
*   DP_TIMEOUT                    = 16
*   OTHERS                        = 17
          .
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.

loop at itab.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my file path is C:\libra\testfolder1\testfolder2\testfolder3\testfolder4\testfolder5\testfolder6\testfolder7\TEST1.txt total length 102.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515922#M569220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515923#M569221</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;&lt;/P&gt;&lt;P&gt;This is interesting since I actually tried this and it did not accept more than 50 characters.&lt;/P&gt;&lt;P&gt;The workaround could be try using the Parameters option with data type rlgrap-filename. This works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shruthi R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515923#M569221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515924#M569222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paddu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use Parameters statement instead of Select-Options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are giving only one file path name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e Parameters: p_path like PARMS-PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other coding remains same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be useful. &lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venugopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515924#M569222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515925#M569223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From SAP Help on SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Two input fields with the name selscrit-low and selscrit-high are created on the current selection screen using a matching external data type in a new line at positions 35 and 60. The length of the input fields bases upon the length of the data type which is defined after FOR. &amp;lt;b&amp;gt;The maximum length of the input fields is 45.&amp;lt;/b&amp;gt; The maximum visible length of the input fields is, depending on the nesting depth, in blocks with frames between 10 and 18. If the length is larger than the maximum visible length, then the content is scrollable. &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For longer values - use a PARAMETERS statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-length/m-p/2515925#M569223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:43:58Z</dc:date>
    </item>
  </channel>
</rss>

