<?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: Using FM SO_OBJECT_DOWNLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472956#M1555303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you executed in debug to see what value you're missing?  Something needed is not there...thus the NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Nov 2010 16:33:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-19T16:33:14Z</dc:date>
    <item>
      <title>Using FM SO_OBJECT_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472955#M1555302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am having problem in using this FM. I want to download any file to my local desktop from the file attachment list of an employee in PA20/PA30. I kept on getting Access via 'NULL' object reference not possible error message.&lt;/P&gt;&lt;P&gt;This is how I use it. The filename is obtained through the a pop up box asking user to input a file name with a file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_OBJECT_DOWNLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEFAULT_FILENAME       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     filetype               = 'BIN'&lt;/P&gt;&lt;P&gt;     path_and_file          = lo_stru_output_param-file_name  "C:\Users\sc\Desktop\xyz.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTCT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     no_dialog              = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  F_CANCELLED            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACT_FILETYPE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACT_FILENAME           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      objcont                = lt_object_cont&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     file_write_error       = 1&lt;/P&gt;&lt;P&gt;     invalid_type           = 2&lt;/P&gt;&lt;P&gt;     x_error                = 3&lt;/P&gt;&lt;P&gt;     kpro_error             = 4&lt;/P&gt;&lt;P&gt;     OTHERS                 = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472955#M1555302</guid>
      <dc:creator>siongchao_ng</dc:creator>
      <dc:date>2010-11-19T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM SO_OBJECT_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472956#M1555303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you executed in debug to see what value you're missing?  Something needed is not there...thus the NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 16:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472956#M1555303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM SO_OBJECT_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472957#M1555304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.&lt;/P&gt;&lt;P&gt;  DATA lv_data   TYPE        string.&lt;/P&gt;&lt;P&gt;  DATA lv_xfile  TYPE        xstring.&lt;/P&gt;&lt;P&gt;  lv_data = 'Example text, which will be opened in MS Word.'.&lt;/P&gt;&lt;P&gt;  cl_abap_conv_out_ce=&amp;gt;create( RECEIVING conv = lr_conv ).&lt;/P&gt;&lt;P&gt;  lr_conv-&amp;gt;convert( EXPORTING data   = lv_data&lt;/P&gt;&lt;P&gt;                    IMPORTING buffer = lv_xfile ).&lt;/P&gt;&lt;P&gt;  cl_wd_runtime_services=&amp;gt;attach_file_to_response(&lt;/P&gt;&lt;P&gt;                     EXPORTING i_filename  = 'wd4a.doc'&lt;/P&gt;&lt;P&gt;                               i_content   = lv_xfile&lt;/P&gt;&lt;P&gt;                               i_mime_type = 'application/msword' ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 07:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-so-object-download/m-p/7472957#M1555304</guid>
      <dc:creator>siongchao_ng</dc:creator>
      <dc:date>2010-11-22T07:26:06Z</dc:date>
    </item>
  </channel>
</rss>

