Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic header in table control doesn't work

0 Likes
701

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.

1 ACCEPTED SOLUTION
Read only

0 Likes
621

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.

1 REPLY 1
Read only

0 Likes
622

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.