<?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: Batch printing in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327073#M167408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Printing a Smartform is always about calling the function module generated for this form. Calling the FM is done from a printing program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put this program into a job using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN' &lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;    jobname          = name &lt;/P&gt;&lt;P&gt;  IMPORTING &lt;/P&gt;&lt;P&gt;    jobcount         = number &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    cant_create_job  = 1 &lt;/P&gt;&lt;P&gt;    invalid_job_data = 2 &lt;/P&gt;&lt;P&gt;    jobname_missing  = 3 &lt;/P&gt;&lt;P&gt;    OTHERS           = 4. &lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;" FOR each PERNR&lt;/P&gt;&lt;P&gt;  SUBMIT submitable TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;                    SPOOL PARAMETERS print_parameters &lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;                    VIA JOB name NUMBER number &lt;/P&gt;&lt;P&gt;                    AND RETURN. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;then when you want to execute the job, call this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_CLOSE' &lt;/P&gt;&lt;P&gt;      EXPORTING &lt;/P&gt;&lt;P&gt;        jobcount             = number &lt;/P&gt;&lt;P&gt;        jobname              = name &lt;/P&gt;&lt;P&gt;        strtimmed            = 'X' &lt;/P&gt;&lt;P&gt;      EXCEPTIONS &lt;/P&gt;&lt;P&gt;        cant_start_immediate = 1 &lt;/P&gt;&lt;P&gt;        invalid_startdate    = 2 &lt;/P&gt;&lt;P&gt;        jobname_missing      = 3 &lt;/P&gt;&lt;P&gt;        job_close_failed     = 4 &lt;/P&gt;&lt;P&gt;        job_nosteps          = 5 &lt;/P&gt;&lt;P&gt;        job_notex            = 6 &lt;/P&gt;&lt;P&gt;        lock_failed          = 7 &lt;/P&gt;&lt;P&gt;        OTHERS               = 8. &lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2006 12:43:44 GMT</pubDate>
    <dc:creator>franois_henrotte</dc:creator>
    <dc:date>2006-05-24T12:43:44Z</dc:date>
    <item>
      <title>Batch printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327070#M167405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;i have a problem to perform batch printing and process batch printing at a button click and here is the detail explanation of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Front End Screen will be a selection screen with (1) radio buttons listing all form letters, a field for Date of the form, (2) a field for Employee Number (PERNR), (3) a field for Request Date, (4) a field for Request Reason, (5) &amp;lt;b&amp;gt;a selection for Print Now or Print Batch&amp;lt;/b&amp;gt;, and (6) &amp;lt;b&amp;gt;a Process Batch button&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when Radio Button for one of the Forms selected, the User will then select the Print Now or Print Batch option. If the Print Now option was selected, the selected form will be immediately generated and printed. If the Print Batch option has been selected, the data on the Front End Screen will be stored in a batch file for processing and printing en masse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen when ready to print the batch file of forms. When the Process Batch button is selected, any forms that are stored in the batch file are then processed (created and printed). Forms may be printed multiple times (one for the employee, one for the employee&amp;#146;s supervisor and one for the personnel file). Each form detailed below will indicate the number of copies to be printed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 15:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327070#M167405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Batch printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327071#M167406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would not try to buffer output in a file.&lt;/P&gt;&lt;P&gt;You should create a batch job with start date 99991231 and add printing programs to it as new steps when you click on button 'print batch'.&lt;/P&gt;&lt;P&gt;Then when you click on 'process batch' you release the job with flag 'immediate'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 14:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327071#M167406</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-17T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327072#M167407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi François Henrotte,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am really new to smartforms, Can u please explain in detail the process of "Print Batch" and " process Batch".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have sample code that would be really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 16:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327072#M167407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch printing in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327073#M167408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Printing a Smartform is always about calling the function module generated for this form. Calling the FM is done from a printing program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put this program into a job using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN' &lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;    jobname          = name &lt;/P&gt;&lt;P&gt;  IMPORTING &lt;/P&gt;&lt;P&gt;    jobcount         = number &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    cant_create_job  = 1 &lt;/P&gt;&lt;P&gt;    invalid_job_data = 2 &lt;/P&gt;&lt;P&gt;    jobname_missing  = 3 &lt;/P&gt;&lt;P&gt;    OTHERS           = 4. &lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;" FOR each PERNR&lt;/P&gt;&lt;P&gt;  SUBMIT submitable TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;                    SPOOL PARAMETERS print_parameters &lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;                    VIA JOB name NUMBER number &lt;/P&gt;&lt;P&gt;                    AND RETURN. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;then when you want to execute the job, call this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_CLOSE' &lt;/P&gt;&lt;P&gt;      EXPORTING &lt;/P&gt;&lt;P&gt;        jobcount             = number &lt;/P&gt;&lt;P&gt;        jobname              = name &lt;/P&gt;&lt;P&gt;        strtimmed            = 'X' &lt;/P&gt;&lt;P&gt;      EXCEPTIONS &lt;/P&gt;&lt;P&gt;        cant_start_immediate = 1 &lt;/P&gt;&lt;P&gt;        invalid_startdate    = 2 &lt;/P&gt;&lt;P&gt;        jobname_missing      = 3 &lt;/P&gt;&lt;P&gt;        job_close_failed     = 4 &lt;/P&gt;&lt;P&gt;        job_nosteps          = 5 &lt;/P&gt;&lt;P&gt;        job_notex            = 6 &lt;/P&gt;&lt;P&gt;        lock_failed          = 7 &lt;/P&gt;&lt;P&gt;        OTHERS               = 8. &lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 12:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-printing-in-smartforms/m-p/1327073#M167408</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-24T12:43:44Z</dc:date>
    </item>
  </channel>
</rss>

