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 in Selection Screen

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

you can use BEGIN OFSELECTION_SCREEN COMMENT..

Former Member
0 Kudos

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

viquar_iqbal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

agnihotro_sinha2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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