Hi .. Greetings to all,
Is it possible to edit the table controls in user exit...??
In exit ZXPADU03 for transaction PA40 , I have to change the table control's field property to display only mode for some users maintained in one table.
I had defined the control statement globally in ZXPADTOP :-
CONTROLS: tc_menu_event TYPE TABLEVIEW USING SCREEN 2000.
DATA: tc_menu_event1 like TABLE OF tc_menu_event .
DATA: cols LIKE LINE OF tc_menu_event-cols .
FIELD-SYMBOLS: <MENU_TC> TYPE CXTAB_CONTROL.
In exit ZXPADU03 I am trying with this code :-
IF SY-TCODE = 'PA40'.
SET SCREEN 2000.
ASSIGN TC_MENU_EVENT TO <MENU_TC>.
LOOP AT TC_MENU_EVENT1-COLS INTO COLS.
IF COLS-SCREEN-NAME = 'RP50G-WERKS'.
COLS-SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
But it is giving error during runtime on line ASSIGN TC_MENU_EVENT TO <MENU_TC>. that " This dynpro (2000) does not exist".
and I am unable to use "WITH CONTROL TC_MENU_EVENT" with loop as it is EXIT not in PBO or PAI module....
Please tell me how to solve this problem ....??
Regards,
Sourabh