<?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: Attach a file on Z program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245973#M484834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you use GOS Generic Object Services in this transaction for attaching documents ?? I can't test it quickcly overhere to see if it exists for this Tcode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 13:35:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T13:35:47Z</dc:date>
    <item>
      <title>Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245970#M484831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I need to attach an file (EXE, TXT, DOC, PDF) into my program.... I found a transaction who do that, but I can't find what method/function is used...&lt;/P&gt;&lt;P&gt;  The transaction is FO36.&lt;/P&gt;&lt;P&gt;  Someone can explain me how this transaction do that or know another way I can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  thx a lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 20:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245970#M484831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T20:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245971#M484832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure it is FO36 as this tcode is for Real State Management?&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/2c/2755eb456a11d189440000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/2c/2755eb456a11d189440000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Instead try CV01N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 21:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245971#M484832</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-11T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245972#M484833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes... this transaction edit an build... but is not the focus... in the first screen, has a button with a pencil and a yellow dialog, with text &amp;lt;i&amp;gt;No Memo&amp;lt;/i&amp;gt; or &amp;lt;i&amp;gt;Memo exists&amp;lt;/i&amp;gt;... this create a memo, and I need to make a Z program that's do this for other purpose...&lt;/P&gt;&lt;P&gt;The memo is easy to create, but the problem has on attach an files with this memo, a friend passed me this transaction how an sample. But I can do this anyway I want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 13:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245972#M484833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T13:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245973#M484834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you use GOS Generic Object Services in this transaction for attaching documents ?? I can't test it quickcly overhere to see if it exists for this Tcode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 13:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245973#M484834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T13:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245974#M484835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know much about GOS, it's not used only on standard transaction? Or can I use on Z program??&lt;/P&gt;&lt;P&gt;My program like a simples CRM, I use a client (kunnr) and a Call ID (Z Field) to make a key for a call memo, I will save with function &amp;lt;i&amp;gt;create text&amp;lt;/i&amp;gt;... But also I need to attach an files with this memos, In last case I will use a open dataset and save on server file system... but I want to save the files in SAP using any function or another think like that... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the reply...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 13:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245974#M484835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245975#M484836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it is not customized in my system I don't know if GOS is working. &lt;/P&gt;&lt;P&gt;But I see the elements available in DMS for use to link documents to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIOB01     Asset group   &lt;/P&gt;&lt;P&gt;VIOB02     Real estate   &lt;/P&gt;&lt;P&gt;VIOB03     Buildings     &lt;/P&gt;&lt;P&gt;VIOB22     Room          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spro menu&lt;/P&gt;&lt;P&gt;Cross-Application Components -&amp;gt; Document Management -&amp;gt; Control Data -&amp;gt; Define Document Types&lt;/P&gt;&lt;P&gt;if you have a document type you can add  object links with&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Define object links&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;where you can add the codes above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you create and link the document to you're assets in CV01N as mentioned above.&lt;/P&gt;&lt;P&gt;advantage of using DMS is that you can also access the documents by searching in CV04N . you can also add classification to maintain specific charateristics from the document (we use it for contracts and save the period and vendor for the contract and total value and responsible person)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        A. de Smidt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        A. de Smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 07:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245975#M484836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T07:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attach a file on Z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245976#M484837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I found I program that do attach a file into a table... I think this will generate some problems on furture, but my client want the this solution... And if it happy I am happy... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;  Thats is the program to attach were I adapt to my program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;REPORT ZARCHIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZARCHIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Variables ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_data,&lt;/P&gt;&lt;P&gt;         data type x,&lt;/P&gt;&lt;P&gt;       END OF ty_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_data type standard table of ty_data with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_data_tab type standard table of zarchive with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Parameters ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : p_upload type c radiobutton group rb1,&lt;/P&gt;&lt;P&gt;            p_downlo type c radiobutton group rb1,&lt;/P&gt;&lt;P&gt;            p_id(15) type n obligatory,&lt;/P&gt;&lt;P&gt;            p_file(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Main Program ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not p_upload is initial.&lt;/P&gt;&lt;P&gt; perform f_upload.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; perform f_download.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Forms ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_upload&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM f_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_file type string,&lt;/P&gt;&lt;P&gt;      l_c1 type i,&lt;/P&gt;&lt;P&gt;      l_c2 type i,&lt;/P&gt;&lt;P&gt;      l_data(1000) type x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; delete from zarchive where id = p_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_file = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         FILENAME                = l_file&lt;/P&gt;&lt;P&gt;         FILETYPE                = 'BIN'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         DATA_TAB                = t_data&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;P&gt;         FILE_READ_ERROR         = 2&lt;/P&gt;&lt;P&gt;         NO_BATCH                = 3&lt;/P&gt;&lt;P&gt;         GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;         INVALID_TYPE            = 5&lt;/P&gt;&lt;P&gt;         NO_AUTHORITY            = 6&lt;/P&gt;&lt;P&gt;         UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;P&gt;         BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;P&gt;         HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;P&gt;         SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;P&gt;         HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;P&gt;         UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;P&gt;         ACCESS_DENIED           = 13&lt;/P&gt;&lt;P&gt;         DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;P&gt;         DISK_FULL               = 15&lt;/P&gt;&lt;P&gt;         DP_TIMEOUT              = 16&lt;/P&gt;&lt;P&gt;         OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&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;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DESCRIBE TABLE t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CHECK sy-tfill &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; t_data_tab-id   = p_id.&lt;/P&gt;&lt;P&gt; t_data_tab-filename = l_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_c1 = 0.&lt;/P&gt;&lt;P&gt; l_c2 = 0.&lt;/P&gt;&lt;P&gt; loop at t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   l_data+l_c1 = t_data-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   add 1 to l_c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if l_c1 = 1000.&lt;/P&gt;&lt;P&gt;      add 1 to l_c2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      t_data_tab-partidx = l_c2.&lt;/P&gt;&lt;P&gt;      t_data_tab-data_size = l_c1.&lt;/P&gt;&lt;P&gt;      t_data_tab-data = l_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append t_data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear l_c1.&lt;/P&gt;&lt;P&gt;      clear l_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; add 1 to l_c2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; t_data_tab-partidx = l_c2.&lt;/P&gt;&lt;P&gt; t_data_tab-data_size = l_c1.&lt;/P&gt;&lt;P&gt; t_data_tab-data = l_data.&lt;/P&gt;&lt;P&gt; append t_data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; modify zarchive from table t_data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_upload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f_download&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM f_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_file type string,&lt;/P&gt;&lt;P&gt;      l_c1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_file = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT *&lt;/P&gt;&lt;P&gt; INTO TABLE t_data_tab&lt;/P&gt;&lt;P&gt; FROM ZARCHIVE&lt;/P&gt;&lt;P&gt; WHERE ID = P_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT t_data_tab.&lt;/P&gt;&lt;P&gt;   DO t_data_tab-data_size times.&lt;/P&gt;&lt;P&gt;     l_c1 = sy-index - 1.&lt;/P&gt;&lt;P&gt;     t_data-data = t_data_tab-data+l_c1.&lt;/P&gt;&lt;P&gt;     APPEND t_data.&lt;/P&gt;&lt;P&gt;   ENDDO.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DESCRIBE TABLE t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         BIN_FILESIZE            = sy-tfill&lt;/P&gt;&lt;P&gt;         FILENAME                = l_file&lt;/P&gt;&lt;P&gt;         FILETYPE                = 'BIN'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         DATA_TAB                = t_data&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;P&gt;         FILE_READ_ERROR         = 2&lt;/P&gt;&lt;P&gt;         NO_BATCH                = 3&lt;/P&gt;&lt;P&gt;         GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;         INVALID_TYPE            = 5&lt;/P&gt;&lt;P&gt;         NO_AUTHORITY            = 6&lt;/P&gt;&lt;P&gt;         UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;P&gt;         BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;P&gt;         HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;P&gt;         SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;P&gt;         HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;P&gt;         UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;P&gt;         ACCESS_DENIED           = 13&lt;/P&gt;&lt;P&gt;         DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;P&gt;         DISK_FULL               = 15&lt;/P&gt;&lt;P&gt;         DP_TIMEOUT              = 16&lt;/P&gt;&lt;P&gt;         OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&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;P&gt;ENDFORM.                    " f_download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabela que guarda os arquivos&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***************************************************************&lt;/P&gt;&lt;P&gt;*Tabela transparente     : ZARCHIVE&lt;/P&gt;&lt;P&gt;*Descrição breve         : Files Achive&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*Campos :&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 1) MANDT         MANDT       CLNT    3       Mandante&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 2) ID            NUMC15      NUMC    15      Campo numérico do compr. 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 3) PARTIDX    NUMC05 NUMC    5       Campo numérico com compr. 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 4) FILENAME   CHAR255        CHAR    255     Char255&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 5) DATA_SIZE  INT2   INT2    5       2 Byte Integer (Signed)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; 6) DATA         LRAW1000     LRAW    1000    Cluster dados, compr.max.1000&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;*Tabela exemplo:&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*ID                   PARTIDX   FILENAME        DATA_SIZE  DATA&lt;/P&gt;&lt;P&gt;*000000000000001        00001       C:TESTE.DOC          1.000    D0CF11E0...&lt;/P&gt;&lt;P&gt;*000000000000001        00002       C:TESTE.DOC          1.000    0000A353...&lt;/P&gt;&lt;P&gt;*000000000000001        00003       C:TESTE.DOC          1.000    00000000...&lt;/P&gt;&lt;P&gt;*000000000000001        00004       C:TESTE.DOC          1.000    4C494E4B...&lt;/P&gt;&lt;P&gt;*000000000000001        00005       C:TESTE.DOC          922      33362220...&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 14:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-a-file-on-z-program/m-p/2245976#M484837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T14:58:26Z</dc:date>
    </item>
  </channel>
</rss>

