Monday, November 16, 2009

Mutiple Parameters /radio buttons on the same Line

Sample Code:

 

SELECTION-SCREENBEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-
SCREENBEGIN OF LINE.
PARAMETERS      : p_rb1    RADIOBUTTON GROUP p2
                      USER-COMMAND dtl “ if you wanted to control

                      MODIF ID dtl.

SELECTION-
SCREEN COMMENT 4(10text-rb1.”RB1 Text
PARAMETERS      : p_rb2    RADIOBUTTON GROUP p2 MODIF ID sum.
SELECTION-
SCREEN COMMENT 18(12text-rb2."RB2 Text
SELECTION-
SCREEN:   END OF LINE.

SELECTION-
SCREENEND OF BLOCK b1.

 

Any change in the radio buttons can be validated as follows:

 

AT SELECTION-SCREEN OUTPUT.

  
IF p_rb1 IS NOT INITIAL AND p_onli IS NOT INITIAL AND  p_vari IS INITIAL.

“ p_onli and p_vari are some variables that needs validation

    
SET CURSOR FIELD 'P_VARI'.
    
MESSAGE s999(zz) WITH  'Please Enter Layout Variant '.

   ENDIF.



Thanks & Regards

Durga  Prasad

No comments: