<?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 problem using FM : ARCHIVFILE_TABLE_TO_SERVER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068944#M972719</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;I have been trying to upload some data to the application server using the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVFILE_TABLE_TO_SERVER'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   TARGETPATH         = '/INTERFACE/BILLINGS/Test1.pdf'&lt;/P&gt;&lt;P&gt;    length             = 10&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    archivobject       = t_line&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR_FILE         = 1&lt;/P&gt;&lt;P&gt;   OTHERS             = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look into the directory if my pdf was properly uploaded using AL11, there is no problem, I can see the file called Test1.pdf;  now if I replace '/INTERFACE/BILLINGS/Test1.pdf'' by  wlv_filepath where wlv_filepath is a variable that contains the SAME path as the one I wrote above, I cannot see my file in AL11 !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging the FM showed me that the OPEN DATASET statement returned sy-subrc = 8.&lt;/P&gt;&lt;P&gt;Can anyone help me find the solution to this problem? My goal is to be able to assign any filepath contained in that variable  onto the app server.&lt;/P&gt;&lt;P&gt;Proper answers will be rewarded for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 12:03:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T12:03:17Z</dc:date>
    <item>
      <title>problem using FM : ARCHIVFILE_TABLE_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068944#M972719</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;I have been trying to upload some data to the application server using the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVFILE_TABLE_TO_SERVER'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   TARGETPATH         = '/INTERFACE/BILLINGS/Test1.pdf'&lt;/P&gt;&lt;P&gt;    length             = 10&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    archivobject       = t_line&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR_FILE         = 1&lt;/P&gt;&lt;P&gt;   OTHERS             = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look into the directory if my pdf was properly uploaded using AL11, there is no problem, I can see the file called Test1.pdf;  now if I replace '/INTERFACE/BILLINGS/Test1.pdf'' by  wlv_filepath where wlv_filepath is a variable that contains the SAME path as the one I wrote above, I cannot see my file in AL11 !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging the FM showed me that the OPEN DATASET statement returned sy-subrc = 8.&lt;/P&gt;&lt;P&gt;Can anyone help me find the solution to this problem? My goal is to be able to assign any filepath contained in that variable  onto the app server.&lt;/P&gt;&lt;P&gt;Proper answers will be rewarded for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068944#M972719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem using FM : ARCHIVFILE_TABLE_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068945#M972720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cedric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please tell me how you have declared that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mamta Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068945#M972720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem using FM : ARCHIVFILE_TABLE_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068946#M972721</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;I have declared the variable as followed : &lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    wlv_filename      TYPE SAPB-SAPPFAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068946#M972721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem using FM : ARCHIVFILE_TABLE_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068947#M972722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cedric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please declared as a STRING&lt;/P&gt;&lt;P&gt;W_FILE_PATH TYPE STRING.&lt;/P&gt;&lt;P&gt;and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and follow the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FILE_GET_NAME_USING_PATH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      client                     = sy-mandt&lt;/P&gt;&lt;P&gt;      logical_path               = c_svfdir&lt;/P&gt;&lt;P&gt;      file_name                  = w_file_name (give your path)&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name_with_path        = i_physical_fname&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      path_not_found             = 1&lt;/P&gt;&lt;P&gt;      missing_parameter          = 2&lt;/P&gt;&lt;P&gt;      operating_system_not_found = 3&lt;/P&gt;&lt;P&gt;      file_system_not_found      = 4&lt;/P&gt;&lt;P&gt;      OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CONCATENATE `/tmp/` i_file_name INTO i_physical_fname.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET i_physical_fname FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;  LOOP AT itb_csv.&lt;/P&gt;&lt;P&gt;    TRANSFER itb_csv TO i_physical_fname.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET i_physical_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is full for you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS &amp;amp; REGARDS,&lt;/P&gt;&lt;P&gt;bhupal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068947#M972722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem using FM : ARCHIVFILE_TABLE_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068948#M972723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your code by using variable. &lt;/P&gt;&lt;P&gt;Here it is working fine.&lt;/P&gt;&lt;P&gt;Please check the below code, if you missed something.&lt;/P&gt;&lt;P&gt; data:  wlv_filepath type SAPB-SAPPFAD value&lt;/P&gt;&lt;P&gt;'/INTERFACE/BILLINGS/Test1.pdf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVFILE_TABLE_TO_SERVER'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TARGETPATH = wlv_filepath&lt;/P&gt;&lt;P&gt;length = 10&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;archivobject = t_line&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_FILE = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mamta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-fm-archivfile-table-to-server/m-p/4068948#M972723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:53:21Z</dc:date>
    </item>
  </channel>
</rss>

