‎2008 Jun 27 7:50 AM
Hi gurus,
Can you please tell me a way in which we call selection screen and can include the option of background processing?
If we just use the selection screen then the option of background processing is not getting populated.
Thanks.
‎2008 Jun 27 7:53 AM
Hi Mayank,
IF you want to call the selection screen then do one thing create a function module and iside this function module call the screen.
&**********Reward Point if helpful*********&
‎2008 Jun 27 7:53 AM
Hi,
Can you please bit elaborate your requirement. Then we can able to help you.
Regards,
Naveen Veshala
‎2008 Jun 27 2:18 PM
My requirement is that after when I call the selection scree, i should get an option of executing the program in the background job.
For this to happen, is it possible if I do not use the submit option?
‎2008 Jun 27 7:56 AM
hi mayank,
please check the following link...that will answer your query..
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=selectionscreenandbackgroundprocessing&adv=false&sortby=cm_rnd_rankvalue
‎2008 Jun 27 7:58 AM
Hi,
Create a covering program for this and call the other prg using SUBMIT stmt.
Before that create a job session.
create Background Job
CALL FUNCTION 'JOB_OPEN' "#EC *
EXPORTING
jobname = ws_c_session "'ABCDEFG'
IMPORTING
jobcount = ws_c_jobnum
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
SUBMIT zf_process
WITH p_templ EQ wa_seskey-template_id
WITH p_vers EQ wa_seskey-version
WITH p_sess EQ p_senkey
WITH p_email EQ p_testml
VIA JOB ws_c_session NUMBER ws_c_jobnum
AND RETURN.
close and schedule job
CALL FUNCTION 'JOB_CLOSE' "#EC *
EXPORTING
jobcount = ws_c_jobnum
jobname = ws_c_session
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
Regards,
Subramanian
‎2008 Jun 27 2:23 PM
hi check this...
put the radiobutton .
if rad1 = 'x'.
(foregrond process)
perform get_data.
perform display_data.
else.
(back ground)
job_open.
job_submit.
job_close.
but dont use submit because it will call program to process in another program