<?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: String manipulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994943#M75065</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;  The function module PC_SPLIT_COMPLETE_FILENAME will split that field into its components, if that is all you need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2005 20:30:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-16T20:30:06Z</dc:date>
    <item>
      <title>String manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994942#M75064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to search for a file name in a file path and then move the file to an application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: C:\Documents\test.csv is the file path and we need to move the file test.csv to a specified location in the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are trying to use the available string functions, but they are not helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 20:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994942#M75064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-16T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994943#M75065</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;  The function module PC_SPLIT_COMPLETE_FILENAME will split that field into its components, if that is all you need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 20:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994943#M75065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-16T20:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994944#M75066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the path and file name is always the same,  then you can use some methods of the class CL_GUI_FRONTEND_SERVICES.  To check if the file exists in the specified path, use the method FILE_EXIST.  If it does exist, then use the method GUI_UPLOAD to load it into the program,  then use ABAP statements OPEN DATASET and TRANSFER DATASET to write the file to the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 23:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994944#M75066</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-16T23:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994945#M75067</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 this code to search the file name:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.

  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
     EXPORTING
       window_title            = 'Select file for download'
       default_extension       = '.txt'
*       DEFAULT_FILENAME        = '.txt'
*       file_filter             = '*.txt ,*.txt.'
       initial_directory       =  'C:'
     CHANGING
       file_table              = li_filetable
       rc                      = lv_return
     EXCEPTIONS
       file_open_dialog_failed = 1
       cntl_error              = 2
       error_no_gui            = 3
       OTHERS                  = 4
           .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e003 WITH text-015.
  ELSE.
    READ TABLE li_filetable INTO lw_filetable INDEX 1.
    p_fnam2 = lw_filetable-filename.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check out this link for downloading/ uploading data from presentation/application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 03:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994945#M75067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T03:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994946#M75068</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;   U can use this fm to check the file existance.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SXDA_FILE_EXISTENCE_CHECK'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     DS_NAME              = P_FPATH&lt;/P&gt;&lt;P&gt;     DATA_APP             = 'X'&lt;/P&gt;&lt;P&gt;     DATA_REM             = SPACE&lt;/P&gt;&lt;P&gt;     SERVER               = SPACE&lt;/P&gt;&lt;P&gt;     DATA_FRN             = SPACE&lt;/P&gt;&lt;P&gt;     PC_FILE              = SPACE&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     FILE_EXISTS          = W_XFLAG&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     RFC_FAILURE          = 1&lt;/P&gt;&lt;P&gt;     FRONTEND_ERROR       = 2&lt;/P&gt;&lt;P&gt;     DB_ERROR             = 3&lt;/P&gt;&lt;P&gt;     OTHERS               = 4.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;   STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF W_XFLAG EQ 'X'.WRITE:/001 'File exists'.ENDIF.&lt;/P&gt;&lt;P&gt;  IF W_XFLAG NE 'X'.WRITE:/001 'File does not exist'.ENDIF.&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 04:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/994946#M75068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T04:07:06Z</dc:date>
    </item>
  </channel>
</rss>

