<?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: Comapare the string value in the selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744457#M900961</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;You can use the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_file cs '.doc'.&lt;/P&gt;&lt;P&gt;your code here...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2008 04:17:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-02T04:17:54Z</dc:date>
    <item>
      <title>Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744456#M900960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the selection screen input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an option of selecting the directory and file name and not the extension .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is used to download the datas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension can be selected by using the option button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rtf&lt;/P&gt;&lt;P&gt;csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user has to give only  the filename and not the extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose if the user input is C:\temp\file1.doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either i should take only the filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or i should display the message give only the filename and not the extension . its already been selected!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare the input string contains  .doc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do the comparison and to get the above results mentiond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ABAPer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 04:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744456#M900960</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-05-02T04:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744457#M900961</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;You can use the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_file cs '.doc'.&lt;/P&gt;&lt;P&gt;your code here...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 04:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744457#M900961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T04:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744458#M900962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abap dev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; generally in this sort of situation ppl generally give a parameter for the extension as well.. and concatenate in the program.. all there parameters and build the file path.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters 1 for path default 'c:/temp/',&lt;/P&gt;&lt;P&gt;parameters 2 for file name default 'filename',&lt;/P&gt;&lt;P&gt;parameters 3 for extension default '.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate parameter1 parameter2 parameter3 into file-name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 04:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744458#M900962</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-02T04:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744459#M900963</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 already done using the method given by you.&lt;/P&gt;&lt;P&gt;Because the requirment is there are two option buttion for selecting the download file format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unknowingly if the user gives the filename along with the extension. I need to handle that error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giving some error message or information message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how to do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then after comparing that i should give the user a msg doc type is already selected give only the filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope u understand my req&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 04:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744459#M900963</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-05-02T04:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744460#M900964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. so when ever user gives a extension there will be dot right.. so check for a dot and raise the error..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

at selection-screen.

if filename CA '.'.
message text-001. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; plz dont select the extension of in the path
elseif filename CS '.doc'.
message text-002. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;file extension .doc is not allowed..
elseif.........
.........
.....
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 04:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744460#M900964</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-02T04:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744461#M900965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more doubt to be clarified in this..&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are searching for a dot  in the input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e filename along with the directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the directory name contains any '.'  then also it will display the same message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether in the directory , do v have any dot as a character in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiindly clarify this too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 05:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744461#M900965</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-05-02T05:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744462#M900966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm thats right.. in real world.. ppl generally use c:/temp as default path... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; check out if this is FM is of any help to you..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
mask = ',*.txt,*.txt'
static = 'X'
CHANGING
file_name = p_pcfile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 05:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744462#M900966</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-02T05:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744463#M900967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya . i have already using this functiom module to get the f4 help for the filename..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But mask uses only a single character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont know how far it will be helpful for my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any other method is there , like to retrieve the last four characters of the file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\doc\file\filename.rtf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think then i can comparree. please correct me if i am wriong and suggest some good method also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 05:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744463#M900967</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-05-02T05:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comapare the string value in the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744464#M900968</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;Call the following function and pass the file name entered in the selection.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CRM_IC_WZ_SPLIT_FILE_EXTENSION'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IV_FILENAME_WITH_EXT = &amp;lt;Your Upload/Download file from selection&amp;gt;&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EV_FILENAME          = &amp;lt;Your Upload/Download file without file extension is returned&amp;gt;&lt;/P&gt;&lt;P&gt;      EV_EXTENSION         = &amp;lt;Your file extension is returned here&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the required comparision and display the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 07:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comapare-the-string-value-in-the-selection-screen/m-p/3744464#M900968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T07:31:20Z</dc:date>
    </item>
  </channel>
</rss>

