Skip to Content
0
Jun 16, 2009 at 05:32 AM

ALV grid: Column text

153 Views

Hi All,

I am displaying and alv grid and while building it i have am passing the following parameters

l_field_catalog-fieldname

l_field_catalog-scrtext_m

l_field_catalog-scrtext_l

l_field_catalog-scrtext_s

l_field_catalog-ref_table

l_field_catalog-ref_field

My column text is coming as below.

1. if ref field & table have value then grid is displaying text from it.

2. if ref field and table are empty then text is coming from L, M, S text.

3. if (ref field & table ) and (L,M,S) text are balnk then it is takeing the fieldname text .

i want my grid to take the value first from (L,M,S) text if they have value otherwise from ref table & field .

if both of them are empty then from fieldname.

i have tried passing l_field_catalog-SELDDICTXT but it does not works if ref table and field are not balnk.

Can someone please tell me how should i do it?

Regard/Aj