<?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: Problem in BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227033#M1628736</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;What is the format of your document?&lt;/P&gt;&lt;P&gt;You should probably use the EXECUTE method of the class CL_GUI_FRONTEND_SERVICES to achieve that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example to print a PDF document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
            cl_gui_frontend_services=&amp;gt;execute( 
              EXPORTING
                application = l_appl       "Full path to AcroRd32 executable
                parameter = l_param        "/n /t [filename] 
                synchronous = 'X'
              EXCEPTIONS
                cntl_error = 1
                error_no_gui = 2
                bad_parameter = 3
                file_not_found = 4
                path_not_found = 5
                file_extension_unknown = 6
                error_execute_failed = 7
                synchronous_failed = 8
                not_supported_by_gui = 9 ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning the parameter passed to acrobat reader:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/n = Launch a separate instance of the Acrobat application, even if one is currently open.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/t = Used to initiates the Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means also that the document must be downloaded first...but can be deleted right after printing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Sep 2011 21:10:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-24T21:10:55Z</dc:date>
    <item>
      <title>Problem in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227032#M1628735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a program for shipping advice and created transaction for this then I did BDC recording for this transaction&lt;/P&gt;&lt;P&gt;and in between I am calling printer (RSPO_FRONTEND_PRINTERS_FOR_DEV) to print the document.&lt;/P&gt;&lt;P&gt;The problem I am facing is the dialog for print will open if I run program in foreground (Mode 'A') but if run in background the print dialog will not open.&lt;/P&gt;&lt;P&gt;could anyone suggest me that how can I fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RSPO_FRONTEND_PRINTERS_FOR_DEV'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DEVICE         = 'LOCL'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      PRDEFAULT      = V_DEFUALT_PRINTER&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LIST           = L_PRLIST&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NO_LIST        = 1&lt;/P&gt;&lt;P&gt;      LIST_TRUNCATED = 2&lt;/P&gt;&lt;P&gt;      NAME_NOT_FOUND = 3&lt;/P&gt;&lt;P&gt;      OTHERS         = 4.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E600(FR) WITH 'Error on CALL FUNCTION "GET_DEFAULT_PRINTER" process. '.&lt;/P&gt;&lt;P&gt;    V_ERROR = 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 03:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227032#M1628735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T03:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227033#M1628736</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;What is the format of your document?&lt;/P&gt;&lt;P&gt;You should probably use the EXECUTE method of the class CL_GUI_FRONTEND_SERVICES to achieve that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example to print a PDF document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
            cl_gui_frontend_services=&amp;gt;execute( 
              EXPORTING
                application = l_appl       "Full path to AcroRd32 executable
                parameter = l_param        "/n /t [filename] 
                synchronous = 'X'
              EXCEPTIONS
                cntl_error = 1
                error_no_gui = 2
                bad_parameter = 3
                file_not_found = 4
                path_not_found = 5
                file_extension_unknown = 6
                error_execute_failed = 7
                synchronous_failed = 8
                not_supported_by_gui = 9 ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning the parameter passed to acrobat reader:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/n = Launch a separate instance of the Acrobat application, even if one is currently open.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/t = Used to initiates the Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means also that the document must be downloaded first...but can be deleted right after printing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Sep 2011 21:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227033#M1628736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-24T21:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227034#M1628737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 08:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227034#M1628737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-14T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227035#M1628738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesh,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;                      Please post how you solved your issue.If you solved by previous post ,give reward points or mention how you solved.In future it will be helpful for others.it's my humble Request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 08:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/8227035#M1628738</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2011-12-14T08:52:33Z</dc:date>
    </item>
  </channel>
</rss>

