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 on same line on Selection Screen

0 Kudos

Hi All,

Hi All,

Suppose there are two parameters on Selection Screen.

I declare as

Parameters: p_date for Hi All,

Suppose there are two parameters on Selection Screen.

I declare as

Parameters: p_date for bkpf-cpudt

Parameters: p_date for bkpf-cputm

So these two will come on two different lines on Sel Screen.

But Suppose I want to make them on Same line on Sel Screen.

Ho can I do that ? How ca i write Parameter statement for it.

Regards,

Rishi

4 REPLIES 4

Former Member
0 Kudos

hi..

<b>SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) INPUT1.

PARAMETERS P1 TYPE I.

SELECTION-SCREEN COMMENT 40(10) INPUT2.

PARAMETERS P2 TYPE I.

SELECTION-SCREEN END OF LINE.

INITIALIZATION.

INPUT1 = 'INPUT1'.

INPUT2 = 'INPUT2'</b>

<b>Reward points if useful</b>

Regards

Ashu

Former Member
0 Kudos

Hi,

you need to use SELECTION-SCREEN BEGIN OF LINE .

What ever you write in between SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE will come in a single line.

<b>Example</b>

SELECTION-SCREEN BEGIN OF LINE. 
  SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. 
  PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1). 
SELECTION-SCREEN END OF LINE.

Regards

Sudheer

0 Kudos

Thanks Ashu/Sudheer.

U have helped lot. Thanks for reply.

Rishi

Former Member
0 Kudos

HI RISHI,

in ur selection screen add one more statement as

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN END OF LINE .

Example

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.

PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B1

If helpful reward some points.

with regards,

Suresh.A