06-16-2009 6:32 AM
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
06-16-2009 6:37 AM
Hi,
How come both LMS and table referance text are blank, you should ensure that you give either one of them while building the fieldcatalog.
Regards
Karthik D
06-16-2009 7:59 AM
Hi karthik,
My table is dynamic.
LMS i am taking from a custom table so it may happen the user by mistake may not maintian the table.
ref field and ref table....i am passing for selected fields since i am building a dynamic select to check the input of user based on ref table and field.
all the fields where the ref field and ref table are empty then the text is comming from LMS.
but if ref field and table are not empty then text s coming from from the field.
assume if i am passing
ref field as prctr and
ref table as cepc for three fields
then column text for the three field is coming as Profit centre.
Since the text is same it will be difficult for the user to differentiate between these 3 columns.
since the text is same.
i want to display the LMS maintianed in the custom table even when i am passing the ref field and table.
is there any way to do this?
regards/Ajay
06-16-2009 10:26 AM