Application Development and Automation 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: 
Read only

fieldcatalog Problem

Former Member
0 Likes
422

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

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

2 REPLIES 2
Read only

Former Member
0 Likes
387

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

Read only

0 Likes
386

oh thanks so much Chandravadan.. Problem solve.. I m alotting points plz check

Regards,

Apoorv