Skip to Content
0
Former Member
Dec 30, 2011 at 10:53 PM

SAP ALV wa_fieldcat-ref_tabname ? No table?

1069 Views

Hey friends !

My question is when we display a field in ALV i m using the following code

wa_fieldcat-fieldname = ' '.

wa_fieldcat-ref_tabname = ' '.

wa_fieldcat-outputlen = .

wa_fieldcat-tabname = ' '.

wa_fieldcat-seltext_m = ' '.

APPEND wa_fieldcat TO it_fieldcat.

CLEAR wa_fieldcat.

repeatidly for all fields ..

Now , if i want to add a field which is ""not a field of any database TABLE"" but we have defined it under types .

So My question is what I give in the

wa_fieldcat-ref_tabname

if we do not have any database table for that ...

while debugging im getting the correct value for it but it is not displaying the same in ALV ... pLS SUGGEST