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 formatting

Former Member
0 Kudos

Hi All,

In the alv gird (using FM ),the field text names which i have used to display are shortened i.e i have given delivery doc created date but it is displaying as created on .how to get the correct name to b refelected in the display.

in field catalog am specifying like this--

wa_g_fcat-fieldname = 'DERDAT'.

wa_g_fcat-reptext_ddic = text-019.

wa_g_fcat-ddic_outputlen = 20.

Thanks&Regards,

Padma.

10 REPLIES 10

Former Member
0 Kudos

Hello,

Pass the text to <b>

WA_FIELDCAT-SELTEXT_L

</b>

Vasanth

0 Kudos

Hi vasanth,

i have pass the structure in fieldcatalog merge to build the fieldcatalog.

it displaying the data base table description on the column header .

help me in this regard.

Thaks&Regards,

Padma.

0 Kudos

no problem... just after using the FM fieldcatalog merge

loop at it_fieldcat into wa_fieldcat where fieldname eq 'XXXXX'.

wa_fieldcat-seltext_s = 'Cr Dt'.
wa_fieldcat-seltext_m = 'Creation Date'.
wa_fieldcat-seltext_l = 'Creation Date'.
modify it_fieldcat from wa_fieldcat.

endloop.

0 Kudos

hi chandrasekhar,

Even though am getting the same problem that is displaying the database table field description only .

Thanks&Regards,

Padma.

Former Member
0 Kudos

Change the text of the text element text-019 to created date.

This might help you.

Regards,

Pavan P.

Former Member
0 Kudos

Also include these fields and check if it works

wa_g_fcat-seltext_l = text-019.

wa_g_fcat- seltext_m = text-019.

Former Member
0 Kudos

Hi,

use SELTEXT_M/SELTEXT_L to change the column header.

rgds,

bharat.

former_member588853
Active Contributor
0 Kudos

hi

<b>wa_g_fcat-seltext_m = text-019.</b>

Use the above one it will display what ever you wrote.

rewards if usefuil,

regards,

nazeer

Former Member
0 Kudos

populate the 3 texts

wa_fieldcat-seltext_s = 'Cr dt'.
wa_fieldcat-seltext_m = 'Creation date'.
wa_fieldcat-seltext_l = 'Creation date'.

Former Member
0 Kudos

example

fieldcatalog-fieldname   = 'EBELP'.
  fieldcatalog-seltext_m   = 'PO Item'.
  fieldcatalog-col_pos     = 1.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.

  fieldcatalog-fieldname   = 'STATU'.
  fieldcatalog-seltext_m   = 'Status'.
  fieldcatalog-col_pos     = 2.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.

  fieldcatalog-fieldname   = 'AEDAT'.
  fieldcatalog-seltext_m   = 'Item change date'.
  fieldcatalog-col_pos     = 3.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.

reward points if it is usefull ...

Girish