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

Call selection screen

Former Member
0 Likes
698

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.

6 REPLIES 6
Read only

Former Member
0 Likes
660

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*********&

Read only

former_member265047
Active Participant
0 Likes
660

Hi,

Can you please bit elaborate your requirement. Then we can able to help you.

Regards,

Naveen Veshala

Read only

0 Likes
660

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?

Read only

Former Member
0 Likes
660

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

Read only

Former Member
0 Likes
660

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

Read only

Former Member
0 Likes
660

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