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

Genetare the spool request

Former Member
0 Likes
552

Dear friends,

I have to generate the spool request no by self written code.

I want to creat this against an invoice no. TC : vf02

Can any one help me pelase.

Thanks and Regards

vivek srivastava

Dear friends,

I have to generate the spool request no by self written code.

I want to creat this against an invoice no. TC : vf02

Can any one help me pelase.

Thanks and Regards

vivek srivastava

3 REPLIES 3
Read only

Former Member
0 Likes
531

hi,

if you go to transaction Sp01 then if you will do the F1 on first field then you will get spool request table which is Tsp01

in this table you can select the field RQIDENT(Spool request number) and RQOWNER(User name) everytime the program goes for printing. similarly you can catch the number and generate it in your progarm.

Read only

Former Member
0 Likes
531

Hi

You can initiate a spool by the following statement

NEW-PAGE PRINT ON.

This is will create a spool for you taking the default print parameters.

You can also, do this way:

Call

call function 'GET_PRINT_PARAMETERS'

exporting

destination = lc_locl

immediately = space

layout = gc_layout

line_count = 65

line_size = 255

list_name = lv_listname

new_list_id = gc_x

no_dialog = gc_x

user = sy-uname

importing

out_parameters = gx_mstr_print_parms

valid_for_spool_creation = gv_valid

exceptions "#EC *

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

others = 4.

And then,

NEW-PAGE PRINT ON.

Regards

Raj

Read only

Former Member
0 Likes
531

thanks