Application Development and Automation 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: 
Read only

Spoolfile creation

Former Member
0 Likes
447

Guys,

Please let me know how to create the spool file.

regards,

vijay

2 REPLIES 2
Read only

Former Member
0 Likes
408

Hi Vijay,

Check out the following code sample to create spool.

data: loc_dest like pri_params-pdest .

clear : wf_listname , loc_dest , wf_listtext .

move: 'List name' to wf_listname .

move: 'List header text' to wf_listtext .

select single spld into usr01-spld from usr01 where bname eq sy-uname .

if sy-subrc eq 0 .

move: usr01-spld to loc_dest .

endif .

call function 'GET_PRINT_PARAMETERS'

exporting

destination = loc_dest

copies = wf_copies

list_name = wf_listname

list_text = wf_listtext

immediately = ' '

release = ' '

new_list_id = 'X'

expiration = wf_days

line_size = 200

line_count = 65

layout = 'X_65_200'

sap_cover_page = 'X'

receiver = 'SAP*'

department = ''

no_dialog = 'X'

importing

out_parameters = wf_params

valid = wf_valid.

if wf_valid <> space.

new-page print on parameters wf_params no dialog.

perform write_summary .

new-page print off.

endif .

within the write_summary do a normal write operation.

loop at <itab> .

write:/

endloop .

Regards,

Abhy

Read only

Former Member
0 Likes
408

Hi,

use FM

Get_print_papameters and

new-page print on

new-page print off option

Regards,

Amole