2007 Feb 16 4:42 AM
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
2007 Feb 16 4:49 AM
2007 Feb 16 4:53 AM
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.
2007 Feb 16 5:09 AM
2007 Feb 16 5:19 AM
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.
2007 Feb 16 4:54 AM
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