‎2010 Apr 20 10:13 AM
Hi all that's my first post here & i have a "Big" question can we use a screen painter element Properties in an ABAP code
Exemple:
in a input/output Field i want to change the text color after a some conditions
Help please
Regards.
MEHDI
‎2010 Apr 20 10:47 AM
Hello,
There would some functionality that can be attained by coding in ABAP. Say for instance you want the text in an input box to be changed in color upon clicking a puchbutton.
Say TEXT is the name of the input box and OK is the function code of the button, then if you write the code similar to the following in the PBO of the screen, the color change can be attained
if sy-ucomm = 'OK'.
loop at screen.
if screen-name = 'TEXT'.
screen-intensified = '1'.
modify screen.
endif.
endloop.
endif.
Similarly using screen-invisible, screen-input etc can be used to hide or disable the input box at runtime.
Regards,
Sachin
‎2010 Apr 20 10:19 AM
Hi,
There are some properties like enable and disable or greyed out the fields you can manage
using the SCREEN internal table but not all functionalities.
Some of them need to be set at property level in se51.
Regards and Best wishes.
‎2010 Apr 20 10:25 AM
What can and cannot be?
[Properties of screen painter in ABAP|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801c3a454211d189710000e8322d00/content.htm]
‎2010 Apr 20 10:39 AM
‎2010 Apr 20 10:42 AM
Thats a pretty vast question. If you have any requirement put it. Anyways you can google or go for F1 help.
‎2010 Apr 20 10:47 AM
Hello,
There would some functionality that can be attained by coding in ABAP. Say for instance you want the text in an input box to be changed in color upon clicking a puchbutton.
Say TEXT is the name of the input box and OK is the function code of the button, then if you write the code similar to the following in the PBO of the screen, the color change can be attained
if sy-ucomm = 'OK'.
loop at screen.
if screen-name = 'TEXT'.
screen-intensified = '1'.
modify screen.
endif.
endloop.
endif.
Similarly using screen-invisible, screen-input etc can be used to hide or disable the input box at runtime.
Regards,
Sachin
‎2010 Apr 20 11:13 AM
‎2010 Apr 20 11:17 AM
‎2010 Apr 20 4:32 PM
Moderator message - Unfortunately, this forum is not a place to learn ABAP. I suggest that you get one of the good ABAP books that are out there and maybe join an internet forum that caters to beginners Please also read and before posting Rob