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

Create a Job, in Module Pool program

kranthi_namala3
Discoverer
0 Likes
641

Hi Gurus,

I have a module pool program, in the table control, we give the data and then save.

When I save, I need to create a job, and this job should be created in SM37. I should see that in SM37.

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
573

Hi,

To create a JOB via program use JOB_OPEN, JOB_SUBMIT and JOB_CLOSE function modules.

Seach in SDN. There are several posts on these FMs.

Regards,

Ankur Parab

Read only

0 Likes
573

I need to pass my table control data to a function module and this function module should execute in backgroung and create a job.

Read only

0 Likes
573

Hi,

try to retrive the selected row data from the table control using methods like get_selected_rows

and pass the data to the function modules as mentioned...

( Search SDN for how to get the selected row from table contol ).

hope this works...

best of luck...

Thanks

Ravi

Read only

Former Member
0 Likes
573

Hi,

Catch the Ok_code.

case OK_CODE.

when 'SAVE'.
Call Transaction SM37.

endcase.

OR

if u want to create JOB dynamically on button click then u better use the FM for job creation as mentioned above.

when u press 'SAVE' the CONTROL goes to TCODE sm37 for Job Creation.

Best of Luck!!

Thanks

Ravi