Application Development 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: 

ALV Fieldcatalog

rainer_hbenthal
Active Contributor
0 Kudos

Hi,

i do not have a reference table in the data dictionary to spcidy the ref_tablename and ref_fieldname in the fcat structure. What i have is the the datatype which is in the data dictionary. IS there a place in the fact structure to use this?

Of course i can use the seltexts in the structure, but then i have to translate them into many languages as well and this is what i dont wanna do.

Next possibility is to declare my table in the data dictionary, but htis a table only used once for sure.

So, what chance do i have using the datatype only? Using the field datatype in the fcat structure does not fill the labels.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

you can use ROLLNAME of fieldcatalog for this.

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

Try these fields from slis_fieldcat_main0 structure.

datatype like dd03p-datatype,

inttype like dd03p-inttype,

I355602
Advisor
Advisor
0 Kudos

Hi,

Try:-


SELECT * FROM dd03t WHERE tabname = '<table_name>'.
 
    CLEAR afield.
    afield-fieldname = dd03t-fieldname.
    afield-tabname = 'gt_alv_out'. "internal table
    afield-seltext_l = dd03t-ddtext.
    APPEND afield TO xfield.
 
  ENDSELECT.

Hope this helps you.

Regards,

Tarun

former_member188685
Active Contributor
0 Kudos

you can use ROLLNAME of fieldcatalog for this.