2006 Jul 05 6:11 AM
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
2006 Jul 05 6:14 AM
Change SELTEXT_M and SELTEXT_L as well. That should show the difference.
Regards,
Ravi
Note : Please mark all the helpful answers
2006 Jul 05 6:17 AM
2006 Jul 05 6:31 AM
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
2006 Jul 05 6:40 AM
> 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
2006 Jul 05 6:55 AM
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
2006 Jul 05 6:46 AM
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
2006 Jul 05 7:28 AM
hi,
try with this <b>fieldcat-reptext_ddic</b> = text-001.
fieldcat is of type slis_t_fieldcat_alv.
2006 Jul 05 7:34 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |