<?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: Temporary FrontEnd File ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506924#M1259460</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;check methods of class CL_GUI_FRONTEND_SERVICES. For example you can use method GET_SAPGUI_WORKDIR to get SAP working directory, download your file (method GUI_DOWNLOAD) to this folder and then upload it back to SAP. You can use method FILE_DELETE to delete it after successful upload. You can also use temp directory (method GET_TEMP_DIRECTORY) instead of SAP working directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 03:32:21 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2009-05-04T03:32:21Z</dc:date>
    <item>
      <title>Temporary FrontEnd File ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506923#M1259459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to automaticaly archive a SmartForm into KPRO. My code will simulate the manual user action of attaching a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do that, I need somehow to temporary put a file on the client frontend, but I don't want the user to know the file was downloaded to his workstation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that, for example, if you open an attached file from a SAP transaction, such as ME22N for example, that the file is downloaded to your PC then opened. Internet Explorer does the same also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I reproduce that mecanism ? Any method/FM I should know of ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 09:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506923#M1259459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T09:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary FrontEnd File ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506924#M1259460</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;check methods of class CL_GUI_FRONTEND_SERVICES. For example you can use method GET_SAPGUI_WORKDIR to get SAP working directory, download your file (method GUI_DOWNLOAD) to this folder and then upload it back to SAP. You can use method FILE_DELETE to delete it after successful upload. You can also use temp directory (method GET_TEMP_DIRECTORY) instead of SAP working directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 03:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506924#M1259460</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-05-04T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary FrontEnd File ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506925#M1259461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been a month since I faced this issue and I was hoping for a while these methods would solve my pb, but I've been told I won't be able to use FrontEnd for my issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create attachment during the Print Process, from the Spool, the Smartforms, or the original itab, doesn't really matter actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But apparently, the Print process is sorta scheduled, then processed in background with some kind of "job user". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think I still can use the FrontEnd method? There should be no Client when Print is processed, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you know of a work-around which would do similar things on the Server, not the Client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nota: I plan to use ArchiveLink with the Generic Object Services code from common transactions. But the code just remember the location of the to-be-uploaded file (with the path), then do a lot, lot, lot of things, to eventually set up a link between the file and the SAP document, and then upload the file, at the very end of the archive-process. It looks lilke very hard to use the Server instead...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 17:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/temporary-frontend-file/m-p/5506925#M1259461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-08T17:11:22Z</dc:date>
    </item>
  </channel>
</rss>

