Hi,
I need to submit program to spool and then to send result by mail.
Here is my code:
SUBMIT rprccc_read_kr1025 TO SAP-SPOOL WITHOUT SPOOL DYNPRO USING SELECTION-SET 'CUS&STANDARD'
WITH firmennr = is_files-filename+14(6)
WITH file_inl = abap_true
WITH fil_onl = abap_true
WITH fil_fnl = abap_true
WITH file_nin = lv_file_nin
WITH fil_nout = lv_file_nout
WITH fil_nf = lv_file_nf
WITH rb_fehl = abap_false
WITH rb_all = abap_true
IMMEDIATELY 'X'
AND RETURN.
After I run this code no record being created in table TSP01 so I can't get spool id.
If I am running same code without AND RETURN the record being created but I can't return back to the program.
So what's the problem?