‎2008 Apr 17 3:18 AM
hi `
i just want to change the name of the text field, which sets in screen painter, however, there is no effect.
Below is my program.
i made it in PBO .
MODULE status_9000 OUTPUT.
LOOP AT SCREEN .
IF screen-name = 'TEXT1'.
text1 = 'this is text1'.
ENDIF.
IF screen-name = 'TEXT2'.
text2 = 'this is text2'.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_9000 OUTPUT
‎2008 Apr 17 3:42 AM
‎2008 Apr 17 3:50 AM
Hi,
MODULE status_9000 OUTPUT.
LOOP AT SCREEN .
IF screen-name = 'TEXT1'.
text1 = 'this is text1'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'TEXT2'.
text2 = 'this is text2'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_9000 OUTPUT
Pls. reward if useful.....
‎2008 Apr 17 3:51 AM
Hi,
Try....
MODULE status_9000 OUTPUT.
LOOP AT SCREEN .
IF screen-name = 'TEXT1'.
text1 = 'this is text1'.
Modify screen.
ENDIF.
IF screen-name = 'TEXT2'.
text2 = 'this is text2'.
Modify screen.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_9000 OUTPUT
Reward points if useful....
Regards
AK
‎2008 Apr 17 3:53 AM
Hi,
'loop at screen' will effect on screen fields like active, intensified, etc.
It will not efect on field values.
you can initialize that in initilization event.
example:
initialization.
text1 = 'this is text1'.
text2 = 'this is text2'.
Regards,
‎2008 Apr 17 3:55 AM
hi guys`
there is still no effect , when i use the MODIFY statement.
any other helpful aid .
‎2008 Apr 17 3:58 AM
both text1 and text2 are not the field included in internal table SCREEN. they are control made in screen painter
‎2008 Apr 17 4:04 AM
You can not control the texts using these loop at screen statements.
You jst have to default the values.
Text1= 'This is text1'.
Text2= 'This is text2'.
Now you can control to display Text1 or Text2 accordingly to ur requirement.
Regards
Gopi
‎2008 Apr 17 4:17 AM
do u mean that i put this default statement
'"Text1 = 'this ..' Text2 = 'this is ...' "
in the PBO without using LOOP and ENDLOOP with the SCREEN , however, there is still no effect.
can you explain clearly`?
thx again
‎2008 Apr 17 4:38 AM
Yes, i meant to default them.
But when do u need Text1 & Text2 on the screen, Do you need both of them at a time??
Or do u need either Text1 or Text2 on the screen (based on condition(s) )
if <cond1>.
loop at screen.
if screen-name = 'Text1'.
screen-input = 0.
clear text1.
modify screen.
endif.
endloop.
elseif <cond2>.
loop at screen.
if screen-name = 'Text2'.
screen-input = 0.
clear text2.
modify screen.
endif.
endloop.
endif.Regards
Gopi