Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Print List to spool but skip the print parameter window?

Former Member
0 Kudos

Dear all,

I am coding a program for print list into spool.

But every times I run the program there must pop up a print parameter window, after I click the 'Continue' button,then the list print to spool.

Is there some way that I can just run the program and print to spool directly?

Thank you for your kindness help~~~

Message was edited by: jin yan

10 REPLIES 10

Former Member
0 Kudos

Set the Dialog field to space, then u will not get a pop up. I hope u are using the print FM. If so this parameter should be turned off to space.

Hope this helps.

0 Kudos

pass the parameter

<b>no_dialog = 'X'.</b>

regards

vijay

0 Kudos

function SET_PRINT_PARAMETERS don't have the import

no_dailog~~~

is there anywhere set the no_dailog flag?

Thank you vijay

0 Kudos

Hi Jin,

The FM SET_PRINT_PARAMETERS in turn vall get_print_parameters, for which the no_dialog flag is already set to 'X'. are you still sure it is because of this FM only, it is popping the dialogue??

Regards,

Ravi

0 Kudos

Hi,

Where areyou calling this function? It should be in the INIALIZATION ie before the START-OF-SELECTION event.

The function module SET_PRINT_PARAMETERS sets the print parameters for the following print functions:1. Starting a a report with Execute + print. In this case, you must call the function module before the print parameter screen, i.e. during one of the events INITIALIZATION or AT SELECTION-SCREEN.

2. Printing an online list. In this case, you must call the function module some time before the end of the program.

Regards,

Suresh Datti

Former Member
0 Kudos

Hi,

If it is a report program then, use this code.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING DESTINATION = 'LP01'

COPIES = COUNT

LIST_NAME = 'TEST'

LIST_TEXT = 'SUBMIT rep... TO SAP-SPOOL'

IMMEDIATELY = 'X'

RELEASE = 'X'

NEW_LIST_ID = 'X'

EXPIRATION = DAYS

LINE_SIZE = 79

LINE_COUNT = 23

LAYOUT = 'X_PAPER'

SAP_COVER_PAGE = 'X'

COVER_PAGE = 'X'

RECEIVER = 'SAP*'

DEPARTMENT = 'System'

NO_DIALOG = 'X'

IMPORTING OUT_PARAMETERS = PARAMS

VALID = VALID.

IF VALID <> SPACE.

SUBMIT RSTEST00 TO SAP-SPOOL

SPOOL PARAMETERS PARAMS

WITHOUT SPOOL DYNPRO.

ENDIF.

Hope This Info Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav

0 Kudos

Thank you every body help me.

I have solve the problem~~~~

Have a good day ~~~~

Message was edited by: jin yan

Former Member
0 Kudos

Hi Jin,

Use

NEW-PAGE LINE-SIZE sy-linsz PRINT ON NO DIALOG

IMMEDIATELY ' ' " X means print now

KEEP IN SPOOL c_x. " X means keep spool

<b><Have your code to display list></b>

NEW-PAGE PRINT OFF.

This will generate the spool. You can get the spool no by system variable <b>sy-spono</b>

Regards,

Raj

Former Member
0 Kudos

Hi Jin,

1. I am coding a program for print list into spool.

Are u writing a normal program with some output

to print (directly without dialog box)

or something else?

regards,

amit m.

Former Member
0 Kudos

Hi Jin,

1. new-page print on no dialog.

use this for direct-printing.

regards,

amit m.