Application Development 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: 

reg report?

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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