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

Parameters in Selection Screen

Former Member
0 Likes
1,686

Hi All,

I want to display input box just after radiobutton.

if I am doing like this:

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',

p_r5 RADIOBUTTON GROUP rad2, p type c ,p5(5) type c.

SELECTION-SCREEN END OF BLOCK s4.

then the input box is displayed below radiobutton, but I want it just after radio button.

Can anyone help me in this...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,612

Hi,

you need to use the

selection screen begin of line.

selection screen end of line. concept.

eG;

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 3(10) TEXT-T06 FOR FIELD p_r4 .

SELECTION-SCREEN POSITION 25.

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

then you will reach to your destiny.

Regards,

Venkatesh

14 REPLIES 14
Read only

Former Member
0 Likes
1,612

Hi,

Try using this


*selection-screen: begin of line.*
PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',
p_r5 RADIOBUTTON GROUP rad2, p type c ,p5(5) type c.
*selection-screen: end of line*

regards,

Naveen

Read only

Former Member
0 Likes
1,612

Hi,

you can use BEGIN OFSELECTION_SCREEN COMMENT..

Read only

Former Member
0 Likes
1,613

Hi,

you need to use the

selection screen begin of line.

selection screen end of line. concept.

eG;

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 3(10) TEXT-T06 FOR FIELD p_r4 .

SELECTION-SCREEN POSITION 25.

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

then you will reach to your destiny.

Regards,

Venkatesh

Read only

viquar_iqbal
Active Contributor
0 Likes
1,612

Hi

you can write like this

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',

<input box>

p_r5 RADIOBUTTON GROUP rad2, p type c ,p5(5) type c.

<input box>

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK s4.

Thanks

Viquar Iqbal

Read only

Former Member
0 Likes
1,612

Hi Check this

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

" Radio button with input field on same line
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X'.
SELECTION-SCREEN POSITION 15.
PARAMETERS: p_field1 TYPE char15.
SELECTION-SCREEN END OF LINE.

" Radio button with input field on same line
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_r5 RADIOBUTTON GROUP rad2.
SELECTION-SCREEN POSITION 15.
PARAMETERS: p_field2 TYPE char15.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK s4.

Read only

Former Member
0 Likes
1,612

Try this,

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 3(15) TEXT-T01 FOR FIELD p_r4 .

SELECTION-SCREEN POSITION 22.

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 3(15) TEXT-T02 FOR FIELD p_r4 .

SELECTION-SCREEN POSITION 22.

PARAMETERS: p_r5 RADIOBUTTON GROUP rad2.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK s4.

Regards,

Joan

Read only

agnihotro_sinha2
Active Contributor
0 Likes
1,612

hi,

Use Begin of LINE sysntax. Press F1 for further help.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',

p_r5 RADIOBUTTON GROUP rad2, p type c ,p5(5) type c.

SELECTION-SCREEN END OF BLOCK s4.

SELECTION-SCREEN END OF LINE.

ags.

Read only

Former Member
0 Likes
1,612

Hi,

Go to Tcode se51 and give your program name and screen number as 1000, then you can change layout of the selection screen as you wish.

Read only

0 Likes
1,612

hi Dande,

i think this is not possible as a report always generates its SELECTION screen everytime its run.

Anyway this is my understanding out of my exp. If u think this is wrong plz ignore my post.

ags.

Read only

0 Likes
1,612

Hi All

Thanks a lot!

I got very helpful answers and at last reached the destiny.:)

Below r the lines of code which I am using:

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: p_r5 RADIOBUTTON GROUP rad2.

SELECTION-SCREEN COMMENT 5(10) text-005 FOR FIELD p_r5 .

SELECTION-SCREEN POSITION 25.

PARAMETERS: p5(10) TYPE c.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK s4.

Thanks.

Shweta.

Read only

Former Member
0 Likes
1,612

Hi,

Kindly chk this..



SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .
selection-screen begin of line.
PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',
 p type c.
selection-screen end of line.

selection-screen begin of line.
parameters:
p_r5 RADIOBUTTON GROUP rad2,p5(5) type c.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK s4.

Regards.

Read only

Former Member
0 Likes
1,612

try it this way:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS:
  p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',
  p(5) type c .
SELECTION-SCREEN END OF LINE.
*Skip.
SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS:
  p_r5 RADIOBUTTON GROUP rad2,
  p5(5) type c.
SELECTION-SCREEN END OF LINE.

With luck,

Pritam.

Read only

Former Member
0 Likes
1,612

Hi,

DATA: L_AGES TYPE C.

DATA: L_AGES1(5) TYPE C.

SELECTION-SCREEN BEGIN OF BLOCK CPRF WITH FRAME TITLE TEXT-PRF.

SELECTION-SCREEN BEGIN OF LINE.

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

SELECT-OPTIONS: P FOR L_AGES NO-EXTENSION NO INTERVALS.

SELECTION-SCREEN COMMENT 25(3) TEXT-002 FOR FIELD P_RBPRF1.

SELECTION-SCREEN POSITION 28.

PARAMETERS: P_RBPRF1 RADIOBUTTON GROUP R2.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

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

SELECT-OPTIONS: P1 FOR L_AGES1 NO-EXTENSION NO INTERVALS.

SELECTION-SCREEN COMMENT 25(3) TEXT-004 FOR FIELD P_RBPRF2.

SELECTION-SCREEN POSITION 28.

PARAMETERS: P_RBPRF2 RADIOBUTTON GROUP R2.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK CPRF.

Read only

Former Member
0 Likes
1,612

Hi,

Try with the following code.

SELECTION-SCREEN BEGIN OF BLOCK s4 WITH FRAME TITLE text-004 .

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: p_r4 RADIOBUTTON GROUP rad2 DEFAULT 'X'.

SELECTION-SCREEN POSITION 55.

PARAMETERS: p_field1 TYPE char15.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: p_r5 RADIOBUTTON GROUP rad2.

SELECTION-SCREEN POSITION 55.

PARAMETERS: p_field2 TYPE char15.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK s4.

Regards,

Dharmesh