cancel
Showing results for 
Search instead for 
Did you mean: 

print multiple pages with smart form

Former Member
0 Kudos

Hi:

Everyone.I enconter a issue when print multiple pages with smart form.

There is a PO with more items that can not display in a page.I put the item internal table into a loop in main window.

But all pages are superimposed printed in one paper.

1.What is the problem?

2.Is it automatic split pages when print the form which main window's content is too more to display in a page.

3.what is the mechanism of spool .

Regards.

The part of calling smart form function code is


call function 'SSF_FUNCTION_MODULE_NAME'    
     exporting                               
          formname     = 'ZTEST_HXG_F3'      
     importing                               
          fm_name           = fm_name        
     exceptions
          no_form            = 1
          no_function_module = 2
          others             = 3.

call function fm_name                       
*  EXPORTING                               
*   ARCHIVE_INDEX =
*   ARCHIVE_PARAMETERS =
*   CONTROL_PARAMETERS =
*   MAIL_APPL_OBJ =
*   MAIL_RECIPIENT =
*   MAIL_SENDER =
*   OUTPUT_OPTIONS =
*   USER_SETTINGS = 'X'
*    G_CARRID = <variable>
*    G_CONNID = <variable>
*    G_FLDATE = <variable>
* IMPORTING
*   DOCUMENT_OUTPUT_INFO =
*   JOB_OUTPUT_INFO =
*   JOB_OUTPUT_OPTIONS =
  tables
    itab = itab                   
  exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
*    others = 5.

Message was edited by:

Frank

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I found the reason.Haha...

Wrong page format is the murder.

raymond_giuseppi
Active Contributor
0 Kudos

Smartforms jumps to a new page when

- Explicitly asked (command node)

- When not enough lines left in main window.

Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>

Regards