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

Code to make second job dependent at first

Former Member
0 Likes
478

Hello experts, how can I write an ABAP code to kick of an event after the first step, and make the second job dependent on the event. thanks a lot...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
446

Hi christopher,

1. Simple

use like below when writing code FOR SECOND JOB

where ;

jobname = 1st jobname

jobcount =1st job count

2.

*----


Data Declaration

DATA : eventparm LIKE tbtcjob-eventparm.

eventparm = jobname.

eventparm+32 = jobcount.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = jobcount_sen

jobname = jobname_sen

predjob_checkstat = ''

event_id = 'SAP_END_OF_JOB'

event_param = eventparm

regards,

amit .

3 REPLIES 3
Read only

Former Member
0 Likes
447

Hi christopher,

1. Simple

use like below when writing code FOR SECOND JOB

where ;

jobname = 1st jobname

jobcount =1st job count

2.

*----


Data Declaration

DATA : eventparm LIKE tbtcjob-eventparm.

eventparm = jobname.

eventparm+32 = jobcount.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = jobcount_sen

jobname = jobname_sen

predjob_checkstat = ''

event_id = 'SAP_END_OF_JOB'

event_param = eventparm

regards,

amit .

Read only

Former Member
0 Likes
446

Hi again,

1. Important thing

(see my previous reply code)

2. FIRST CLOSE THE SECOND JOB. (Dependent Job)

THEN

CLOSE THE 1ST JOB.

regards,

amit m.

Message was edited by: Amit Mittal

Read only

0 Likes
446

thanks...