<?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: File upload through SAP Query Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614048#M1439520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only paramters defined in infoset can be used for Event AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to call function 'F4_FILENAME' after exectuing the report after START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 12:25:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-09T12:25:02Z</dc:date>
    <item>
      <title>File upload through SAP Query Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614047#M1439519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a reqirement, where I need to upload a file through Query program. But to upload file, when I am writing the following code to locate file name,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS  p_file  TYPE  rlgrap-filename OBLIGATORY." OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program_name = syst-cprog&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name    = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is throwing a dump because AT SELECTION SCREEN cannot be used in SAP Query. If I manually write the whole path in the parameter that i have declared, then everything is working fine. Issue is just to locate file. Is there any way to achieve the same. Any help on this will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614047#M1439519</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2010-02-09T10:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: File upload through SAP Query Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614048#M1439520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only paramters defined in infoset can be used for Event AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to call function 'F4_FILENAME' after exectuing the report after START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 12:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614048#M1439520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: File upload through SAP Query Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614049#M1439521</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 responding. Can you explain it. it is not clear to me. I wrote the code in the 'Data read program' tab in infoset.&lt;/P&gt;&lt;P&gt;Here AT SELECTION SCREEN or START OF SELECTION  event is not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614049#M1439521</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2010-02-09T15:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: File upload through SAP Query Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614050#M1439522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you dont have to declare selection-Screen etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within your infoset you have to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. tab selections: declare parameter p_file&lt;/P&gt;&lt;P&gt;2. tab code: choose coding section "at selection-screen" for p_file and insert your function call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramy EL-ARNAOUTY on Feb 9, 2010 5:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 16:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-through-sap-query-program/m-p/6614050#M1439522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T16:25:09Z</dc:date>
    </item>
  </channel>
</rss>

