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

creating new jobs dynamically

Former Member
0 Likes
474

Hi Experts,

I have recently created a program to extract activity information with the use of GUID retrieval from CRMD_ORDER_H table and a BAPI call with the guids returned.

I have selection screen criteria for process type and a date range. I've had problems with the program completing due to the volumen of info that is being pulled. The program manages to pull data for a week at a time (and also for the process type range i want ) without failing.

My problem is that i have to extract information up til the beginning of the last year and i dont want to have to create multiple variants within sm36 (There would end up being to many)

Is it possibe to create a secondary program that will kick start a job and also supply the correct parameters (i.e date range) from within this program???

Thanks in advance

Confused!!

Hi Experts,

I have recently created a program to extract activity information with the use of GUID retrieval from CRMD_ORDER_H table and a BAPI call with the guids returned.

I have selection screen criteria for process type and a date range. I've had problems with the program completing due to the volumen of info that is being pulled. The program manages to pull data for a week at a time (and also for the process type range i want ) without failing.

My problem is that i have to extract information up til the beginning of the last year and i dont want to have to create multiple variants within sm36 (There would end up being to many)

Is it possibe to create a secondary program that will kick start a job and also supply the correct parameters (i.e date range) from within this program???

Thanks in advance

Confused!!

1 REPLY 1
Read only

Former Member
0 Likes
439

Hi,

Ya u can use the foll FMs(together) to schedule a job from ur pgm......

Job_open

Job_submit

Job_close

u can pass variants,spool recipients.......anything u can do in SM36.......

Cheers,

jose.