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
603

Hi all,

I'd like to have p_x as rain 'p_x as CHECKBOX.' how can i do it can you help me please?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

Can you pls elaborate. I did not get your question.

6 REPLIES 6
Read only

Former Member
0 Likes
567

Can you pls elaborate. I did not get your question.

Read only

0 Likes
566

Sorry about that I have a selection screen where I'd like to include rain as radio button so I have the following

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_snow AS CHECKBOX,

p_rain AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK b1.

How can I have the 2 radio buttin as

Snow

Rain

I hope you got the point

Read only

0 Likes
566

In SE32 transaction, you can give the declaration like that.

Ex: p_snow as snow and p_rain as rain.

Read only

0 Likes
566

See below code to get Radio buttons for snow and rain.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_snow RADIO BUTTON GROUP rg DEFAULT 'X,

p_rain RADIO BUTTON GROUP rg.

SELECTION-SCREEN END OF BLOCK b1.

Regards,

vinod

Read only

0 Likes
566

Can you tell me how can i add it as text element please

Read only

0 Likes
566

Hi,

In the SE38 menu, select GOTO->TEXT ELEMENTS->SELECTION TEXT, then you could edit the text element.

If you wanna use customized text at specified positon, you may need to use the following command:

SELECTION-SCREEN COMMENT [/][pos](len)

{text|{[text] FOR FIELD sel}}

[VISIBLE LENGTH vlen]

[MODIF ID modid]

[ldb_additions].

SELECTION-SCREEN BEGIN OF LINE.

...

[SELECTION-SCREEN POSITION pos [ldb_additions]].

...

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN: BEGIN OF LINE,

PUSHBUTTON 2(10) push USER-COMMAND fcode,

POSITION 16.

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN: COMMENT 40(40) text,

END OF LINE.

INITIALIZATION.

push = 'Push'.

text = '<--- Fill field, then push button!'.

Cheers,