10-08-2007 6:16 PM
Hi,
1.can anybody tel me how to save a report in a spool and see the report in a saved in a spool.????
2.am giving material number and plant on a selection screen....and am doing various retrievals.....now how to find out <b>the number of material and plant combinations selected</b>?????
POINTS WILL BE GIVEN FOR SURE...
Thanx in advance..
Regards,
Jay
10-08-2007 7:08 PM
Hi
Submit the report in background with the print parameters as below
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT yreport
WITH s_mat IN s_matnr
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
2. Write a select statement to MARC table where the records are stored on MATNR and WERKS(PLANT) basis
fetch them to an internal table and see the number of entries in internal table
Regards
Anji