‎2010 Feb 03 3:20 AM
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.
‎2010 Feb 03 6:47 AM
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
‎2010 Feb 03 3:36 AM
Pass the checkboes as "X" and the drop down list values as their actual values.
‎2010 Feb 03 4:26 AM
Hi,
Use Selection-Set option of Submit statement.
Thanks & Regards,
Vamsi.
‎2010 Feb 03 6:47 AM
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
‎2010 Feb 03 9:29 AM
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.
‎2010 Feb 03 7:02 AM
Hi ,
You need to use WITH addition of SUBMIT statement.
Press F1 on any of these to know more.
Hope this resolves your issue.
‎2014 Mar 08 6:47 AM
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