0% found this document useful (0 votes)
113 views

How to Print Smartform with Multiple Pages in Single Spool SAP ABAP

The document provides instructions on how to print Smartforms with multiple pages in a single spool in SAP ABAP. It includes specific function calls and control parameters that need to be set to ensure the spool is not closed until all data is processed. Additionally, it addresses potential exceptions that may arise during the printing process.

Uploaded by

ANDRE DWI CAHYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

How to Print Smartform with Multiple Pages in Single Spool SAP ABAP

The document provides instructions on how to print Smartforms with multiple pages in a single spool in SAP ABAP. It includes specific function calls and control parameters that need to be set to ensure the spool is not closed until all data is processed. Additionally, it addresses potential exceptions that may arise during the printing process.

Uploaded by

ANDRE DWI CAHYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

How to Print Smartform with Multiple Pages in Single Spool | SAP ABAP https://belajarabap.wordpress.com/2018/08/23/how-to-print-smartform-w...

Advertisements

R E P O RT T H I S A D

SAP ABAP
Belajar ABAP

About ABAP HR Enhancement BAPIs & FMs QuickTips

How to Print Smartform with


Multiple Pages in Single Spool
abaper / August 23, 2018

Here’s the parameter you need to set when printing multiple page in one spool.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'


EXPORTING
formname = formname
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.

loop at t_data.
AT FIRST.
ssfctrlop-no_close = 'X'. "do not close spool
ENDAT.
AT LAST.
ssfctrlop-no_close = space. "close the spool at the end of data
ENDAT.

CALL FUNCTION fm_name


EXPORTING
control_parameters = ssfctrlop

1 of 5 19/05/2021, 10:52
How to Print Smartform with Multiple Pages in Single Spool | SAP ABAP https://belajarabap.wordpress.com/2018/08/23/how-to-print-smartform-w...

output_options = ssfcompop
user_settings = tdbool
data = t_data
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.

ssfctrlop-no_open = 'X'. "do not open new spool


endloop.

Advertisements

Thomastown Thomastown Thomastown


3 bedrooms 3 bedrooms 3 bedrooms
For Sale For Sale For Sale
View View View
R E P O RT T H I S A D

Share this:

    

Like
Be the first to like this.

August 23, 2018 in ABAP. Tags: ABAP, form, multiple, print, smartforms, spool

Related posts

Calling Converting Spool Convert


Smartforms from to PDF Smartform to
ABAP Program PDF

← Unicode Conversion Error List ABAP ARITHMETIC OPERATORS →

2 thoughts on “How to Print Smartform with Multiple Pages in

2 of 5 19/05/2021, 10:52
How to Print Smartform with Multiple Pages in Single Spool | SAP ABAP https://belajarabap.wordpress.com/2018/08/23/how-to-print-smartform-w...

Single Spool”

vani August 22, 2019 at 12:47 pm

is there any data declaration is available for ssfctrlop-no_close and ssfctrlop-no_open.

Reply

abaper August 26, 2019 at 4:47 pm

Hi Vani,
Yo can declare it using structure ssfctrlop:
data: SSFCTRLOP TYPE SSFCTRLOP.

Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Advertisements

3 of 5 19/05/2021, 10:52
How to Print Smartform with Multiple Pages in Single Spool | SAP ABAP https://belajarabap.wordpress.com/2018/08/23/how-to-print-smartform-w...

Find

Search …

Archives

Select Month

Translate

Select Language
Powered by Translate

Recent Comments

Moh. Nizam Thursana on Function Module for FI Park Do…

abaper on How to use Microsoft Word as F…

fachriem on How to use Microsoft Word as F…

abaper on F4 help in editable ALV Grid

abaper on Download Smartform to Local…

Top Posts & Pages

4 of 5 19/05/2021, 10:52
How to Print Smartform with Multiple Pages in Single Spool | SAP ABAP https://belajarabap.wordpress.com/2018/08/23/how-to-print-smartform-w...

Add Custom Field on Material Master MM01/MM02/MM03

F4 help in editable ALV Grid

Download PDF File from SAP Server to Local PC

Create Function Module to Display Graph/Chart Using CL_GUI_CHART_ENGINE

Download File Excel with Header

Advertisements

R E P O RT T H I S A D

Website Powered by WordPress.com.

5 of 5 19/05/2021, 10:52

You might also like