Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

screen exit....

Former Member
0 Likes
684

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.

5 REPLIES 5
Read only

Former Member
0 Likes
583

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.

Read only

Former Member
0 Likes
583

>

> Will reward if the reply is helpful.

You didn't keep your word, did you?

Read only

Former Member
0 Likes
583

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.

Read only

Former Member
0 Likes
583

Hi,

Check the below links.

[|]

Regards,

Boobalan S

Read only

Former Member
0 Likes
583

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.