Code: Alles auswählen.
TYPES: BEGIN OF l_struc_data,
name(20) TYPE c,
vorname(60) TYPE c,
strasse(60) TYPE c,
END OF l_struc_data.
DATA: l_wa_data TYPE l_struc_data,
l_it_data TYPE STANDARD TABLE OF l_struc_data.
read report 'write_spool' into l_it_code.
modify l_it_code index 9 from
'report test_test no standard page heading'.
modify l_it_code index 10 from
'line-size 140'.
modify l_it_code index 10 from
'line-count 60(5).'.
insert report 'yetr_test_test' from l_it_code.
SUBMIT test_test TO SAP-SPOOL
DESTINATION 'LOCL' "existentes Ausgabegerät
LIST NAME 'PDFTEMP' "Name des Spoolauftrags
IMMEDIATELY '' "nicht ausdrucken
KEEP IN SPOOL 'X' "im Spool belassen
DATASET EXPIRATION 3
RECEIVER sy-uname
WITHOUT SPOOL DYNPRO AND RETURN.