<?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 disbale print preview in scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131842#M111901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sthere any way to disable print preview for users in script.. such as the button disbaled or not availble???&lt;/P&gt;&lt;P&gt;2)Is there any way to  prevent a program from executed in foreground (the execute button should be disabled if that can be done) Can we use s-batch to check in such cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2006 18:02:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-07T18:02:04Z</dc:date>
    <item>
      <title>disbale print preview in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131842#M111901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sthere any way to disable print preview for users in script.. such as the button disbaled or not availble???&lt;/P&gt;&lt;P&gt;2)Is there any way to  prevent a program from executed in foreground (the execute button should be disabled if that can be done) Can we use s-batch to check in such cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131842#M111901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T18:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: disbale print preview in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131843#M111902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can disable the execute in foreground this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

* Used to limit user commands on selection-screen
include rsdbc1xx.

* Selection Screen
parameters: p_check type c.

* Events
at selection-screen output.

  append 'PRIN' to current_scr-excl.
  append 'ONLI' to current_scr-excl.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131843#M111902</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-07T18:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: disbale print preview in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131844#M111903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rich Can we do any thing in se71 or nace or nact to disable print preview or can we make the script directly to print instead of giving option to preview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131844#M111903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T18:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: disbale print preview in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131845#M111904</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;if you don't want preview then you need to pass &lt;/P&gt;&lt;P&gt;itcpo-TDNOPREV = 'X'.along with other parameters, and pass this ITCPO structure to open_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131845#M111904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: disbale print preview in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131846#M111905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_SCRIPT.
TABLES: ekpo.

DATA: var1 TYPE i VALUE '000145-',
      var2(10) TYPE c VALUE 'venkata',
      var3 TYPE i VALUE '-000135',
      var4(10) TYPE n VALUE '00000001',
      var5(15) TYPE c VALUE 'test',
      var6(13) TYPE p DECIMALS 3 VALUE '1234.54',
      var7(10) TYPE c VALUE 'hello',
      var8 TYPE i VALUE '000000',
      v_matnr TYPE ekpo-matnr,
      v_empty(10) TYPE c VALUE ' '.


SELECT SINGLE * FROM ekpo WHERE
       ebeln = '4500000262'.
IF sy-subrc = 0.
  v_matnr = ekpo-matnr.
ENDIF.
CLEAR ekpo.

SELECT SINGLE * FROM ekpo WHERE
ebeln = '4500000261'.
&amp;lt;b&amp;gt;data: ITCPO type ITCPO.
itcpo-TDNOPREV = 'X'.&amp;lt;/b&amp;gt;
CALL FUNCTION 'OPEN_FORM'
 EXPORTING
   FORM                              = 'ZTEST_SCRIPT1'
&amp;lt;b&amp;gt;   OPTIONS                           = itcpo&amp;lt;/b&amp;gt;
 EXCEPTIONS
   CANCELED                          = 1
   DEVICE                            = 2
   FORM                              = 3
   OPTIONS                           = 4
   UNCLOSED                          = 5
   MAIL_OPTIONS                      = 6
   ARCHIVE_ERROR                     = 7
   INVALID_FAX_NUMBER                = 8
   MORE_PARAMS_NEEDED_IN_BATCH       = 9
   SPOOL_ERROR                       = 10
   CODEPAGE                          = 11
   OTHERS                            = 12
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


CALL FUNCTION 'WRITE_FORM'
 EXPORTING
   ELEMENT                        = 'MAIN'
   FUNCTION                       = 'SET'
   TYPE                           = 'BODY'
   WINDOW                         = 'MAIN'
* IMPORTING
*   PENDING_LINES                  =
 EXCEPTIONS
   ELEMENT                        = 1
   FUNCTION                       = 2
   TYPE                           = 3
   UNOPENED                       = 4
   UNSTARTED                      = 5
   WINDOW                         = 6
   BAD_PAGEFORMAT_FOR_PRINT       = 7
   SPOOL_ERROR                    = 8
   CODEPAGE                       = 9
   OTHERS                         = 10
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


CALL FUNCTION 'CLOSE_FORM'
* IMPORTING
*   RESULT                         =
*   RDI_RESULT                     =
* TABLES
*   OTFDATA                        =
* EXCEPTIONS
*   UNOPENED                       = 1
*   BAD_PAGEFORMAT_FOR_PRINT       = 2
*   SEND_ERROR                     = 3
*   SPOOL_ERROR                    = 4
*   CODEPAGE                       = 5
*   OTHERS                         = 6
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disbale-print-preview-in-scripts/m-p/1131846#M111905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T18:48:06Z</dc:date>
    </item>
  </channel>
</rss>

