Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

job_open

Former Member
0 Likes
605

Hi ,

i am running CC11 transaction in the background using the below code, i have created a BDC for the transaction and trying to run this in the background , the log(SM37) is showing the sucess message but the revision is not done.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = v_jobnm

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.

STRTIMMED = 'X'.

Thanks & Regards

Syed

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

Hello,

You have somme programm to trigger your BDC in background.

search (i don't remember the name) in SE38 RBDC

Regards

sebastien

Hi ,

i am running CC11 transaction in the background using the below code, i have created a BDC for the transaction and trying to run this in the background , the log(SM37) is showing the sucess message but the revision is not done.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = v_jobnm

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.

STRTIMMED = 'X'.

Thanks & Regards

Syed

3 REPLIES 3
Read only

Former Member
0 Likes
567

Hello,

You have somme programm to trigger your BDC in background.

search (i don't remember the name) in SE38 RBDC

Regards

sebastien

Read only

Former Member
0 Likes
566

Hi Syed,

U want the job to run periodically? i mean it should run automatically?

Thanks,

Vishnu

Read only

0 Likes
566

hi Vishnu,

yes it has to run automatically , means whenever the transaction is done this has to happen in background,

Thanks & Regards

syed