2007 Aug 03 7:24 AM
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
parameters:
p_check1 as checkbox default 'X' user-command UM1 modif id mg2,
p_file LIKE rlgrap-filename modif id mg2, " File Name
p_check2 as checkbox user-command UM2 modif id mg1,
p_custmr like zinvm-zcustmr default 'SCI' modif id mg1 .
select-options : s_date for sy-datum modif id mg1.
SELECTION-SCREEN END OF BLOCK b1 .
if deselct first one ( p_check1 ) second should be selected (p_check2 ) vis versa.
and below field should be input enable and disable .
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
parameters:
p_check1 as checkbox default 'X' user-command UM1 modif id mg2,
p_file LIKE rlgrap-filename modif id mg2, " File Name
p_check2 as checkbox user-command UM2 modif id mg1,
p_custmr like zinvm-zcustmr default 'SCI' modif id mg1 .
select-options : s_date for sy-datum modif id mg1.
SELECTION-SCREEN END OF BLOCK b1 .
if deselct first one ( p_check1 ) second should be selected (p_check2 ) vis versa.
and below field should be input enable and disable .
2007 Aug 03 7:27 AM
Hi,
Write your code at
AT SELECTION-SCREEN OUTPUT.
if p_check1 is initial.
p_check2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_FILE'.
SCREEN-INPUT = 0.
ENDIF.
IF SCREEN-NAME = 'P_CUSTMR'.
SCREEN-INPUT = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endif.
if p_check2 is initial.
p_check1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_FILE'.
SCREEN-INPUT = 1.
ENDIF.
IF SCREEN-NAME = 'P_CUSTMR'.
SCREEN-INPUT = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endif.
Regards,
Sesh
2007 Aug 03 7:28 AM
Hi
Use
AT SELECTION-SCREEN OUTPUT.
if p_check1 is initial.
LOOP AT SCREEN
if screen-name = 'P_FILE'.
<disable>
modify screen.
endif.
ENDLOOP.
endif.
Similarly write for p_check2.
Regards,
Raj
2007 Aug 03 7:30 AM
Hi,
Here is a code which does what is the funcationality you expect.
Parameters :
RB_1 RADIOBUTTON GROUP G1 USER-COMMAND A1," USER-COMMAND is used to trigger event and got AT SEELCTION-SCREEN , here we do not require it
RB_2 RADIOBUTTON GROUP G1 ,
P1 TYPE MATNR ,
P2 TYPE MATNR .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF RB_1 = 'X'.
IF SCREEN-NAME = 'P1' .
SCREEN-INPUT = 1.
else if SCREEN-NAME = 'P2'.
SCREEN-INPUT = 0.
ENDIF.
MODIFY SCREEN.
ELSEIF RB_1 = ' '.
IF SCREEN-NAME = 'RB_2' .
rb_2 = 'X'.
elseIF SCREEN-NAME = 'P1' .
SCREEN-INPUT = 0.
else if SCREEN-NAME = 'P2'.
SCREEN-INPUT = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards,
Sankar
2007 Aug 03 7:40 AM
hi,
Please look at the program.........you will get an idea how to work with check boxes
COPY PASTE the program into your editor and execute..
See each step and you can understand how to disable and enable.
tables mara.
parameters : p_check as checkbox default 'X' user-command ac.
select-options : s_matnr for mara-matnr modif id id2.
at selection-screen output.
loop at screen.
if screen-group1 = 'ID2'.
if p_check ne 'X'.
screen-input = 1.
else.
refresh s_matnr.
screen-input = 0.
modify screen.
endif.
endif.
endloop.
rewards if useful,
regards,
nazeer
Message was edited by:
nazeer shaik
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |