<?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: SAP script driver program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697584#M1577660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        form = 'Z_J1_I_ARE1'. 

 CALL FUNCTION 'START_FORM'
        EXPORTING
          form = 'Z_J1_I_ARE1'.

PERFORM write_form USING 'TEST' 'MAIN'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM write_form USING element TYPE c wind TYPE c.

  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      element = element
      window  = wind.
ENDFORM.                    " write_form
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;only write as follow don't pass any parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CLOSE_FORM'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 08:13:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-03T08:13:28Z</dc:date>
    <item>
      <title>SAP script driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697583#M1577659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP ABAP Technical consultants,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a doubt in SAP standard script. The SAP Script driver program name -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Y_J1IPRNTARE and its Script form name --- Y_J1_I_ARE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be converting the standard script into as per my client requirement. I have modified in the SAP Script and added new titles and headings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied all these into separately and its driver program name -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Z_J1IPRNTARE,  script form name -- Z_J1_I_ARE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For basically we required three kinds of functional modules in SAP Script.  They are open_form, write_form and close_form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have to changed in the form name in start_form FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL 'open_form'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; APPLICATION                       = 'TX'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;P&gt;   DIALOG                            = 'X'&lt;/P&gt;&lt;P&gt;   FORM                              = 'Z_J1_I_ARE1'&lt;/P&gt;&lt;P&gt;   LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     element                        = element&lt;/P&gt;&lt;P&gt;     function                       = fnction&lt;/P&gt;&lt;P&gt;     type                           = 'BODY'&lt;/P&gt;&lt;P&gt;     window                         = window&lt;/P&gt;&lt;UL&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;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     element                        = 1&lt;/P&gt;&lt;P&gt;     function                       = 2&lt;/P&gt;&lt;P&gt;     type                           = 3&lt;/P&gt;&lt;P&gt;     unopened                       = 4&lt;/P&gt;&lt;P&gt;     unstarted                      = 5&lt;/P&gt;&lt;P&gt;     window                         = 6&lt;/P&gt;&lt;P&gt;     bad_pageformat_for_print       = 7&lt;/P&gt;&lt;P&gt;     spool_error                    = 8&lt;/P&gt;&lt;P&gt;     codepage                       = 9&lt;/P&gt;&lt;P&gt;     OTHERS                         = 10&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     RESULT                         = RESULT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTFDATA                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     unopened                       = 1&lt;/P&gt;&lt;P&gt;     OTHERS                         = 6&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the functional modules i have used. And finally I have checked and activated. when executing the driver program it is not showing performing any action even it is not showing error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it is happening ? Can anyone help to me how to handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 06:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697583#M1577659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T06:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697584#M1577660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        form = 'Z_J1_I_ARE1'. 

 CALL FUNCTION 'START_FORM'
        EXPORTING
          form = 'Z_J1_I_ARE1'.

PERFORM write_form USING 'TEST' 'MAIN'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM write_form USING element TYPE c wind TYPE c.

  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      element = element
      window  = wind.
ENDFORM.                    " write_form
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;only write as follow don't pass any parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CLOSE_FORM'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697584#M1577660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697585#M1577661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you assigned your print program (Z Print Program) and your Script ( Z script ) in NACE Transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ganesh Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697585#M1577661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T08:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697586#M1577662</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;You can check the following code.You can get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  call function 'OPEN_FORM'
   exporting
   application                        = 'TX'
*   ARCHIVE_INDEX                     =
*   ARCHIVE_PARAMS                    =
   device                             = 'PRINTER'
   dialog                             = 'X'
     form                             = 'Zformname'
     language                         = sy-langu
*   OPTIONS                           =
*   MAIL_SENDER                       =
*   MAIL_RECIPIENT                    =
*   MAIL_APPL_OBJECT                  =
*   RAW_DATA_INTERFACE                = '*'
*   SPONUMIV                          =
* IMPORTING
*   LANGUAGE                          =
*   NEW_ARCHIVE_PARAMS                =
*   RESULT                            =
   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 'S' number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.                             


    call function 'WRITE_FORM'
     exporting
       element                        = 'DATA1'
       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 'S' 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 'S' number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.                               
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697586#M1577662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T08:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697587#M1577663</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;AM not understanding that why you copied the standard Driver program into Custom Driver Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can enhance the Standard program by adding  Subroutine statement in the Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just think you are having many forms for one Standard T-codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At that time we are using the Start form . Means that which form needs to printed at that time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-driver-program/m-p/7697587#M1577663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T08:51:33Z</dc:date>
    </item>
  </channel>
</rss>

