why is the if statement associated with the second radio button not writing? : i am working on a project in which There are two options in the selection screen.
 Block Title - Search
 1)Flight Information 
 2)Customer ID
On Choosing the first radio button, a selection block with the following fields must appear
CARRID, CONNID , FLDATE which gives the first report and On choosing the second radio button,
CUSTOMER ID which should give the second report


but the if statement associated with the second radiobutton is not working.
the part with the first radio button works.


code


```REPORT  zkj_miniproject.
TABLES : sflight,scustom,sbook,spfli,scarr.
TYPES : BEGIN OF st_final,
  carrid TYPE sbook-carrid,
  connid TYPE sbook-connid,
  customid TYPE sbook-customid,
  carrname TYPE scarr-carrname,
  cityfrom TYPE spfli-cityfrom,
  cityto TYPE spfli-cityto,
  fldate TYPE sbook-fldate,
  passname TYPE sbook-passname,
  luggweight TYPE sbook-luggweight,
  wunit TYPE sbook-wunit,
  loccuram TYPE sbook-loccuram,
  END OF st_final,
  BEGIN OF st_rad2final,
    customid TYPE sbook-customid,
    carrname TYPE scarr-carrname,
    carrid TYPE sbook-carrid,
    connid TYPE sbook-connid,
    fldate TYPE sbook-fldate,
    bookid TYPE sbook-bookid,
    loccuram TYPE sbook-loccuram,
    END OF st_rad2final,
    BEGIN OF st_rad2scarr,
    carrid TYPE scarr-carrid,
    carrname TYPE scarr-carrname,
    END OF st_rad2scarr,
  BEGIN OF st_scarr,
    carrid TYPE scarr-carrid,
    carrname TYPE scarr-carrname,
    END OF st_scarr,
    BEGIN OF st_spfli,
      carrid TYPE spfli-carrid,
      connid TYPE spfli-connid,
      cityfrom TYPE spfli-cityfrom,
      cityto TYPE spfli-cityto,
      END OF st_spfli.
DATA : it_final TYPE TABLE OF st_final,
      wa_final LIKE LINE OF it_final,
      it_scarr TYPE TABLE OF st_scarr,
      wa_scarr LIKE LINE OF it_scarr,
      it_spfli TYPE TABLE OF st_spfli,
      wa_spfli LIKE LINE OF it_spfli,
      it_rad2final TYPE TABLE OF st_rad2final,
      wa_rad2final like LINE OF it_rad2final,
      it_rad2scarr TYPE TABLE OF st_rad2scarr,
      wa_rad2scarr LIKE LINE OF it_rad2scarr,
      text TYPE string.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-t01.
PARAMETERS :
rad1 RADIOBUTTON GROUP rad USER-COMMAND abc DEFAULT'X',
rad2 RADIOBUTTON GROUP rad .
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-t02.
SELECT-OPTIONS :
a FOR sbook-carrid MODIF ID ra,
b FOR sbook-connid MODIF ID ra,
c FOR sbook-fldate MODIF ID ra,
d FOR sbook-customid MODIF ID rb.
SELECTION-SCREEN END OF BLOCK block2.
AT SELECTION-SCREEN OUTPUT.
  IF rad1 = 'X'.
    LOOP AT SCREEN.
      if screen-group1 = 'RB'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEif rad2 = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'RA'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
START-OF-SELECTION.
if rad1 = 'X'.
  SELECT carrid connid fldate passname customid luggweight wunit
    loccuram
        FROM sbook
        INTO CORRESPONDING FIELDS OF TABLE it_final
        WHERE carrid IN a and connid IN b and fldate IN c.
  SELECT carrid carrname
    FROM scarr
    INTO CORRESPONDING FIELDS OF TABLE it_scarr.
  SELECT carrid connid cityfrom cityto
    FROM spfli
    INTO CORRESPONDING FIELDS OF TABLE it_spfli.
ELSEIF rad2 = 'X'.
 SELECT customid carrid CONNid fldate bookid loccuram
  from sbook
  INTO CORRESPONDING FIELDS OF TABLE it_rad2final
  WHERE customid in d.
  SELECT carrid carrname
    FROM scarr
    INTO CORRESPONDING FIELDS OF TABLE it_rad2scarr.
endif.
if rad1 = 'X'.
  LOOP AT it_final INTO wa_final.
    READ TABLE it_spfli into wa_spfli
    with key carrid = wa_final-carrid
    connid = wa_final-connid.
    wa_final-cityfrom = wa_spfli-cityfrom.
    wa_final-cityto = wa_spfli-cityto.
    READ TABLE it_scarr INTO wa_scarr
    WITH KEY carrid = wa_final-carrid.
    wa_final-carrname = wa_scarr-carrname.
    if wa_final-luggweight > 10.
      WRITE : / wa_final-carrname , wa_final-cityfrom , wa_final-cityto ,
          wa_final-fldate , wa_final-passname ,wa_final-luggweight COLOR 6,
          wa_final-wunit, wa_final-loccuram.
    else.
      WRITE : / wa_final-carrname , wa_final-cityfrom , wa_final-cityto ,
        wa_final-fldate , wa_final-passname ,wa_final-luggweight COLOR 5,
        wa_final-wunit, wa_final-loccuram.
    ENDIF.
  ENDLOOP.
 endif.
*BREAK-POINT.
IF rad2 = 'X'.
  LOOP AT it_rad2final INTO wa_rad2final.
    READ TABLE it_rad2scarr INTO wa_rad2scarr
      WITH KEY carrid = wa_rad2final-carrid.
    wa_rad2final-carrname = wa_rad2scarr-carrname.
  ENDLOOP.
  WRITE :/ wa_rad2final-carrname , wa_rad2final-connid , wa_rad2final-fldate , wa_rad2final-bookid , wa_rad2final-loccuram.
ENDIF.
```