‎2009 Jun 10 1:47 PM
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.
‎2009 Jun 10 1:53 PM
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
‎2009 Jun 10 1:59 PM
I need to pass my table control data to a function module and this function module should execute in backgroung and create a job.
‎2009 Jun 10 2:07 PM
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
‎2009 Jun 10 1:54 PM
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