<?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: TCode FILE: generate a different path depending on the environment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718660#M2019633</link>
    <description>&lt;P&gt;In path dependant on system, I usually used &amp;lt;SYSID&amp;gt; or &amp;lt;INSTANCE&amp;gt; in the path/file name. In your case, that's not enough.&lt;/P&gt;&lt;P&gt;So consider using variables or Exit FM&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;lt;P=name&amp;gt; Name of a profile parameter(see Report RSPARAM for valid values)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;V=name&amp;gt; Name of a variable(stored in variable table)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&amp;lt;F=name&amp;gt; Return value of a function moduleNaming convention for this function module:FILENAME_EXIT_name&lt;/LI&gt;&lt;LI&gt;&amp;lt;Y=name&amp;gt;Return value of a function moduleNaming convention for this function module:Y_FILENAME_EXIT_name&lt;/LI&gt;&lt;LI&gt;&amp;lt;Z=name&amp;gt;Return value of a function moduleNaming convention for this function module:Z_FILENAME_EXIT_name&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 25 May 2023 16:32:57 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2023-05-25T16:32:57Z</dc:date>
    <item>
      <title>TCode FILE: generate a different path depending on the environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718659#M2019632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I would like through the FILE transaction to generate a file whose path would be different depending on the environment in which I find myself.&lt;BR /&gt;&lt;BR /&gt;Let’s imagine my different environments:&lt;BR /&gt;- D01: path will be \\eccdev.power.lan\Interface&lt;BR /&gt;- Q01: path will be \\s3qasecc.power.lan\Run&lt;BR /&gt;- P01: path will be \\r3prdecc3.azure.poi\paynet&lt;BR /&gt;&lt;BR /&gt;I've used the FILE transaction several times with success but never encountered this problem. How would you do that?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 15:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718659#M2019632</guid>
      <dc:creator>tafkap95</dc:creator>
      <dc:date>2023-05-25T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: TCode FILE: generate a different path depending on the environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718660#M2019633</link>
      <description>&lt;P&gt;In path dependant on system, I usually used &amp;lt;SYSID&amp;gt; or &amp;lt;INSTANCE&amp;gt; in the path/file name. In your case, that's not enough.&lt;/P&gt;&lt;P&gt;So consider using variables or Exit FM&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;lt;P=name&amp;gt; Name of a profile parameter(see Report RSPARAM for valid values)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;V=name&amp;gt; Name of a variable(stored in variable table)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&amp;lt;F=name&amp;gt; Return value of a function moduleNaming convention for this function module:FILENAME_EXIT_name&lt;/LI&gt;&lt;LI&gt;&amp;lt;Y=name&amp;gt;Return value of a function moduleNaming convention for this function module:Y_FILENAME_EXIT_name&lt;/LI&gt;&lt;LI&gt;&amp;lt;Z=name&amp;gt;Return value of a function moduleNaming convention for this function module:Z_FILENAME_EXIT_name&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 25 May 2023 16:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718660#M2019633</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-05-25T16:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: TCode FILE: generate a different path depending on the environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718661#M2019634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You will get a list of all the available parameters by clicking the 'F1' button while in the 'Physical path' field. You can also refer to this article for more details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/Basis/How+to+Define+Logical+and+Physical+File+and+Path+Names+for+Archiving"&gt;How to Define Logical and Physical File and Path Names for Archiving&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that if you use this logical path in an ABAP program, the programmer can build the path dynamically.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Patrice Poirier&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 16:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718661#M2019634</guid>
      <dc:creator>Patrice</dc:creator>
      <dc:date>2023-05-25T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: TCode FILE: generate a different path depending on the environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718662#M2019635</link>
      <description>&lt;P&gt;If it's to be different in each ABAP system, there's not really a need to transport the logical path, can't you just define it manually in each system once for all?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 18:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718662#M2019635</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-25T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: TCode FILE: generate a different path depending on the environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718663#M2019636</link>
      <description>&lt;P&gt;Finally I went through an Exit FM &amp;lt;Z=name&amp;gt; in which I determine my path according to the OS and the name of the SAP system via a configuration table. Why did I choose this solution? Because with a former client, the operating system was not the same on the different environments: the dev was under Windows, the PRD under Linux...&lt;BR /&gt;&lt;BR /&gt;As Sandra Rossi suggested I can't modify environments other than DEV because "Changes to repository or cross-client customizing are not permitted", and having this authorization is complicated.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 21:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file-generate-a-different-path-depending-on-the-environment/m-p/12718663#M2019636</guid>
      <dc:creator>tafkap95</dc:creator>
      <dc:date>2023-05-25T21:59:58Z</dc:date>
    </item>
  </channel>
</rss>

