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: 

Two parameters in one line

Former Member
0 Kudos

Hi

Is this possible to declare two parameters in the same line but not in the screen painter?

1 ACCEPTED SOLUTION

Mohamed_Mukhtar
Active Contributor

Hi ,

try like this

SELECTION-SCREEN begin of line.
  SELECTION-SCREEN COMMENT 1(15) text-p1.
  parameters: P1(10) type c.
  SELECTION-SCREEN COMMENT 25(15) text-p2.
  PARAMETERS: P2(10) type c.
SELECTION-SCREEN end of LINE.


Thanks & Regards

4 REPLIES 4

Former Member
0 Kudos

Hi Kosmo,

You can declare 2 parameters in 1 line. You just have to declare the parameters in beteween "selection-screen begin of line" and "selection-screen end of line".

Try it out...

Cheers,

Vishnu

Mohamed_Mukhtar
Active Contributor

Hi ,

try like this

SELECTION-SCREEN begin of line.
  SELECTION-SCREEN COMMENT 1(15) text-p1.
  parameters: P1(10) type c.
  SELECTION-SCREEN COMMENT 25(15) text-p2.
  PARAMETERS: P2(10) type c.
SELECTION-SCREEN end of LINE.


Thanks & Regards

peter_ruiz2
Active Contributor
0 Kudos

hi Kosmo,

try this.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS:

p_param1 TYPE datum DEFAULT sy-datum,

p_param2 TYPE uzeit DEFAULT sy-uzeit.

SELECTION-SCREEN END OF LINE.

regards,

Peter

Former Member
0 Kudos

Hello Kosmo ,

When ever u want to display in same line we have to use

select-screen begin of line with positions and comments.

In the below example dont change the Positions 30 and Comment 1 or Position 40 and comment 4(20).

SELECTION-SCREEN : BEGIN OF BLOCK b4 WITH FRAME TITLE text-t04.

SELECTION-SCREEN: BEGIN OF LINE.

SELECTION-SCREEN: POSITION 30,

COMMENT 1(20) text-m01

FOR FIELD s_matnr.

PARAMETER: s_matnr TYPE mara-matnr.

SELECTION-SCREEN: POSITION 40,

COMMENT 40(20) text-m03.

PARAMETER: r_matnr TYPE mara-matnr.

SELECTION-SCREEN : END OF LINE.

SELECTION-SCREEN : END OF BLOCK b4.