‎2010 Feb 16 12:02 PM
Dear Experts,
I am pretparing one ALV. It is almost done but i m facing one problem:
I hv to print a record which is a combination of values of two fields belonging to two different tables.
i.e.
field3 = table1-field1 + table2-field2 (This i combines by using concatenate operator).
now field3 should be of size of field1 + field2 . So i declare it as
field3(40) type c.
now how should i mention this field in FIELDCATALOG.
bcoz this field doesnot belong to any table ..
Later on i hv created one custom table and mention the field name there.
but when this tablename along with fieldname is mentioned in fieldcatalog it is displaying the value of the field just prior to it.
please help..
Regards,
Apoorv Sharma
‎2010 Feb 16 12:14 PM
Hi Apoorv,
Please provide a Text element instead of referring to any table field in field Catalog and provide the description value in text element for that column.
Please look at the sample code below.
gw_field-fieldname = 'field3'.
gw_field-seltext_m = text-001.
gw_field-tabname = 'GT_OUTPUT'.
gw_field-outputlen = 40.
gw_field-col_pos = l_col.
APPEND gw_field TO t_fcat.
Hope this Helps.
Regards,
Chandravadan
‎2010 Feb 16 12:14 PM
Hi Apoorv,
Please provide a Text element instead of referring to any table field in field Catalog and provide the description value in text element for that column.
Please look at the sample code below.
gw_field-fieldname = 'field3'.
gw_field-seltext_m = text-001.
gw_field-tabname = 'GT_OUTPUT'.
gw_field-outputlen = 40.
gw_field-col_pos = l_col.
APPEND gw_field TO t_fcat.
Hope this Helps.
Regards,
Chandravadan
‎2010 Feb 16 12:25 PM
oh thanks so much Chandravadan.. Problem solve.. I m alotting points plz check
Regards,
Apoorv