<?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: How to define a application file path in program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618812#M1279963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;all the application files r stored in AL11 tcode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to open those&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for delate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER DATA...&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;Jay........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 07:07:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-06T07:07:36Z</dc:date>
    <item>
      <title>How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618807#M1279958</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;In my program i want to define file path in application directory. using that file i want to upload the  records as per my requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to open and close that file in every time, but open time the file should be initial.  how to write the code...please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 06:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618807#M1279958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T06:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618808#M1279959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tcode AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618808#M1279959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618809#M1279960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The AL11 File path i need to define in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write the coding.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618809#M1279960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618810#M1279961</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;Open Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at table&lt;/P&gt;&lt;P&gt;Transfer work area.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closedataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u open the same file then for every opening data in file will be cleared and new data wil transfered to file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to dine new path then,&lt;/P&gt;&lt;P&gt;Goto Tcode  -- &amp;gt; FILE, there u can create new file path.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran vempati on May 6, 2009 9:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618810#M1279961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618811#M1279962</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;To access the Application server directory using AL11 tcode. and the file will be created by tbe basis people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program write the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset p_file for input encoding default (in ECC version)&lt;/P&gt;&lt;P&gt;you can write the code&lt;/P&gt;&lt;P&gt;transfer the data from internal to application server&lt;/P&gt;&lt;P&gt;Close dataset&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;Ramakrishna Pathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618811#M1279962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618812#M1279963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;all the application files r stored in AL11 tcode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to open those&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for delate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER DATA...&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;Jay........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618812#M1279963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618813#M1279964</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;  To get the file at application server with no data in it each time when u r going for download use stmt&lt;/P&gt;&lt;P&gt;OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET V_FILE FOR OUTPUT IN BINARY MODE. (where V_FILE is application server path)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E002 WITH 'Error while opening File'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Data is downloaded to the application server file path&lt;/P&gt;&lt;P&gt;    LOOP AT &amp;lt;IT&amp;gt; ."INTO wa_tab2.&lt;/P&gt;&lt;P&gt;      TRANSFER &amp;lt;IT&amp;gt; TO V_FILE.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    MESSAGE S002 WITH 'Data successfully downloded to application server'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET V_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyword "FOR OUTPUT" in open dataset indicates that if the specified file already exists, its content is deleted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To append the data u can use "FOR APPENDING".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ajit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AJIT THAKUR on May 6, 2009 9:17 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AJIT THAKUR on May 6, 2009 9:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618813#M1279964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618814#M1279965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt; Use the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FNAME(60) VALUE 'myfile'.&lt;/P&gt;&lt;P&gt;DATA NUM TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT.&lt;/P&gt;&lt;P&gt;DO 10 TIMES.&lt;/P&gt;&lt;P&gt;NUM = NUM + 1.&lt;/P&gt;&lt;P&gt;TRANSFER NUM TO FNAME.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;CLOSE DATASET FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file does not already exist, it is created automatically. If it does already exist, but is closed,&lt;/P&gt;&lt;P&gt;its contents are overwritten. If the file exists and is already open (for read or write access, or for&lt;/P&gt;&lt;P&gt;appending), the position is reset to the beginning of the file. If the system can open the file&lt;/P&gt;&lt;P&gt;&amp;lt;dsn&amp;gt; successfully, SY-SUBRC is set to 0. If not, it is set to 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 07:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618814#M1279965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T07:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to define a application file path in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618815#M1279966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santosh,&lt;/P&gt;&lt;P&gt;Is this what you are looking for&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file(128) MODIF ID 001.&lt;/P&gt;&lt;P&gt;declare a parameter that opens Application server.&lt;/P&gt;&lt;P&gt;and then use FM&lt;/P&gt;&lt;P&gt;F4_DXFILENAME_TOPRECURSION&lt;/P&gt;&lt;P&gt;to get the file path from the search directories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ARS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 22:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-a-application-file-path-in-program/m-p/5618815#M1279966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T22:25:02Z</dc:date>
    </item>
  </channel>
</rss>

