Skip to Content
0
Former Member
Mar 04, 2008 at 03:30 PM

regarding loop at screen

14 Views

Hi frnds,

This is the code i have written , actually i have obligatory selection-options.

so when i m pressing second radio-button its asking for values to be enterd in obligatory select-options.

so wht shuld be done.

as when i press second radio-button it shuld make the second select-options invisible.

so wht shuld be done.

<code>

REPORT ZTEST_VALIDATE.

TABLES : bsis.

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETER : sp_sel radiobutton group rad USER-COMMAND radio DEFAULT 'X',

sp_all RADIOBUTTON GROUP rad,

sp_all1 radiobutton group rad.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS : so_bukrs FOR bsis-bukrs OBLIGATORY MODIF ID sp1.

SELECT-OPTIONS : so_hkont FOR bsis-hkont OBLIGATORY MODIF ID sp2.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF sp_all = 'X' OR SP_ALL1 = 'X'.

IF screen-group1 = 'SP2'.

screen-input = '0'.

screen-invisible = '1'.

  • screen-required = '1'.

  • screen-active = '1'.

MODIFY SCREEN.

ENDIF.

endif.

ENDLOOP.

</code>

regards,

karan