Search on this Website

Wednesday, June 13, 2007

change attributes of an item in a screen and in a table control at runtime

add the following code in PBO
loop at screen.
if screen-name = 'NAME_OF_FIELD_HERE_IN_CAPS'.
set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF)
e.g. screen-output = 1.
modify screen.
endif.
endloop



if the field is part of a table control, put the above code within the the loop...endloop of the table control in PBO

Other Useful Link :
Modify recording scenario
Hide a column in a table control at runtime
Create F4 help
Dialog Programming FAQ
Download Dialog programming Tutorial


Website : http://abapcode.blogspot.com/

No comments: