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

Former Member
0 Likes
1,007

hi experts,

my reqeirment is that to change columm headings in alv list i tried in fieldcat_ln-seltext_s . but itsnot effecting. what can i do can any body help me..

advance thanks

hi experts,

my reqeirment is that to change columm headings in alv list i tried in fieldcat_ln-seltext_s . but itsnot effecting. what can i do can any body help me..

advance thanks

8 REPLIES 8
Read only

Former Member
0 Likes
971

Change SELTEXT_M and SELTEXT_L as well. That should show the difference.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
971

Hi,

Use this,

wa_fcat-seltext_l.

Regs,

Venkat Ramanan

Read only

Former Member
0 Likes
971

check whether you are passing ref.field name and ref. table name in the field catalog. If you pass these two values to field cat., you can't change the column names and system will automatically takes the corresponding data element's name.

Regards

Read only

0 Likes
971

> check whether you are passing ref.field name and ref.

> table name in the field catalog. If you pass these

> two values to field cat., you can't change the column

> names and system will automatically takes the

> corresponding data element's name.

>

> Regards

hi,

yes am passing field name and dataelement so what is the solution for this

Read only

0 Likes
971

What u can do is modify the fieldcat before displaying the ALV.

Here is sample code for that...

FORM f9002_modify_field_cat TABLES p_fieldcat STRUCTURE lvc_s_fcat.

FIELD-SYMBOLS : <lfs_fieldcat> TYPE lvc_s_fcat.

LOOP AT p_fieldcat ASSIGNING <lfs_fieldcat>.

CASE <lfs_fieldcat>-fieldname.

WHEN 'VBELN'.

<lfs_fieldcat>-coltext = text-105.

<lfs_fieldcat>-seltext = text-105.

WHEN 'POSNR'.

<lfs_fieldcat>-coltext = text-106.

<lfs_fieldcat>-seltext = text-106.

ENDCASE.

ENDLOOP.

ENDFORM. " f9002_modify_field_cat

Here Text elements are the names of fields u want to display

Read only

former_member480923
Active Contributor
0 Likes
971

Hi,

If you have your fieldcat targetting the table LVC_T_FCAT then you can show your heading by modifying the values of the following fields

<l_fieldcat>-coltext = text-t01.
<l_fieldcat>-scrtext_m = text-t01.
<l_fieldcat>-scrtext_s = text-t01.

Hope this Helps

Anirban

Read only

santhosh_patil
Contributor
0 Likes
971

hi,

try with this <b>fieldcat-reptext_ddic</b> = text-001.

fieldcat is of type slis_t_fieldcat_alv.

Read only

Former Member
0 Likes
971

Hi raghuveer,

1. but itsnot effecting.

2. u are right, we have to

give two things.

fieldcat-ddictxt = 'L'.

fieldcat-seltext_L = 'myvalue'

3. Then it will show headings.

regards,

amit m.