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

Header text for columns

Former Member
0 Likes
3,198

Hi,

I have successfully created a custom transparent table in DDIC and populated it with test data. When I view the contents of the table in SE11 / SE16, however, in the ALV grid that shows, the header row text for the column is not appearing, only field names are displayed. I want the short text for the fields to appear in the header row for each column.

E.g.

Table fields Short Text

MANDT Client

DISTF Distinctive No. From

DISTT Distinctive No. To

Output is like:

Cl. | DISTF | DISTT

-


|--


|--


100 | 10000001 | 10000010

-


|--


|--


100 | 10000011 | 10000020

-


|--


|--


I want output like this:

Cl. | Distinctive No. From | Distinctive No. To

-


|--


|--


100 | 10000001 | 10000010

-


|--


|--


100 | 10000011 | 10000020

-


|--


|--


Is this possible? I have already tried menu: Settings > User parameters > Keyword: Field Text but it doesn't work. Any help would be greatly appreciated.

Regards

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
1,742

In addition to that setting in SE16, your table fields need to have references to data elements in order for the column headers to show the texts (taken from the data elements).

Thomas

Edit: checked again, only when there is no reference to a data element AND the output field length is shorter than the description (like in your case), then the description will not show up.

5 REPLIES 5
Read only

Former Member
0 Likes
1,742

hi....

You dont have to do any change for that....

in the ouput of se16 where you can see all the table entries in alv format go to->settings-user paramerter and change from field name to field text.You will be able to see the text of the fiellds and not the field name.

you have to choose the radiobutton fieldltext instead of fieldname

try it.....

Read only

Former Member
0 Likes
1,742

Hi ,

Are you getting the same for the standard tables also.

Unfortunately i am unable to recreate the same scenario in my system.

Are you trying to view the table by loggin in using another language , if that is the case then you will not get the discription if it is not maintained in that language , only the field names will be displayed .

Regards

Arun

Edited by: Arun R on Jun 19, 2008 5:12 PM

Read only

ThomasZloch
Active Contributor
0 Likes
1,743

In addition to that setting in SE16, your table fields need to have references to data elements in order for the column headers to show the texts (taken from the data elements).

Thomas

Edit: checked again, only when there is no reference to a data element AND the output field length is shorter than the description (like in your case), then the description will not show up.

Read only

0 Likes
1,742

Thanks Thomas,

I now understand why the problem is occurring. I tried creating a data element and using it in the field definition but it still wouldn't pick up the field text in the ALV grid. Any suggestions?

Regards

Edited by: Khan Awkhan on Jun 20, 2008 2:26 PM

Read only

0 Likes
1,742

hi check this...

had you created the z data element ....if so create the domain for that then it is possible...