<?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 CALL_NOT_FLUSHED error while opening word document proxy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495681#M1653564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using DMS application for uploading word documents in SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the following code to open a document from SAP database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CONTROL-&amp;gt;GET_DOCUMENT_PROXY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_TYPE = '207'&lt;/P&gt;&lt;P&gt;DOCUMENT_FORMAT = ''&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_PROXY = PROXY&lt;/P&gt;&lt;P&gt;RETCODE = RETCODE.&lt;/P&gt;&lt;P&gt;IF RETCODE NE C_OI_ERRORS=&amp;gt;RET_OK.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD PROXY-&amp;gt;OPEN_DOCUMENT&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_URL = DOC_URL&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OPEN_INPLACE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open_readonly = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;protect_document = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING RETCODE = RETCODE.&lt;/P&gt;&lt;P&gt;IF RETCODE NE C_OI_ERRORS=&amp;gt;RET_OK.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code open a document proxy and with help of macros we are changing some of the variables in the document.&lt;/P&gt;&lt;P&gt;Problem is when we are trying to print this proxy with help of below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD proxy-&amp;gt;print_document&lt;/P&gt;&lt;P&gt;                  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   NO_FLUSH    = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    prompt_user = 'X'&lt;/P&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    error       = error&lt;/P&gt;&lt;P&gt;                      retcode     = retcode  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code if prompt_user parameter is passed then while execution a new window session is opened for printer selection but this methods gives an error as CONTROL_INTERNAL_ERROR. when i debugged it , it was giving error as CALL_NOT_FLUSHED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we are commenting prompt_user as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD proxy-&amp;gt;print_document&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   NO_FLUSH    = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   prompt_user = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    error       = error&lt;/P&gt;&lt;P&gt;                      retcode     = retcode  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While execution printer selection window is open in the same window and nor error is passed by the method.&lt;/P&gt;&lt;P&gt;And print comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest how CALL_NOT_FLUSHED error can be eliminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Sahadev Abhyankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jan 2012 08:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-22T08:49:25Z</dc:date>
    <item>
      <title>CALL_NOT_FLUSHED error while opening word document proxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495681#M1653564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using DMS application for uploading word documents in SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the following code to open a document from SAP database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CONTROL-&amp;gt;GET_DOCUMENT_PROXY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_TYPE = '207'&lt;/P&gt;&lt;P&gt;DOCUMENT_FORMAT = ''&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_PROXY = PROXY&lt;/P&gt;&lt;P&gt;RETCODE = RETCODE.&lt;/P&gt;&lt;P&gt;IF RETCODE NE C_OI_ERRORS=&amp;gt;RET_OK.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD PROXY-&amp;gt;OPEN_DOCUMENT&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT_URL = DOC_URL&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OPEN_INPLACE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open_readonly = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;protect_document = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING RETCODE = RETCODE.&lt;/P&gt;&lt;P&gt;IF RETCODE NE C_OI_ERRORS=&amp;gt;RET_OK.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code open a document proxy and with help of macros we are changing some of the variables in the document.&lt;/P&gt;&lt;P&gt;Problem is when we are trying to print this proxy with help of below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD proxy-&amp;gt;print_document&lt;/P&gt;&lt;P&gt;                  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   NO_FLUSH    = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    prompt_user = 'X'&lt;/P&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    error       = error&lt;/P&gt;&lt;P&gt;                      retcode     = retcode  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code if prompt_user parameter is passed then while execution a new window session is opened for printer selection but this methods gives an error as CONTROL_INTERNAL_ERROR. when i debugged it , it was giving error as CALL_NOT_FLUSHED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we are commenting prompt_user as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD proxy-&amp;gt;print_document&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   NO_FLUSH    = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   prompt_user = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    error       = error&lt;/P&gt;&lt;P&gt;                      retcode     = retcode  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While execution printer selection window is open in the same window and nor error is passed by the method.&lt;/P&gt;&lt;P&gt;And print comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest how CALL_NOT_FLUSHED error can be eliminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Sahadev Abhyankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 08:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495681#M1653564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-22T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_NOT_FLUSHED error while opening word document proxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495682#M1653565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried passing no_flush = 'X' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 09:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495682#M1653565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-22T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_NOT_FLUSHED error while opening word document proxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495683#M1653566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Tried with no_flush = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then also it is giving same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 09:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495683#M1653566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_NOT_FLUSHED error while opening word document proxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495684#M1653567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just try with below before printing &amp;amp; opening the document. Refer to the examples SAPREDIT*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
                 Call Method cl_gui_cfw=&amp;gt;Flush
                    Exceptions
                      Others = 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 09:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495684#M1653567</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-01-23T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_NOT_FLUSHED error while opening word document proxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495685#M1653568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestion i tried this also, But the same error is coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 05:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-not-flushed-error-while-opening-word-document-proxy/m-p/8495685#M1653568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T05:22:19Z</dc:date>
    </item>
  </channel>
</rss>

