cancel
Showing results for 
Search instead for 
Did you mean: 

Radio Button Operation & classical Report

nandishm
Participant
0 Kudos

I have two radio button and a text box in classical report .

Ex: - Radio Buttons are Name and Number

If I select number it must display number, if I select Name it must display text and validate according to value in text field .

IS there any easy way    .??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi nandish try this one and changes according to your requirement

REPORT  zdemo_loopat NO STANDARD PAGE HEADING.

*1 prgm

PARAMETERS: name TYPE c RADIOBUTTON GROUP a MODIF ID 001 DEFAULT 'X'

USER-COMMAND uc01,

number TYPE c RADIOBUTTON GROUP a MODIF ID 002.

AT SELECTION-SCREEN OUTPUT.

   LOOP AT SCREEN.

     IF screen-group1 EQ '001'.

       IF name EQ 'X'.

         screen-active = '1'.

       ELSEIF number eq 'X'.

         screen-active = '0'.

       ENDIF.

       MODIFY SCREEN.

     ENDIF.

   ENDLOOP.



If answer is helpfull point me.


Thanks

Answers (2)

Answers (2)

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Nandish,

Add the Code at 'AT SELECTION-SCREEN OUTPUT'.

Regards,

Venkat

Former Member
0 Kudos

Hi Nadish,

       you can use this logic..

   AT SELECTION-SCREEN ON RADIOBUTTON GROUP GROUPNAME.

  CASE 'X'.
    WHEN RADIO1.
      LOGIC TO DISPLAY NUMBER.

    WHEN RADIO2.
      LOGIC TO DISPLAY TEXT.

  ENDCASE.

Regards,

Shashikanth.