Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sumbit wait until

I am using JOB_OPEN , SUBMIT and JOB_CLOSE for a report1 to create a spool in background processing.

After the JOB_CLOSE i am calling a fm for display the spool list.

My problem is after submitting the report1 in background how to hold the fm unless the background process for report1 is complete .

My question how to use submit statement wait for submit report1 is finished and then only call

call function 'LIST_FROM_MEMORY'.

call function 'JOB_OPEN'

exporting

jobname = v_jobname

importing

jobcount = v_jobcount

exceptions

cant_create_job = 01

invalid_job_data = 02

jobname_missing = 03

others = 99.

submit report1

via job v_jobname

number v_jobcount

to sap-spool without spool dynpro

spool parameters wa_params

and return.

call function 'JOB_CLOSE'

exporting

jobcount = v_jobcount

jobname = v_jobname

strtimmed = 'X'

importing

job_was_released = v_job_released

exceptions

invalid_startdate = 01

jobname_missing = 02

job_close_failed = 03

job_nosteps = 04

job_notex = 05

lock_failed = 06

others = 99.

call function 'LIST_FROM_MEMORY'

tables

listobject = ilist..

regards,

anuj

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question