Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

At selection screen output plz help

hi all ,

i written below code . my req is if users select radio button r_com all elements in block b2 should be invisable.

this code is not working becuase r_com is populated with 'X' VALUE at rumtime in the event .

tables : coep ,SSCRFIELDS.

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS : S_GJAHR FOR COEP-GJAHR NO INTERVALS NO-EXTENSION

OBLIGATORY ,

S_PERIO FOR COEP-PERIO NO INTERVALS NO-EXTENSION

OBLIGATORY.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(20) TEXT-002.

PARAMETERS : r_Com RADIOBUTTON GROUP mai user-command rusr .

SELECTION-SCREEN COMMENT 25(15) TEXT-003.

PARAMETERS : r_group RADIOBUTTON GROUP mai .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN : END OF BLOCK B1 .

SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(30) TEXT-003 MODIF ID B21.

parameters : p_0001 like AFRU-ISMNW OBLIGATORY MODIF ID B21.

SELECTION-SCREEN COMMENT 45(40) TEXT-004 MODIF ID B21.

parameters : p_0002 like AFRU-ISMNW OBLIGATORY MODIF ID B21 .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(30) TEXT-005 MODIF ID B21.

parameters : p_0003 like AFRU-ISMNW OBLIGATORY MODIF ID B21.

SELECTION-SCREEN COMMENT 45(40) TEXT-006 MODIF ID B21.

parameters : p_0004 like AFRU-ISMNW OBLIGATORY MODIF ID B21 .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN : END OF BLOCK B2 .

at selection-screen OUTPUT.

IF R_COM EQ 'X' .

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'B21'.

SCREEN-ACTIVE = 0 .

MODIFY SCREEN.

ENDIF.

ENDLOOP.

thanks ,

sridhar

Tags:
Not what you were looking for? View more on this topic or Ask a question