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

Selection-screen

Former Member
0 Likes
495

Hi,

Req

To build a selection screen as below. Each field should be a paramter and

should be in a single line .

For example :

f1:-- , f2:-- ,f3:--, f4:,f5:, f6:--

The above fields should be in a single line .

Thanks,

Vind.

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
477

hi Vind,

pls. have a look at the following coding, three radibuttons in the same line:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : pe_all TYPE c RADIOBUTTON GROUP r2 MODIF ID 006.

SELECTION-SCREEN COMMENT 3(10) text-c01 MODIF ID 006.

SELECTION-SCREEN POSITION 20.

PARAMETERS : pe_kokrs TYPE c RADIOBUTTON GROUP r2 MODIF ID 006.

SELECTION-SCREEN COMMENT 22(35) text-c02 MODIF ID 006.

SELECTION-SCREEN POSITION 60.

PARAMETERS : pe_hausg TYPE c RADIOBUTTON GROUP r2 MODIF ID 006.

SELECTION-SCREEN COMMENT 62(20) text-c03 MODIF ID 006.

SELECTION-SCREEN END OF LINE.

I think you can build up your own from this sample.

ec

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
477

Sure use the statements

SELECTION-SCREEN BEGIN OF LINE.
Parameters: p_fld1(5) type c,
                   p_fld2(5) type c,
                   p_fld3(5) type c.
SELECTION-SCREEN END OF LINE.

Regards,

Rich Heilman

Read only

0 Likes
477

Hi Rich,

I tries using the code its not displaying the text of the field . Can you please give an example so that i can work it out.

Thanks,

Vind.

Read only

0 Likes
477

hi Vind,

check my coding, there is SELECTION-SCREEN COMMENT, that will solve your problem.

ec

Read only

ferry_lianto
Active Contributor
0 Likes
477

Hi,

Please try this.


SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(10) T_FIELD1.
PARAMETERS: P_FIELD1(10) TYPE C.
SELECTION-SCREEN: COMMENT 25(10) T_FIELD2.
PARAMETERS: P_FIELD2(10) TYPE C.
SELECTION-SCREEN: COMMENT 50(10) T_FIELD3.
PARAMETERS: P_FIELD3(10) TYPE C.
SELECTION-SCREEN: END OF LINE.
                                                                        
INITIALIZATION.
  T_FIELD1 = 'FIELD1'.
  T_FIELD2 = 'FIELD2'.
  T_FIELD3 = 'FIELD3'.

Regards,

Ferry Lianto