<?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: app server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808690#M346892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanx for u r replis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:file(200) TYPE c VALUE 'F:\usr\sap\DEV\DVEBMGS00\data\X.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am writing some data to the applicatin server with the text name as X.txt as of now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of X.txt i want that text name as date&amp;amp; time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with u r code but unable to get it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 14:29:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-20T14:29:56Z</dc:date>
    <item>
      <title>app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808685#M346887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dera gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My requireemnt is like this &lt;/P&gt;&lt;P&gt; when i am writing some date to application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the csv file name should be with date &amp;amp; time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:file(200) TYPE c VALUE 'F:\usr\sap\DEV\DVEBMGS00\data\&amp;lt;b&amp;gt;X.txt'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the file should be with date &amp;amp; time how can i achieve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808685#M346887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808686#M346888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COncatenate file sy-datum sy-uzeit '.txt' into file_name.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use file_name to write to application server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808686#M346888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808687#M346889</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;DATA:LV_REC(8) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE P_OFILE SY-DATUM SY-UZEIT&lt;/P&gt;&lt;P&gt;  INTO P_OFILE.&lt;/P&gt;&lt;P&gt;  CONDENSE P_OFILE NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET P_OFILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    WRITE GV_TREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Input Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_AREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Existing  Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_DUPREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Duplicate Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;    CLEAR: LV_REC, GV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_MAR_DEL TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Records Marked for deletion:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;    CLEAR: LV_REC, GV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_INVALID TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Invalid Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;    CLEAR: LV_REC, GV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_VALIDREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Valid Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;    CLEAR: LV_REC, GV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_SREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Successful Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE GV_EREC TO LV_REC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Total Error Records:' LV_REC INTO GV_MSG.&lt;/P&gt;&lt;P&gt;    TRANSFER GV_MSG TO P_OFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808687#M346889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808688#M346890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: file_name(30) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate sy-datum sy-tims into file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then give the path with file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808688#M346890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808689#M346891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE FILE sy-datum sy-uzeit into FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808689#M346891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808690#M346892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanx for u r replis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:file(200) TYPE c VALUE 'F:\usr\sap\DEV\DVEBMGS00\data\X.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am writing some data to the applicatin server with the text name as X.txt as of now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of X.txt i want that text name as date&amp;amp; time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with u r code but unable to get it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808690#M346892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808691#M346893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi Senthil,

1. Use the below FM to split the filename and path

    call function 'SO_SPLIT_FILE_AND_PATH'
    exporting
      full_name     = fname
    importing
      stripped_name = short_fname
      file_path     = fpath
    exceptions
      x_error       = 1
      others        = 2.


2. use the below FM and pass short_fname which u will get from above FM

      call function 'SPLIT_FILENAME'
         exporting
              long_filename  = int_dbaml-log_name
         importing
              pure_filename  = local_actid
              pure_extension = local_actid.


3. now u will get the pure file name without extension in the value  local_actid  from the above FM

3. Concatenate local_actid  sy-datum sy-uzeit into local_actid .

4.now it will be in the format 20061220201845&amp;lt;Filename&amp;gt;

5.Now concatenate  fpath  local_actid local_actid into  fpath.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808691#M346893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808692#M346894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : c_x type c VALUE 'X'.&lt;/P&gt;&lt;P&gt;DATA : ws_date(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COncatenate sy-datum sy-uzeit into ws_date.&lt;/P&gt;&lt;P&gt;REPLACE c_x in file with ws_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808692#M346894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808693#M346895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done simply like this.  Here %% is a place holder in your file path, then we are just replacing it with the concatenation of sy-datum and sy-uzeit.   Are you having some other problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: file_name type string.
DATA: file(200) TYPE c VALUE 'F:usrsapDEVDVEBMGS00data%%.txt'.

concatenate sy-datum sy-uzeit into file_name.

replace '%%' with file_name into file.
condense file no-gaps.



&lt;/CODE&gt;&lt;/PRE&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>Wed, 20 Dec 2006 14:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808693#M346895</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-20T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808694#M346896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not getting the file at all on the application server, it could be that it is having a problem with F: in the file path,  Not sure that you need this when writing to app server.  At least not in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;'F:&amp;lt;/b&amp;gt;\usr\sap\DEV\DVEBMGS00\data\X.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; '\usr\sap\DEV\DVEBMGS00\data\X.txt'.&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>Wed, 20 Dec 2006 14:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808694#M346896</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-20T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808695#M346897</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;thanks for u r answers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/app-server/m-p/1808695#M346897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T14:36:53Z</dc:date>
    </item>
  </channel>
</rss>

