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 creation issue

Former Member
0 Likes
871

hi all,

we have a requirement as follows:

we need to create a job2 which will trigger automatically on a daily basis after a job1 completes .Also,this job2 should take all the vendor numbers from lfa1 table that are updated daily ( job1 is updating vendors daily into lfa1) and these vendors numbers should be used as a selection screen variant for running a program that job2 will trigger.

After this,email should be sent to users that thses vendors are processed or not processed by our job2.

Any pointers on how to design this requirement.

Thanks

hi all,

we have a requirement as follows:

we need to create a job2 which will trigger automatically on a daily basis after a job1 completes .Also,this job2 should take all the vendor numbers from lfa1 table that are updated daily ( job1 is updating vendors daily into lfa1) and these vendors numbers should be used as a selection screen variant for running a program that job2 will trigger.

After this,email should be sent to users that thses vendors are processed or not processed by our job2.

Any pointers on how to design this requirement.

Thanks

7 REPLIES 7
Read only

Former Member
0 Likes
837

hi,

use fn module JOB_OPEN & JOB_SUBMIT & JOB_CLOSE to execute the jobs...

prepare report1 with trigerring for job1.

call report2 from report1 where job2 will get executed.

Regards

Sajid

Read only

0 Likes
837

hi,

the requirement is that job should be scheduled atuomatically on a daily basis.

but the problem is how to transfer the vendors numbers daily from lfa1 to program selection screen which the job would be triggering

Read only

0 Likes
837

Hi Kunal,

You can take all the vendors from LFA1, who has been updated on today's date.

Hope this helps.

Regards,

Manish

Read only

Former Member
0 Likes
837

Hi

You can easily find out the newly created vendors from LFA1 for the selection condition. Create Job1 with the first program to update the LFA1 table.

And then define your job2 for the next program to get the details of newly created vendors from LFA1. For this job, maintain the start condition with 'After Job option'. In that option mention name of Job1.

In the Job2 program write the code to send email.

Hope this is clear to you.

Thanks

Sourav

Read only

Former Member
0 Likes
837

In addition to that, you can check the field ERDAT in LFA1 to get the record creation date. Compare this date with the last run date to get the vendors created in the interval.

Let me know if this helps.

Read only

Former Member
0 Likes
837

Hello kunal,

for the first job to run daily u can set in sm36, start condition->immediate->tick periodic job->select periodic values and click on daily.

Regards

Sajid

Read only

0 Likes
837

hi all,

i can create the job and it will be scheduled to trigger the program /SAPSLL/CREMAS_DISTRIBUTE_R3 ....but the mail issue is i want to transfer the vendor numbers which are updated daily from LFA1 to selection screen of my program /SAPSLL/CREMAS_DISTRIBUTE_R3 .how to do that????