Skip to Content
0
Former Member
Sep 14, 2007 at 01:11 PM

Fieldcatalog coltext property question...

55 Views

Hi all,

Check this out...I build my field catalog field by field as follows:

lx_fcat-fieldname = 'WERKS'.

lx_fcat-ref_table = 't_audit'.

lx_fcat-coltext = 'Plant'(c03). "Need to replace c03 with integer var containing c03

l_col_pos = l_col_pos + 1.

lx_fcat-col_pos = l_col_pos.

lx_fcat-fix_column = 'X'.

APPEND lx_fcat TO gt_fcat.

The coltext has a static comment associated with it named c03. I want to be able to set the commnet using a variable defined in my code that is dependent upon the value stored in l_col_pos. For instance...if l_col_pos is 2 then the value stored in the comment variable will be c02. The problem is the compiler is looking for an interger and I'm having trouble concatenating 'C' and l_col_pos and then storing that value in an integer. I keep getting a dump...can I define the comment value dynamically?

Thanks much.