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

2 parameters in the same line

former_member188829
Active Contributor
0 Likes
2,751

Hi all,

this is my interview question.

suppose 2 parameters p1 and p2 are there.

i want these two parameters in the same line of selection screen.

is it possible?

and how?

same question for radio button.?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,350
Yes it can be defined,


chk this 

REPORT YCHATEST 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.

Hi aswin ,

thanks for solving my problem,

15 REPLIES 15
Read only

Former Member
0 Likes
2,350

hi vishnu

we can place two parameters in the same line.

check this code

selection-screen begin of line .

parameters p like spfli-carrid.

parameters s like spfli-connid.

selection-screen end of line.

the same implies to radiobutton also.

-Priyanka

selection-screen begin of line .

parameters r radiobutton group rad.

parameter r1 radiobutton group rad.

parameter r2 radiobutton group rad.

selection-screen end of line.

Message was edited by: Priyanka

Priyanka Neelam

Read only

Former Member
0 Likes
2,351
Yes it can be defined,


chk this 

REPORT YCHATEST 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.
Read only

Former Member
0 Likes
2,350

Hi,

Use like this

SELECTION_SCREEN BEGIN OF LINE.

parameters: p1(10).
                  p2(10).

SELECTION_SCREEN END OF LINE.

Regards,

pankaj singh

Read only

former_member188829
Active Contributor
0 Likes
2,350

HI thanks to all.

iam getting the 2 parameters on the same line.

but it is not displaying the parameter names.

Read only

0 Likes
2,350

try this

selection-screen : begin of block sel with frame title text-001.

selection-screen : begin of line .

parameters : it(10),it1(20).

selection-screen end of line .

selection-screen : end of block sel.

double click th text-001... click selection text and give the reqired text.

regards

aswin

Read only

0 Likes
2,350
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) txt_01.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN COMMENT 50(10) txt_02.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
txt_01 = 'Text 01'.
txt_02 = 'Text 02'.

Regards

Wenceslaus

Read only

0 Likes
2,350

Hi gnana,

thanks for solving my question.

but am not able to assign u for points.

bcoz radio buttons r in disabled mode

Message was edited by:

Vishnu reddy

Read only

0 Likes
2,350

Hi aswin ,

thanks for solving my problem,

Read only

Former Member
0 Likes
2,350

Hi vishnu,

Have you checked my solution??

I dont know how Pankajs solution was helpful to u with syntax errors

Read only

0 Likes
2,350

Hi chandra sekar,

yaaa pankaj's solution is syntax error.

i had modified and seen it.

Read only

0 Likes
2,350
for comments u can check this

REPORT YCHATEST LINE-SIZE 350.



SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P_VAR1.
SELECTION-SCREEN POSITION 20.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN COMMENT 40(10) TEXT-002 FOR FIELD P_VAR2.
SELECTION-SCREEN POSITION 50.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
Read only

0 Likes
2,350

Hi chandra sekar,

thanks for solving my problem.

Read only

former_member188829
Active Contributor
0 Likes
2,350

it's my first time

Read only

Former Member
0 Likes
2,350

selection-screen begin of line.

<b>parameters : par1(20), par2(10).</b>

selection-screen end of line.

this will provide paramaeters in one line...

Read only

Former Member
0 Likes
2,350

Hi Vishnu ,

This code will gove you the desired result

selection-screen begin of line.
selection-screen comment 10(10) text-001 for field p_chkbox.
parameters : p_chkbox type c as checkbox .

selection-screen comment 25(10) text-001 for field p_chk.
parameters : p_chk type c as checkbox.
selection-screen end of line.

Please revert back in case of any further queries.

Regards

Arun