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

Loop at screen

Former Member
0 Likes
647

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. <= read the rules [here!|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

Thanks.

Edited by: Julius Bussche on Jul 30, 2008 3:49 PM

5 REPLIES 5
Read only

Former Member
0 Likes
621

Hi

U should check if the fm of the enanchement returns a flag for the status (updating, displaying...) else u can check the SY-TCODE:

LOOP AT SCREEN.
   IF SY-TCODE = 'KO03'.
      SCREEN-INPUT = 0.
      MODIFY SCREEN.
   ENDIF.
ENDLOOP.

U don't need to check the trx for inserting o updating because I suppose u have defined your field for input/output by default, so u need to change their chararteristics only when you need them for output only.

Max

Read only

0 Likes
621

Thanks but this is not working.

Read only

0 Likes
621

Sure?

It's strange, very strange: where did you place that piece of code?

Max

Read only

Former Member
0 Likes
621

where did you put it, PAI, PAO?

Read only

Former Member
0 Likes
621

And what about this one Mohammed?

Reference: