cancel
Showing results for 
Search instead for 
Did you mean: 

No print and print preview in smartforms

Former Member
0 Kudos

Hi,

Need to run a form without anything being displayed or sent to spool, All I want is that the form returns its total number of pages.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

DATA:

form_name TYPE rs38l_fnam,

wa_ctrlop TYPE ssfctrlop,

wa_outopt TYPE ssfcompop.

WA_CPARAMETERS-PREVIEW = 'X'. " NO PREVIEW THE OUTPUT OF THE FORM

wa_ctrlop-no_dialog = 'X'. " DO NOT SHOW DIALOG

wa_ctrlop-getotf = 'X' . " GET OTF DATA

wa_outopt-tdnoprev = 'X'.

Regards,

Sravanthi

Former Member
0 Kudos

Solved,

sfsy-jobpages for total spool pages, and form functions can return the page count so the next form starts from there.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

When you activate the smartform, it generates an FM right..in that there is a structure called control_parameters. In that you have to pass X to NO_DIALOG, and space to PREVIEW.

Regards,

Vishwa.

Former Member
0 Kudos

Hi,

Hope the following threads will help you regarding your problem.

Thanks.

Nitesh