2010 Apr 01 12:27 AM
Hi Gurus,
My client has requirement to display table maintenance columns on certain conditions. Let us say. Column # 1 in the table maintenance needs to be shown in display mode for user1 & same column needs to be shown in change mode for user2. Can you please tell how we can modify table maintenance columns depending on certain conditions?
Points will be awarded for correct answers.
2010 Apr 01 2:48 AM
Hi,
Create the table maintenance generator, and then we need to enchance that.
In the function group, go to the screen number and then in the PBO module,
create a module to write your code.
eg:
PBO
module change_field_properties,
MODULE change_field_properties OUTPUT.
IF sy-uname EQ 'DEVELOPER'..
loop at screen.
if screen-name Eq 'TABLE-FIELD'.
screen-input = 0.
modify screen.
endif.
endloop.
ENDIF.
ENDMODULE.
like this depending on the user ... we can control the screen fields.
Hope this may help you.
Regards,
Venkatesh
2010 Apr 01 7:23 AM
Use authorization objects or use event "26" in the table maintanance event.
Regards
Vinod
2010 Apr 01 7:29 AM
Hi,
write a simple code in the table maintenance gerator events ,
for which user u need to provide display mode
and to which user u need provide editable mode
Thanks