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: 

Issue Regarding a radio button

Former Member
0 Kudos

Hi Friends,

i have some problem with radio buttons, in the selection screen i need

Gender O Male O Female.

something like above.

How should i do that.

please help me out.

Regards

kumar M

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

selection-screen begin of line.

parameter p_r1 radiobutton group gr1.

selection-screen position 50.

parameter p_r2 radiobutton group gr1.

selection-screen end of line.

Regards,

Shiva Kumar

8 REPLIES 8

Former Member
0 Kudos

Hi,

selection-screen begin of line.

parameter p_r1 radiobutton group gr1.

selection-screen position 50.

parameter p_r2 radiobutton group gr1.

selection-screen end of line.

Regards,

Shiva Kumar

0 Kudos

my requirement is,,, in selection screen

Is material is tampered 0 yes 0 no.

if the enduser selects yes radio button, then in the script output it should come as

Is material is Tampered YES.

these requirement is after MIGO is done by the storage location people observation sheet after MIGO is done..

i need the text and yes and No radio buttons

how should i do.

regards

kumar.

0 Kudos

PARAMETERS: yes RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND ABC, "yes,

No RADIOBUTTON GROUP rad1.

AT SELECTION-SCREEN OUTPUT.

CASE 'X'.

WHEN Yes.

Do what operations u want.

WHEN No.

Do what u want.

Reward if helpful.

0 Kudos

Have you tried to improvise based on Eric's example???

That was an example to understand on how you can approch.

Have made modifications taking Eric's one as base to make it error free.

SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN COMMENT (8) gen. "'GENDER'.

  SELECTION-SCREEN POSITION 10.
  PARAMETERS : p_male RADIOBUTTON GROUP 1.

  SELECTION-SCREEN POSITION 20.
  SELECTION-SCREEN COMMENT (8) male. "'Male'.

  SELECTION-SCREEN POSITION 30.
  PARAMETERS : p_female RADIOBUTTON GROUP 1.

  SELECTION-SCREEN POSITION 40.
  SELECTION-SCREEN COMMENT (8) female. "'Female'.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.

  MOVE: 'Gender' TO gen,
        'Male' TO male,
        'Female' TO female.

Kind Regards

Eswar

former_member156446
Active Contributor
0 Kudos

you need to declare ur radio button inbetween

selection-screen begin of line.

you can give the text by selection-screen comment..

parameters: r_m radio-button group g2,

r_f radio-button group g2.

selection-screen end of line.

JozsefSzikszai
Active Contributor
0 Kudos

hi Makesh,

you have to code something like this:

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 'GENDER'.
SELECTION-SCREEN POSITION 10.
PARAMETERS : p_male RADIBUTTON GROUP 1.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN COMMENT 'Male'.
SELECTION-SCREEN POSITION 30.
PARAMETERS : p_female RADIBUTTON GROUP 1.
SELECTION-SCREEN POSITION 40.
SELECTION-SCREEN COMMENT 'Female'.
SELECTION-SCREEN END OF LINE.

hope this helps

ec

Former Member
0 Kudos

Hi Mukesh,

Please check the Demo program code


TABLES sscrfields.

PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,
            rad2 RADIOBUTTON GROUP rad.


AT SELECTION-SCREEN.
  MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.

START-OF-SELECTION.
  WRITE text-002.

Best regards,

raam

Former Member
0 Kudos

Hi MAhesh,

try something like this

try this

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS:WIP_ONLY RADIOBUTTON GROUP RAD1.

SELECTION-SCREEN COMMENT 2(15) WIP FOR FIELD WIP_ONLY.

PARAMETERS:HIS_ONLY RADIOBUTTON GROUP RAD1 default 'X'.

SELECTION-SCREEN COMMENT 20(15) HIS FOR FIELD HIS_ONLY.

PARAMETERS:BOTH RADIOBUTTON GROUP RAD1.

SELECTION-SCREEN COMMENT 40(15) WIP_HIS FOR FIELD BOTH.

SELECTION-SCREEN END OF LINE.

at selection-screen output.

WIP = 'Work-in-Process Only'.

HIS = 'History Only'.

WIP_HIS = 'Both WIP & HIS'.