<?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 ARCHIVOBJECT_CREATE_TABLE with RFC ????? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024048#M1609157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to send a pdf file from sap system to another one by RFC.&lt;/P&gt;&lt;P&gt;For that I use FM ARCHIVOBJECT_CREATE_TABLE and I upload file from back end.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SCMS_UPLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename = gv_filep&lt;/P&gt;&lt;P&gt;        binary   = 'X'&lt;/P&gt;&lt;P&gt;        frontend = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        filesize = i_size&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data     = docs&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error    = 1&lt;/P&gt;&lt;P&gt;        OTHERS   = 2.&lt;/P&gt;&lt;P&gt;Once my itab docs is filled, I pass it to FM by RFC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other sap system I call in my rfc fm ARCHIVOBJECT_CREATE_TABLE.&lt;/P&gt;&lt;P&gt;Datas are transfered in binary (docs type STANDARD TABLE OF tbl1024)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but ARCHIVOBJECT_CREATE_TABLE give me sy-subrc = 1 (error archive).&lt;/P&gt;&lt;P&gt;If I run both FM on the same system it works.&lt;/P&gt;&lt;P&gt;My second idea was to use a text table instead of binary (docs  TYPE STANDARD TABLE OF DOCS)&lt;/P&gt;&lt;P&gt;but if run my prog (everything in one system) with text table the file is well created (pdf file) in archive link but when I click on it I've message error The file is damaged and could not be repaired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIncent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 12:32:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-25T12:32:28Z</dc:date>
    <item>
      <title>ARCHIVOBJECT_CREATE_TABLE with RFC ?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024048#M1609157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to send a pdf file from sap system to another one by RFC.&lt;/P&gt;&lt;P&gt;For that I use FM ARCHIVOBJECT_CREATE_TABLE and I upload file from back end.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SCMS_UPLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename = gv_filep&lt;/P&gt;&lt;P&gt;        binary   = 'X'&lt;/P&gt;&lt;P&gt;        frontend = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        filesize = i_size&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data     = docs&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error    = 1&lt;/P&gt;&lt;P&gt;        OTHERS   = 2.&lt;/P&gt;&lt;P&gt;Once my itab docs is filled, I pass it to FM by RFC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other sap system I call in my rfc fm ARCHIVOBJECT_CREATE_TABLE.&lt;/P&gt;&lt;P&gt;Datas are transfered in binary (docs type STANDARD TABLE OF tbl1024)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but ARCHIVOBJECT_CREATE_TABLE give me sy-subrc = 1 (error archive).&lt;/P&gt;&lt;P&gt;If I run both FM on the same system it works.&lt;/P&gt;&lt;P&gt;My second idea was to use a text table instead of binary (docs  TYPE STANDARD TABLE OF DOCS)&lt;/P&gt;&lt;P&gt;but if run my prog (everything in one system) with text table the file is well created (pdf file) in archive link but when I click on it I've message error The file is damaged and could not be repaired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIncent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 12:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024048#M1609157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T12:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: ARCHIVOBJECT_CREATE_TABLE with RFC ?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024049#M1609158</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;why don't you send this file via RFC? You can create special RFC function for receiving this document. And call the function:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'Z_FILE_RECEIVE'
    DESTINATION 'TARGET'
    EXPORTING
        I_TAB_FILE = docs[]
    EXCEPTIONS 
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT 
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 14:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024049#M1609158</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2011-07-25T14:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: ARCHIVOBJECT_CREATE_TABLE with RFC ?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024050#M1609159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I'm doing and then I've a sy-subrc eq 1: error archive.&lt;/P&gt;&lt;P&gt;However docs datas are the same, unicode identical as weel on both systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 14:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024050#M1609159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-25T14:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: ARCHIVOBJECT_CREATE_TABLE with RFC ?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024051#M1609160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I thought you can't send the document. I've never worked with ARCHIVOBJECT_CREATE_TABLE. So I can't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivobject-create-table-with-rfc/m-p/8024051#M1609160</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2011-07-25T15:07:57Z</dc:date>
    </item>
  </channel>
</rss>

