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

Submit program passing selection variable more than 45 character

Former Member
0 Likes
1,049

Hi Experts,

I am scheduling a program from a program using SUBMIT keyword. The program being scheduled have select options which are more than 45 characters in length. I am using below code:-

SUBMIT zmd_batch_import_backend_pgm VIA JOB name_emp_assign NUMBER number_emp_assign

USING SELECTION-SCREEN '1000'

WITH S_FILE in lt_selection_tab

Here lt_selection_tab is a range table of char16384. When this code is executed only 45 characters is being passed to select option S_FILE of program zmd_batch_import_backend_pgm .

Any help in this regard will be highly appreciated.

Regards,

Vimal

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
783

Hi,

The visible length of selectoption is 45, try giving the addition no-display for s_file in program zmd_batch_import_backend_pgm.

Mentioned here link:[PARAMETERS|http://help.sap.com/saphelp_45b/helpdata/en/34/8e72d16df74873e10000009b38f9b8/content.htm]

The maximum permitted length of a parameter on the selection screen is 45 (scrollable up to length 132). If you have defined it longer than this (either explicitly with p(200) or implicitly with LIKE ), the parameter is truncated on the selection screen after the 132nd character. However, you can use SUBMIT to pass longer parameters to a report if these are not displayed on the selection screen at all because of the addition NO-DISPLAY . Without NO-DISPLAY, the parameter is truncated if the selection screen is processed in the background ( SUBMIT without VIA SELECTION-SCREEN addition).

Kesav

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
784

Hi,

The visible length of selectoption is 45, try giving the addition no-display for s_file in program zmd_batch_import_backend_pgm.

Mentioned here link:[PARAMETERS|http://help.sap.com/saphelp_45b/helpdata/en/34/8e72d16df74873e10000009b38f9b8/content.htm]

The maximum permitted length of a parameter on the selection screen is 45 (scrollable up to length 132). If you have defined it longer than this (either explicitly with p(200) or implicitly with LIKE ), the parameter is truncated on the selection screen after the 132nd character. However, you can use SUBMIT to pass longer parameters to a report if these are not displayed on the selection screen at all because of the addition NO-DISPLAY . Without NO-DISPLAY, the parameter is truncated if the selection screen is processed in the background ( SUBMIT without VIA SELECTION-SCREEN addition).

Kesav