Application Development 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: 

Parameters.

Former Member
0 Kudos
91

Hi All,

I want 2 parameters to be displayed on one line. These are the parameters. what is the syntax to display both on 1 line.

p_menge like anla-menge,

p_meins like anla-meins,

Thanx,

Amruta.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
62

Hi,

chk this

REPORT YTEST LINE-SIZE 350.
 
 
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN POSITION 35.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.

Regards,

Omkar.

5 REPLIES 5

Former Member
0 Kudos
62

begin of line.

SELECTION-SCREEN: BEGIN OF LINE,

parameters 2(10) .

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN: COMMENT 40(40) text,

END OF LINE.

end of line

.

SELECTION-SCREEN - LINE

Syntax

SELECTION-SCREEN BEGIN OF LINE.

...

[SELECTION-SCREEN POSITION pos [ldb_additions]].

...

SELECTION-SCREEN END OF LINE.

Effect

The first and last statements define a new line below the existing elements on the selection screen.

All the screen elements within these statements that are defined with PARAMETERS SELECT-OPTIONS and SELECTION-SCREEN statements are placed in this line one after the other without spaces.

Several SELECTION-SCREEN POSITION statements can be listed within the definition of a line. The SELECTION-SCREEN POSITION statement can be used to define the output position for the following screen element. The position pos can either be specified directly as a number between 1 and 83 or using pos_low or pos_high expressions. The expression pos_low specifies the position in which the input field for a parameter or the first input field for a selection criterion is displayed as standard. The expression pos_high specifies the position in which the second input field for a selection criterion is to be displayed as standard. If you make a different specification of the position in the statement defining the following element, this is taken into account. The statement SELECTION-SCREEN POSITION is only possible within the definition of a line. If there are conflicts with existing screen elements, the selection screen cannot be generated.

The additions ldb_additions can only be used in a selection include for a logical database.

The following applies in the definition of a line:

Output fields are not created for selection texts for the parameters displayed in these kinds of lines. Instead, these can be created by specifying a SELECTION-SCREEN COMMENT.

You cannot define other lines with SELECTION-SCREEN BEGIN OF LINE.

You cannot define blocks or tabstrip controls with SELECTION-SCREEN BEGIN OF [TABBED] BLOCK.

Within a line, only one selection criteria should be defined with SELECT-OPTIONS whose description can be specified in advance using SELECTION-SCREEN COMMENT. Other combinations, especially definitions of elements according to the selection criteria, can lead to an undefined behaviour.,

The backslash (/) is not allowed when giving format specifications.

You can omit the position specification pos in formatting specifications.

Note

If a screen element is assigned a position greater than 83 or is positioned outside a block with a frame, the selection screen is not generated. In the case of input and output fields that were positioned beforehand but have a length that extends beyond the end of the line, the visible length is shortened accordingly and the content is displayed in the visible length and can be scrolled. In this case, pushbuttons and horizontal lines are cut off at position 83 or where the frame of the block ends.

Example

A pushbutton, an input field, and an output field in a line in the standard selection screen for an executable program.

SELECTION-SCREEN: BEGIN OF LINE,

PUSHBUTTON 2(10) push USER-COMMAND fcode,

POSITION 16.

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN: COMMENT 40(40) text,

END OF LINE.

INITIALIZATION.

push = 'Push'.

text = '<--- Fill field, then push button!'.

SELECTION-SCREEN - LINE

Syntax

SELECTION-SCREEN BEGIN OF LINE.

...

[SELECTION-SCREEN POSITION pos [ldb_additions]].

...

SELECTION-SCREEN END OF LINE.

Effect

The first and last statements define a new line below the existing elements on the selection screen.

All the screen elements within these statements that are defined with PARAMETERS SELECT-OPTIONS and SELECTION-SCREEN statements are placed in this line one after the other without spaces.

Several SELECTION-SCREEN POSITION statements can be listed within the definition of a line. The SELECTION-SCREEN POSITION statement can be used to define the output position for the following screen element. The position pos can either be specified directly as a number between 1 and 83 or using pos_low or pos_high expressions. The expression pos_low specifies the position in which the input field for a parameter or the first input field for a selection criterion is displayed as standard. The expression pos_high specifies the position in which the second input field for a selection criterion is to be displayed as standard. If you make a different specification of the position in the statement defining the following element, this is taken into account. The statement SELECTION-SCREEN POSITION is only possible within the definition of a line. If there are conflicts with existing screen elements, the selection screen cannot be generated.

The additions ldb_additions can only be used in a selection include for a logical database.

The following applies in the definition of a line:

Output fields are not created for selection texts for the parameters displayed in these kinds of lines. Instead, these can be created by specifying a SELECTION-SCREEN COMMENT.

You cannot define other lines with SELECTION-SCREEN BEGIN OF LINE.

You cannot define blocks or tabstrip controls with SELECTION-SCREEN BEGIN OF [TABBED] BLOCK.

Within a line, only one selection criteria should be defined with SELECT-OPTIONS whose description can be specified in advance using SELECTION-SCREEN COMMENT. Other combinations, especially definitions of elements according to the selection criteria, can lead to an undefined behaviour.,

The backslash (/) is not allowed when giving format specifications.

You can omit the position specification pos in formatting specifications.

Note

If a screen element is assigned a position greater than 83 or is positioned outside a block with a frame, the selection screen is not generated. In the case of input and output fields that were positioned beforehand but have a length that extends beyond the end of the line, the visible length is shortened accordingly and the content is displayed in the visible length and can be scrolled. In this case, pushbuttons and horizontal lines are cut off at position 83 or where the frame of the block ends.

Example

A pushbutton, an input field, and an output field in a line in the standard selection screen for an executable program.

SELECTION-SCREEN: BEGIN OF LINE,

PUSHBUTTON 2(10) push USER-COMMAND fcode,

POSITION 16.

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN: COMMENT 40(40) text,

END OF LINE.

INITIALIZATION.

push = 'Push'.

text = '<--- Fill field, then push button!'.

Message was edited by:

Karthikeyan Pandurangan

Former Member
0 Kudos
62

HI

if you want both on line then declare that two parametrs like this

SELECTION-SCREEN BEGIN OF LINE.

declare that two fileds here

SELECTION-SCREEN END OF LINE.

former_member386202
Active Contributor
0 Kudos
62

Hi,

Refer this code.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_pernr FOR pa0000-pernr. "Personnel Number

  • s_begda FOR pa0000-begda OBLIGATORY, "Start Date

  • s_endda FOR pa0000-endda OBLIGATORY, "End Date

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT (31) text-009.

PARAMETERS : p_begda LIKE pa0000-begda OBLIGATORY. "Start Date

SELECTION-SCREEN COMMENT 52(05) text-010.

PARAMETERS : p_endda LIKE pa0000-endda OBLIGATORY. "End Date

SELECTION-SCREEN END OF LINE.

SELECT-OPTIONS : s_stat2 FOR pa0000-stat2. "Status

SELECTION-SCREEN END OF BLOCK b1.

Regards,

Prashant

Former Member
0 Kudos
63

Hi,

chk this

REPORT YTEST LINE-SIZE 350.
 
 
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN POSITION 35.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.

Regards,

Omkar.

Former Member
0 Kudos
62

hi,

begin of line.

SELECTION-SCREEN: BEGIN OF LINE,

PARAMETERS :p_line TYPE c LENGTH 10,

P-char type c

SELECTION-SCREEN: COMMENT 11(11) text-001,

END OF LINE.