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

alv formatting

Former Member
0 Likes
810

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
Read only

Former Member
0 Likes
786

Hello,

Pass the text to <b>

WA_FIELDCAT-SELTEXT_L

</b>

Vasanth

Read only

0 Likes
786

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.

Read only

0 Likes
786

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.

Read only

0 Likes
786

hi chandrasekhar,

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

Thanks&Regards,

Padma.

Read only

Former Member
0 Likes
786

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

This might help you.

Regards,

Pavan P.

Read only

Former Member
0 Likes
786

Also include these fields and check if it works

wa_g_fcat-seltext_l = text-019.

wa_g_fcat- seltext_m = text-019.

Read only

Former Member
0 Likes
786

Hi,

use SELTEXT_M/SELTEXT_L to change the column header.

rgds,

bharat.

Read only

Former Member
0 Likes
786

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

Read only

Former Member
0 Likes
786

populate the 3 texts

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

Read only

Former Member
0 Likes
786

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