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: 

selection screen

Former Member
0 Kudos

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

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

Ex: p_snow as snow and p_rain as rain.

0 Kudos

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

0 Kudos

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

0 Kudos

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,