‎2019 May 07 1:39 PM
Hi! I'm trying to assign dynamic headers to columns in a table control of a dynpro.
I create a I/O field instead a the text field:

I create a global variable TEXT_AZT and I try to assign te text from a table.
LOOP AT SCREEN.
IF screen-name = 'TEXT_AZT'.
CLEAR ls_wcm_dycon.
READ TABLE lt_wcm_dycon INTO ls_wcm_dycon
WITH KEY dynpro_obj = 'TEXT-AZT'
BINARY SEARCH.
IF ls_wcm_dycon-con_mask = 'X'.
READ TABLE lt_wcm_dycon_t INTO ls_wcm_dycon_t
WITH KEY dynpro_obj = 'TEXT-AZT'
BINARY SEARCH.
TEXT_AZT = ls_wcm_dycon_t-mascara.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
But It doesn't work and the header appears with blank. Anybody knows what am I doing wrong? Thanks.
‎2019 May 09 2:04 PM
Hi people! I find the solution just now. In the PBO the table control is fill in previously of the init module. I can change all fields in any point of the PBO but in order to change the view of a table control we have to "paint it" before load any data to the table control.
Thank you if you try to help me.
‎2019 May 09 2:04 PM
Hi people! I find the solution just now. In the PBO the table control is fill in previously of the init module. I can change all fields in any point of the PBO but in order to change the view of a table control we have to "paint it" before load any data to the table control.
Thank you if you try to help me.