Code: Alles auswählen.
CALL FUNCTION '...' IN BACKGROUND UNIT
Code: Alles auswählen.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
jobcount = lv_jobid
EXCEPTIONS
...
IF sy-subrc = 0.
SUBMIT zcall_rfc
WITH param = <wert> " einstellungen über selektionsbildschirm übergeben
USER 'BATCHUSER'
VIA JOB lv_jobname NUMBER lv_jobid
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobid
jobname = lv_jobname
strtimmed = 'X' " job sofort starten
EXCEPTIONS
...
ENDIF.