<?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: Regarding SAP Scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474834#M222737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uncheck&lt;/P&gt;&lt;P&gt;- print immediately and&lt;/P&gt;&lt;P&gt;- release after output option&lt;/P&gt;&lt;P&gt;than you can preview it by transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2006 05:46:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-08T05:46:46Z</dc:date>
    <item>
      <title>Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474831#M222734</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;I have one issue in SAP Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed one SAP SCRIPT[FORM] for VL02N Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Script is working correctlly.&lt;/P&gt;&lt;P&gt;Here in &amp;lt;b&amp;gt;VL02N&amp;lt;/b&amp;gt; once we give &amp;lt;b&amp;gt;Order Number&amp;lt;/b&amp;gt; and go for &amp;lt;b&amp;gt;Print Preview&amp;lt;/b&amp;gt; one spool number will be generated in &amp;lt;b&amp;gt;SP01&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we open that file we can see the print preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now actual issue is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed a &amp;lt;b&amp;gt;Z-Transaction&amp;lt;/b&amp;gt; for the same for and we are calling above form's print program from this transaction.&lt;/P&gt;&lt;P&gt;Here we can run through multiple Order numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Actual issue over here is we want to See the print preview once we hit on &amp;lt;b&amp;gt;Print Preview&amp;lt;/b&amp;gt; button in this transaction itself. We should not go to &amp;lt;b&amp;gt;SP01&amp;lt;/b&amp;gt; and see the &amp;lt;b&amp;gt;print preview&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is it possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give solution for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should view the &amp;lt;b&amp;gt;Print Preview&amp;lt;/b&amp;gt; from my transaction only without generating any spools.&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474831#M222734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474832#M222735</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;In the print program ( Z program ), you would be using OPEN_FORM. In it there is a parameter OPTIONS of type ITCPO. Pass TDPREVIEW = `X`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474832#M222735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474833#M222736</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;I had passed the same but of no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution for this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474833#M222736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474834#M222737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uncheck&lt;/P&gt;&lt;P&gt;- print immediately and&lt;/P&gt;&lt;P&gt;- release after output option&lt;/P&gt;&lt;P&gt;than you can preview it by transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474834#M222737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474835#M222738</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;In your open_form you can find a parameter dialog --set that to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further you can also other parameters of your print parameters by passing a structure of type ITCPO in your open_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still not clear, give me the code let me revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the information is helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if convinced with the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474835#M222738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474836#M222739</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;put like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; call function 'OPEN_FORM'
    exporting
      application                 = 'TX'
      device                      = 'PRINTER'
      dialog                      = 'X'
      form                        = 'YW2_DBNOTE'
      language                    = sy-langu&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;to avoid spool u have to pass the options , there u can eliminate spool request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 05:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474836#M222739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T05:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAP Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474837#M222740</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;Atually i had copied standard program RVADOPFO to Z Program and used OPEN_FORM in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had checked DIALOG = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITCPO = LVS_ITCPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LVS_ITCPO paramters i am passing are &lt;/P&gt;&lt;P&gt;TDDEST = 'LP01'.&lt;/P&gt;&lt;P&gt;TDPREVIEW = 'X'.&lt;/P&gt;&lt;P&gt;TDIMMED = 'X'.&lt;/P&gt;&lt;P&gt;TDARMOD = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDPROGRAM &amp;amp; TDRECEIVER  are also filled up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code for OPEN_FORM is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* open form&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;           APPLICATION        = 'TX'&lt;/P&gt;&lt;P&gt;            ARCHIVE_INDEX      = TOA_DARA&lt;/P&gt;&lt;P&gt;            ARCHIVE_PARAMS     = ARC_PARAMS&lt;/P&gt;&lt;P&gt;            DEVICE             = LVF_DEVICE&lt;/P&gt;&lt;P&gt;            DIALOG             = 'X'&lt;/P&gt;&lt;P&gt;            FORM               = TNAPR-FONAM&lt;/P&gt;&lt;P&gt;            LANGUAGE           = NAST-SPRAS&lt;/P&gt;&lt;P&gt;            OPTIONS            = LVS_ITCPO&lt;/P&gt;&lt;P&gt;            MAIL_SENDER        = LVS_SENDER&lt;/P&gt;&lt;P&gt;            MAIL_RECIPIENT     = LVS_RECIPIENT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          MAIL_APPL_OBJECT   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          RAW_DATA_INTERFACE = '*'&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;          LANGUAGE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          NEW_ARCHIVE_PARAMS =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          RESULT             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            CANCELED           = 1&lt;/P&gt;&lt;P&gt;            DEVICE             = 2&lt;/P&gt;&lt;P&gt;            FORM               = 3&lt;/P&gt;&lt;P&gt;            OPTIONS            = 4&lt;/P&gt;&lt;P&gt;            UNCLOSED           = 5&lt;/P&gt;&lt;P&gt;            MAIL_OPTIONS       = 6&lt;/P&gt;&lt;P&gt;            ARCHIVE_ERROR      = 7&lt;/P&gt;&lt;P&gt;            OTHERS             = 8.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;      WHEN 7.&lt;/P&gt;&lt;P&gt;        RETCODE = SY-SUBRC.&lt;/P&gt;&lt;P&gt;        SYST-MSGID = 'VN'.&lt;/P&gt;&lt;P&gt;        SYST-MSGNO = '096'.&lt;/P&gt;&lt;P&gt;        SYST-MSGTY = 'E'.&lt;/P&gt;&lt;P&gt;        SYST-MSGV1 = NAST-KSCHL.&lt;/P&gt;&lt;P&gt;        SYST-MSGV2 = NAST-KAPPL.&lt;/P&gt;&lt;P&gt;        PERFORM PROTOCOL_UPDATE.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        RETCODE = SY-SUBRC.&lt;/P&gt;&lt;P&gt;        PERFORM PROTOCOL_UPDATE.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  SET COUNTRY US_COUNTRY.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 06:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sap-scripts/m-p/1474837#M222740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T06:05:43Z</dc:date>
    </item>
  </channel>
</rss>

