cancel
Showing results for 
Search instead for 
Did you mean: 

function module-open_job

Former Member
0 Kudos

Hi ,

i am using function module open_close ,close_job to run the program in the background in user-exit, when i execute the transaction everthing goes fine, but when i debug it it give me a dump , stating invalid startdate.

Thanks & Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Perhaps your Program is not designt for the back ground process. Do you use an Enjoy Transaktion.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Syed,

this looks strange!!!

Are you trying to change the start date while debugging?

Chk the format of the date also

and pls post the description of dump and the line pointing where the dump occured

Former Member
0 Kudos

hi,

below is the code

V_TIME = SY-UZEIT + 05.

  • To create a job for roll of revision

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = v_jobnm

sdlstrtdt = sy-datum

sdlstrttm = v_time

IMPORTING

jobcount = v_jobcnt.

  • To run roll of revision

IF sy-subrc = 0.

submit zecr via job v_jobnm

NUMBER v_jobcnt

with p_matnr = v_matnr

WITH p_aennr = v_aennr

AND RETURN.

ENDIF.

*end of submit

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

JOBCOUNT = V_JOBCNT

JOBNAME = V_JOBNM

SDLSTRTDT = SY-DATUM

SDLSTRTTM = V_TIME.

i hope i have used the funciton modules in a right way,

where the error occured.

002760 ENDIF.

002770 WHEN 3.

> RAISE invalid_startdate.

i think this is an exception in the function module job_close.

Thanks & Regards

Syed