<?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: Save HTML BDS document to Presentation server in the background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466696#M1058289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In background mode you can't save a file to Presentation server...instead you can save a file to application server in background mode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2008 13:38:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-09T13:38:47Z</dc:date>
    <item>
      <title>Save HTML BDS document to Presentation server in the background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466695#M1058288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please advice me how to save a BDS HTML document to a local directory in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any kind of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 13:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466695#M1058288</guid>
      <dc:creator>monasap08</dc:creator>
      <dc:date>2008-09-09T13:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save HTML BDS document to Presentation server in the background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466696#M1058289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In background mode you can't save a file to Presentation server...instead you can save a file to application server in background mode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 13:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466696#M1058289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T13:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Save HTML BDS document to Presentation server in the background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466697#M1058290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats Ok. But is there any solution to saving an HTML BDS document to application server directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 13:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466697#M1058290</guid>
      <dc:creator>monasap08</dc:creator>
      <dc:date>2008-09-09T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Save HTML BDS document to Presentation server in the background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466698#M1058291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I solved the problem and wanted to share with all who face this problem and dont have to debug the SAP standard module again and again to reach this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following steps to save the BDS HTML/Text documents to local directory in background mode. Infact this solution works for all document types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Get the Physical class and object id for the Business document, using GET_INFO method of CL_BDS_DOCUMENT_SET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_bds_document_set=&amp;gt;get_info&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    classname         = 'BUS2091'        "Class name e.g BUS2091 or your custom class&lt;/P&gt;&lt;P&gt;    classtype           = 'BO'                 "Class type&lt;/P&gt;&lt;P&gt;    object_key          = '1000003111'   " object key&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    extended_components = t_comp    " extneded information for the Business dcument&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    nothing_found       = 1&lt;/P&gt;&lt;P&gt;    error_kpro          = 2&lt;/P&gt;&lt;P&gt;    internal_error      = 3&lt;/P&gt;&lt;P&gt;    parameter_error     = 4&lt;/P&gt;&lt;P&gt;    not_authorized      = 5&lt;/P&gt;&lt;P&gt;    not_allowed         = 6&lt;/P&gt;&lt;P&gt;    others              = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extneded components  table returns the Physical class (CLASS) and object id (OBJID) for all the documents stored under that class, classtype and object id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use function 'SDOK_PHIO_LOAD_CONTENT' to get the binary/ascii content for your file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;        call function 'SDOK_PHIO_LOAD_CONTENT'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            object_id           = v_phio_object    " this is of type SDOKOBJECT and &lt;/P&gt;&lt;P&gt;                                                               " has the physical class and objid key&lt;/P&gt;&lt;P&gt;            raw_mode            = 'X'&lt;/P&gt;&lt;P&gt;          tables&lt;/P&gt;&lt;P&gt;            file_content_binary = i_content&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;            not_existing        = 1&lt;/P&gt;&lt;P&gt;            not_authorized      = 2&lt;/P&gt;&lt;P&gt;            no_content          = 3&lt;/P&gt;&lt;P&gt;            bad_storage_type    = 4&lt;/P&gt;&lt;P&gt;            others              = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case, i have selected raw_mode and the binary content is returned in table I_CONTENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Step 3 - transfer content to dataset using OPEN DATASET, TRANSFER and CLOSE DATASET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thats it &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 11:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-html-bds-document-to-presentation-server-in-the-background/m-p/4466698#M1058291</guid>
      <dc:creator>monasap08</dc:creator>
      <dc:date>2008-09-10T11:12:40Z</dc:date>
    </item>
  </channel>
</rss>

