Application Development 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: 

execute program automaticaly via a job

Former Member
0 Kudos
121

Hi,

I would execute a programme ABAP with job. The program has a parameter selection date. How can i spicify a date with job

Thanks a lot

7 REPLIES 7

Former Member
0 Kudos
94

Hello,

Create a variant and schedule the Job in background using SM36.

Regards,

Vasanth

Former Member
0 Kudos
94

hi

Create a variant in the se38 and go to sm37 to create a background job and give the variant name.

Regards....

Arun.

Former Member
0 Kudos
94

Hi,

You need to use 3 Function modules ..

JOB_OPEN: Create a background job.

JOB_SUBMIT: Here you need to mention those parameters

JOB_CLOSE: Submit a background job to the background processing system for execution

http://help.sap.com/saphelp_sm32/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/content.htm

Regards

Sudheer

Former Member
0 Kudos
94

Hi,

Use the SUBMIT ..AND RETURN, and pass the selection-screen values to that ,

Regards

Subramanian

0 Kudos
94

Thanks for all your answers but my question is:

"Is there anyway to write my program in such a way that when it is executed in a job on a specific date, it will take into account the job date and use it to process what needs to be processed in my program"

0 Kudos
94

Hi

You can programatically do that using:

SUBMIT rsbdcsub

WITH mappe EQ 'session name' " Session Name

WITH von EQ sy-datum " Starting Interval date

WITH bis EQ sy-datum " Closing Interval Date

WITH z_verarb EQ 'X'

WITH logall EQ 'X' " Log Info

by specifying your required dates here for the above parameters. u can achieve that.

Regards,

kumar

Former Member
0 Kudos
94

This message was moderated.