Hello
Need your help to fix a problem. we are working on creation of Transaction screen for a financial data. How do I link this transaction screen with a report program so that when I click on "Push Button" for Print command on Transaction screen , it should refer to the contents/requirements of the Report Program and then give the desired display printout
Hi,
When you click the pushbutton, then call the Report program, Just use the Submit Statment.
You can send a list from a called program directly to the spool system instead of displaying it on the screen. To do this, use the TO SAP-SPOOL addition in the SUBMIT statement:
SUBMIT... TO SAP-SPOOL print-parameters.
REPORT sapmzts1. TABLES spfli. GET spfli. NEW-LINE. WRITE: spfli-mandt, spfli-carrid, spfli-connid, spfli-cityfrom, spfli-airpfrom, spfli-cityto, spfli-airpto, spfli-fltime, spfli-deptime, spfli-arrtime, spfli-distance, spfli-distid, spfli-fltype. The following program calls sapmzts1 and sends the output to the spool system: REPORT demo_list_submit_to_spool NO STANDARD PAGE HEADING. DATA: val(1) TYPE c, pripar TYPE pri_params, arcpar TYPE arc_params. CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING layout = 'X_65_132' line_count = 65 line_size = 132 IMPORTING out_parameters = pripar out_archive_parameters = arcpar valid = val EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4. IF val <> space AND sy-subrc = 0. SUBMIT demo_list_output TO SAP-SPOOL SPOOL PARAMETERS pripar ARCHIVE PARAMETERS arcpar WITHOUT SPOOL DYNPRO. ENDIF.
Regards
Sudheer
Add a comment