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

write to spool

Former Member
0 Likes
731

Hi All,

am writing a report.

in my spec there is statement called Write to spool. – The selection criteria should have F4 help.

can any one help me in this.

Please provide me code.

Thanks&Regards.

Ramu

5 REPLIES 5
Read only

Former Member
0 Likes
635

Hi,

U have to print right?

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

SELECT-OPTIONS: P_DEST FOR TSP01-RQDEST NO INTERVALS OBLIGATORY.

SELECTION-SCREEN END OF BLOCK B2.

Read only

0 Likes
635

yes

can u brief about this.

Thanks

ramu.

Read only

0 Likes
635

You want the output device i.e the printer name in the selection screen right?

The specified code will do so. Press F4 and u can search ur printer.

The table <b>TSP01</b> will hold the Spool Requests.

If u want some thing else like SPOOL number

PARAMETERS: P_SPOOL LIKE TSP01-RQIDENT

.

Then u have to code something liek this and process

    SELECT * INTO TABLE I_SPOOL
      FROM TSP01
      WHERE RQCLIENT  = SY-MANDT
        AND RQDEST    = P_RQDEST
        AND RQIDENT   IN R_SPOOL.
SELECT-OPTIONS: R_SPOOL FOR TSP01-RQIDENT.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
635

Hi

You can achieve the search help for selection-screen fields thru

F4_int_table_value_request FM:

Write to spool means using the FM:

PERFORM get_print_parameters USING spool_name.

we can send the data to the content.

Regards,

kumar