2007 Sep 12 2:16 PM
hi all,
I hav a query regarding the processing of the selection screen
in my selection screen i hav two fields : pr1 and pr2 as parameters in block b1.
and two radio buttond in block b2.
1. create entries
2. view
now the problem is that when i click on create entries(actually that is by default clicked, set to 'X');then the two fields in block b1 (pr1 and pr2 ) should be disabled.
and when i check the radiobutton view, both the fields should be enabled/editable.
please suggest me how to code for this. Its quiet urgent.
Thanks in advance.
hi all,
I hav a query regarding the processing of the selection screen
in my selection screen i hav two fields : pr1 and pr2 as parameters in block b1.
and two radio buttond in block b2.
1. create entries
2. view
now the problem is that when i click on create entries(actually that is by default clicked, set to 'X');then the two fields in block b1 (pr1 and pr2 ) should be disabled.
and when i check the radiobutton view, both the fields should be enabled/editable.
please suggest me how to code for this. Its quiet urgent.
Thanks in advance.
2007 Sep 12 2:20 PM
2007 Sep 12 2:21 PM
Hi,
in the AT SELECTION_SCREEN OUTPUT event you need to write the logic
AT SELECTION_SCREEN OUTPUT
LOOP AT SCREEN.
if VIEW = 'X' " View radio button selects
IF SCREEN-NAME = 'PR1'.
screen-INPUT = 0.
modify screen.
ENDIF.
IF SCREEN-NAME = 'PR2'.
screen-INPUT = 0.
modify screen.
ENDIF.
ENDLOOP.You need to write the above code, then it will work for CREATE ENTRIES and VIEWS
Regards
Sudheer
2007 Sep 12 2:29 PM
hi i think this could b of some help..here instead of one field u can use 2 fields to disable or enable......
parameters : rb1 radiobutton group grp1 user-command RB1 default 'X',
rb2 radiobutton group grp1.
selection-screen begin of line.
selection-screen comment (30) v_text for field rb1.
selection-screen end of line.
selection-screen begin of block b1 WITH FRAME.
parameters : p_name(20) obligatory DEFAULT 'ABC' MODIF ID ID1.
selection-screen end of block b1.
*
selection-screen begin of block b2 WITH FRAME.
parameters : p_name1(20) obligatory DEFAULT 'XYZ' MODIF ID ID2.
selection-screen end of block b2.
initialization.
format color col_positive.
v_text = 'hello'.
format color off.
AT SELECTION-SCREEN OUTPUT.
IF RB1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ID1'.
SCREEN-input = ' '.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ID2'.
SCREEN-input = ' '.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
2008 Mar 31 11:30 AM
Hi
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S1.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X' user-command uc1.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
***********SCREEN MODIFICATIONS*******************
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
********END OF SCREEN MODIFICATIONS*****************
regards
Naresh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |