on 10-17-2006 11:41 AM
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
Perhaps your Program is not designt for the back ground process. Do you use an Enjoy Transaktion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.