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 column headers

Former Member
0 Likes
672

i need to change column headers of Vehicle Consumption Analysis tcode MCIZ to suite client requirements. where do i change the column headers?

7 REPLIES 7
Read only

Former Member
0 Likes
639

Hi

For transaction code MCIZ , the abap program is RMCI1100.

so if u want to change column header it need to access key.

Then open that programm and here SELECTION-SCREEN BEGIN OF BLOCK CHAR_KENN WITH FRAME TITLE TEXT-032.

in text symbol you can change your header line as per requirement.

Thanks

Sasmita

Read only

0 Likes
639

i didnt mean changing report header but the column headers of report RMCI1100

Read only

0 Likes
639

Hi willard,

Those headings are maintained in Text elements

1. goto SE38

2. give ur program name and display

3.In menu goto>Text elements>selection texts

here you can change , but i wonder if you can change them as u need access key

you can copy that to a ZPROGRAM and change that

Read only

0 Likes
639

hi

In menu goto>Text elements>selection texts you can only chande selection screen text but not report column headers. i need to change report column header not selection screen texts

Read only

0 Likes
639

hi

In menu goto>Text elements>selection texts you can only chande selection screen text but not report column headers. i need to change report column headers not selection screen texts

Read only

0 Likes
639

Oh Sorry , got it wrong.

As the name os selection screen fields are sams as report headers , thought they are maintained as text elements

Read only

Former Member
0 Likes
639

hi,

Instead of using REUSE_ALV_FIELDCATALOG_MERGE for column heading,use your own subroutine for column headings with the help of field catalog.

check out below coding regarding column headings. if u write a perform like this we can specify our own column headings.

**********FIELDCAT DECLARATION FOR KNA1***********

DATA : W_KCAT TYPE SLIS_FIELDCAT_ALV,

T_KCAT TYPE SLIS_T_FIELDCAT_ALV,

**********FIELDCAT DECLARATION FOR VBAK***********

W_VCAT TYPE SLIS_FIELDCAT_ALV,

T_VCAT TYPE SLIS_T_FIELDCAT_ALV,

**********FIELDCAT DECLARATION FOR VBAP***********

W_PCAT TYPE SLIS_FIELDCAT_ALV,

T_PCAT TYPE SLIS_T_FIELDCAT_ALV.

PERFORM GET_COL_HEADINGS.

FORM GET_COL_HEADINGS.

W_KCAT-COL_POS = 1.

W_KCAT-FIELDNAME = 'KUNNR'.

W_KCAT-SELTEXT_M = 'CUST NO.'.

APPEND W_KCAT TO T_KCAT.

W_KCAT-COL_POS = 2.

W_KCAT-FIELDNAME = 'NAME1'.

W_KCAT-SELTEXT_M = 'CUST NAME.'.

APPEND W_KCAT TO T_KCAT.

W_KCAT-COL_POS = 3.

W_KCAT-FIELDNAME = 'LAND1'.

W_KCAT-SELTEXT_M = 'COUNTRY'.

APPEND W_KCAT TO T_KCAT.

**ASSIGNING FIELDCAT TO VBAK*********

W_VCAT-COL_POS = 1.

W_VCAT-FIELDNAME = 'VBELN'.

W_VCAT-SELTEXT_M = 'ORDER NO'.

APPEND W_VCAT TO T_VCAT.

W_VCAT-COL_POS = 2.

W_VCAT-FIELDNAME = 'ERDAT'.

W_VCAT-SELTEXT_M = 'DATE'.

APPEND W_VCAT TO T_VCAT.

W_VCAT-COL_POS = 3.

W_VCAT-FIELDNAME = 'NETWR'.

W_VCAT-SELTEXT_M = 'VALUE'.

APPEND W_VCAT TO T_VCAT.

**ASSIGNING FIELDCAT TO VABP*********

W_PCAT-COL_POS = 1.

W_PCAT-FIELDNAME = 'POSNR'.

W_PCAT-SELTEXT_M = 'SALESDOC'.

APPEND W_PCAT TO T_PCAT.

W_PCAT-COL_POS = 2.

W_PCAT-FIELDNAME = 'ARKTX'.

W_PCAT-SELTEXT_M = 'SALES ORDER ITEM NO.'.

APPEND W_PCAT TO T_PCAT.

W_PCAT-COL_POS = 3.

W_PCAT-FIELDNAME = 'PSTYV'.

W_PCAT-SELTEXT_M = 'SALESDOC ITEM CATEGORY'.

APPEND W_PCAT TO T_PCAT.

ENDFORM. "GET_VAL

.