11-25-2008 4:50 PM
Hi Experts,
I m using module pool programming in which i am using custom control to display my output table.
Table has 2 fields for checkbox :
1. Dishonor cheques
2. Blacklist cheques.
Screen also has a pushbutton 'Remove blacklist cheques'.
Initially I am displaying 2nd checkbox field ( Blacklist cheques) as only output and 1st field as input.
When user presses pushbutton 'Remove blacklist cheques' , 2nd checkbox field (Blacklist cheques)
should be converted into input and output field.
Please suggest.
Regards,
Kaustubh.
11-25-2008 7:22 PM
When user press the 'Remove blacklist cheques'
in the PAI in
module User_command .
loop at screen.
If screen-name eq 'BLACKLIST CHEQUES'.
SCREEN-INPUT = 1 .
SCREEN-OUTPUT = 1 .
Modify Screen.
endif.
Endloop.
endmodule.
Regards
Neha
Edited by: Neha Shukla on Nov 26, 2008 11:10 AM
Edited by: Neha Shukla on Nov 26, 2008 11:12 AM
11-26-2008 7:46 AM
Hi Neha,
I tried your solution,but in debugger i am not getting checkbox fields of internal table which i have passed in custom control in screen-name field of screen.
please suggest.
Regards,
Kaustubh.
11-26-2008 5:06 AM
Hi,
Try this In the PBO you can write this Code
If sy-ucomm = ''Remove blacklist cheques'.
loop at screen.
If screen-name NE 'Dishonor cheques'.
SCREEN-INPUT = 1 .
SCREEN-OUTPUT = 1 .
Modify Screen.
endif.
If screen-name eq Blacklist cheques'.
SCREEN-INPUT = 0 .
SCREEN-OUTPUT = 0 .
Modify Screen.
endif.
ELSE.
If screen-name eq 'Dishonor cheques'.
SCREEN-INPUT = 0 .
SCREEN-OUTPUT = 0 .
Modify Screen.
endif.
If screen-name eq Blacklist cheques'.
SCREEN-INPUT = 1 .
SCREEN-OUTPUT = 1 .
Modify Screen.
endif.
Endloop
11-26-2008 7:48 AM
Hi Avinash,
I tried your solution,but in debugger i am not getting checkbox fields of internal table which i have passed in custom control in screen-name field of screen.
please suggest.
Regards,
Kaustubh.
01-14-2009 9:59 AM
01-14-2009 10:00 AM
01-14-2009 10:00 AM