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

Passing checkbox through submit statement

Former Member
0 Likes
3,108

Hi all,

i m passing standard program of SM37 in submit statement and i made selection screen just like SM37 only few parameters are different, now i want to pass the check boxes clicked on customized selection screen to submitted program, so can anyone please tell me that how wud i pass the ticked check box value as well as dropdown list value?

regards.

saurabh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,621

Hi

You can pass the values as below ,

(Give the Job Name with which u want to create the JOB and jobcount is returned by the FM )

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = w_jobname

sdlstrtdt = sy-datum

sdlstrttm = sy-uzeit

IMPORTING

jobcount = w_jobcount

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

SUBMIT zshipment

USER l_user VIA JOB w_jobname NUMBER w_jobcount

WITH p_werks = p_werks

WITH s_col_no IN r_col_no

WITH p_check = 'X'

AND RETURN.

(P_check is a checkbox )

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = w_jobcount

jobname = w_jobname

strtimmed = 'X'

  • IMPORTING

  • JOB_WAS_RELEASED =

  • CHANGING

  • RET =

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.

LEAVE TO SCREEN 0.

Regards,

Richa

6 REPLIES 6
Read only

Former Member
0 Likes
1,621

Pass the checkboes as "X" and the drop down list values as their actual values.

Read only

Former Member
0 Likes
1,621

Hi,

Use Selection-Set option of Submit statement.

Thanks & Regards,

Vamsi.

Read only

Former Member
0 Likes
1,622

Hi

You can pass the values as below ,

(Give the Job Name with which u want to create the JOB and jobcount is returned by the FM )

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = w_jobname

sdlstrtdt = sy-datum

sdlstrttm = sy-uzeit

IMPORTING

jobcount = w_jobcount

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

SUBMIT zshipment

USER l_user VIA JOB w_jobname NUMBER w_jobcount

WITH p_werks = p_werks

WITH s_col_no IN r_col_no

WITH p_check = 'X'

AND RETURN.

(P_check is a checkbox )

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = w_jobcount

jobname = w_jobname

strtimmed = 'X'

  • IMPORTING

  • JOB_WAS_RELEASED =

  • CHANGING

  • RET =

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.

LEAVE TO SCREEN 0.

Regards,

Richa

Read only

0 Likes
1,621

hi richa, vamsi, mark and harsh,

thanx for reply...

actually problem is that i don't have to give the option for job selection and user selection in Z program selection screen, but while submitting standard SM37 program then i have to pass multiple job name and multiple user name, so can anyone please tell me in detail that how would i pass it using submit program?

regards.

Read only

Former Member
0 Likes
1,621

Hi ,

You need to use WITH addition of SUBMIT statement.

Press F1 on any of these to know more.

Hope this resolves your issue.

Read only

0 Likes
1,621

Hi Harsh,

I have the same problem and i need to check that checkbox while using SUBMIT but F1 is not working on that checkbox.

Need some help.

Regards,

Ashutosh Katara