Not able to copy Data Dictionary reference Label as Column Header for Table Control in Screen Programming
Hello All ,
I am creating a Table Control and for data to be populated in the Table Control am declaring a Work Area with reference to Data Dictionary object , so containing all valid Label text for each fields in their corresponding Data Elements.
But when I am referencing this Work Area to this Table Control using "Get from Program" button , Text radiobutton is showing deactivated.
So for this reasons I am not able to use Data Elements Label as Column heading.
Table is active in DDIC , an earlier Screen Program has also been done the same way , in that program DDIC label is picking.
I am not able to figure out whats wrong.
Helpful views required.
I suppose the data are imported from dictinary
For example I've declared a table in my program:
DATA: BEGIN OF ITAB OCCURS 0,
BUKRS LIKE T001-BUKRS,
BUTXT LIKE T001-BUTXT,
END OF ITAB.
So if I wan to use it as headerline of table control in order to get the attributies of dictionary, if I try to import data from ITAB, i can't insert the label
So I can use directly T001:
and so I replace the name:
In this way the field points to ITAB, but the header still points to T001 (so dictionary):