‎2008 Jun 05 3:24 PM
Hi All,
I am working on screen exit. I am using the tn. code KO01, KO02, KO03. I have added three new fields on the subscreen. I want the fields which i have added to be input disabled when i go to the transaction code KO03. How should i achieve it.
Will reward if the reply is helpful.
Thanks.
‎2008 Jun 06 9:57 AM
hi,
put the below code in some Module at PBO.
If sy-tcode = '<TCODE>'.
loop at screen.
if screen-name = <FIELDNAME>.
screen-input = '0'.
modify screen.
endloop.
endif.
Or if you given some group name to the fields.
then you can also code like this.
If sy-tcode = '<TCODE>'.
loop at screen.
if screen-name = <FIELDNAME> and screen-group1 = <GROUPNAME>.
screen-input = '0'.
modify screen.
endloop.
endif.
Do this, it will surely work.
‎2008 Jul 30 4:47 PM
>
> Will reward if the reply is helpful.
You didn't keep your word, did you?
‎2008 Jul 31 6:20 AM
hi,
do one thing ........you go to se80 .....give the program name of the screen which u added .......there go to flow logic of your screen(custom screen)..... in pbo create a module ...you double click it will ask you for creation of new include create it and write the code....
like loop at screen.
if screen-name = <>
screen-input = 0.
endif.
endloop.
‎2008 Jul 31 6:54 AM
‎2008 Jul 31 7:19 AM
In the In the Include of your PBO module you can write following code.......
give group name to your screen field.
IF SY-TCODE EQ 'KO03'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'GRP'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.