SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME.
*больничный
PARAMETERS: r1 RADIOBUTTON GROUP rad1 USER-COMMAND com1,
*отпуска
r2 RADIOBUTTON GROUP rad1 ,
*прочее
r3 RADIOBUTTON GROUP rad1 .
SELECTION-SCREEN END OF BLOCK part1.
SELECTION-SCREEN BEGIN OF BLOCK part2 WITH FRAME.
*T60
PARAMETERS: r21 RADIOBUTTON GROUP rad2 USER-COMMAND com2,
*T61
r22 RADIOBUTTON GROUP rad2 .
SELECTION-SCREEN END OF BLOCK part2.
если пользователь выбирает отпуска r2, дать выбрать одни из нижних радиобатонов , сначала они недоступны для ввода.
Code:
INITIALIZATION.
*Блокировка RADIOBUTTON GROUP rad2
PERFORM field_input USING '0'.
**********************************************************************
AT SELECTION-SCREEN OUTPUT.
IF sy-ucomm = 'COM1'.
IF r2 IS INITIAL.
* Блокировка RADIOBUTTON GROUP rad2
PERFORM field_input USING '0'.
ELSE.
* Разблокировка RADIOBUTTON GROUP rad2
PERFORM field_input USING '1'.
ENDIF.
ENDIF.
******************************************************
FORM field_input USING value(p_input) TYPE c.
LOOP AT SCREEN.
IF screen-name = 'R21' OR screen-name = 'R22'.
screen-input = p_input.
screen-activ = p_input.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM.
при первоначальном выботе r2 радиобатоны группы rad2 открываются, но если потом выбрать r1 или r3, то радиобатоны все еще остаются доступными для ввода.
пробовал менять другие свойства, например invisible, ни какой реакции. Обновления появляются только после F8. _________________ Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Age: 170 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Tue Jul 15, 2008 5:05 pm Post subject:
Попробуйте так:
Code:
DATA: hide TYPE I.
SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME.
*больничный
PARAMETERS: r1 RADIOBUTTON GROUP rad1 USER-COMMAND com1,
*отпуска
r2 RADIOBUTTON GROUP rad1,
*прочее
r3 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK part1.
SELECTION-SCREEN BEGIN OF BLOCK part2 WITH FRAME.
*T60
PARAMETERS: r21 RADIOBUTTON GROUP rad2 USER-COMMAND com2,
*T61
r22 RADIOBUTTON GROUP rad2 .
SELECTION-SCREEN END OF BLOCK part2.
INITIALIZATION.
*Блокировка RADIOBUTTON GROUP rad2
PERFORM field_input USING hide.
**********************************************************************
AT SELECTION-SCREEN OUTPUT.
PERFORM field_input USING hide.
**********************************************************************
AT SELECTION-SCREEN.
IF sy-ucomm = 'COM1'.
IF r2 IS INITIAL.
CLEAR hide.
ELSE.
hide = 1.
ENDIF.
ENDIF.
******************************************************
FORM field_input USING value(p_input) TYPE I.
LOOP AT SCREEN.
IF screen-name = 'R21' OR screen-name = 'R22'.
screen-input = p_input.
* screen-active = p_input.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.