Code: Alles auswählen.
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
RQIDENT = var_rqident
TABLES
BUFFER = it_spool
.
loop at it_spool.
WRITE / it_spool-spool.
if it_spool-spool CP '#5' OR it_spool CP '| ' OR it_spool-spool CP '--------*' OR it_spool-spool CP '|--------*'
OR it_spool-spool CS 'Records Passed'.
var_index = sy-tabix.
delete it_spool INDEX var_index.
endif.
endloop.
Code: Alles auswählen.
loop at it_spool.
move it_spool to t_string.
concatenate t_string CL_ABAP_CHAR_UTILITIES=>NEWLINE into t_string.
append t_string.
endloop.
Code: Alles auswählen.
loop at it_spool.
move it_spool to t_string.
concatenate t_string CL_ABAP_CHAR_UTILITIES=>NEWLINE into t_string.
append t_string.
endloop.
Code: Alles auswählen.
loop at it_spool assigning <spool>.
concatenate <spool> CL_ABAP_CHAR_UTILITIES=>NEWLINE into <spool>.
endloop.
Code: Alles auswählen.
it_spool type standard table of x_spool with header line,
t_string type standard table of wa_string with header line.
jupp, denn das fügt in deinem Code Datensätze in die t_string ein. Du könntest darauf verzichten, wenn du mit Feldsymbolen (ASSIGN) arbeiten würdest. Kannst / darfst du das gesamte Programm hier posten bzw. mit per PM senden?Das append hab ich mal testweise rausgenommen, dann ist aber das Ausgabefile komplett leer.
setze dich damit auf jeden Fall auseinander. Die Feldsymbole können sehr hilfreich seinMit Feldsymbolen kenn ich mich noch gar nicht aus.
der Wunsch ist verständlichDa das Programm ja schonmal so lief, würde ich wenn nicht unbedingt nötig so wenig wie möglich umbauen.