Skip to Content
avatar image
Former Member

Issue with ALV output

Hi all,

I am developing an ALV report. I have declared an internal table woth a field kunnr like kna1-kunnr. Since the fieldcat catalog takes description from standard table in ALV list the heading is displayed as Customer. I want to change the heading. I tried using this code.

********************************************************

<b>

loop at f_fieldcat into wa_fieldcat where fieldname = 'KUNNR'.

wa_fieldcat-fieldname = 'Ship-to-Party'.

modify f_fieldcat from wa_fieldcat.

endloop.

</b>

********************************************************

What is the correct way to do that ?

Thanks and Regards,

Varun.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 05, 2006 at 02:11 PM

    Hi varun,

    simple mistake.., not fieldname, it is seltext_m or l or s

    loop at f_fieldcat into wa_fieldcat where 
                           fieldname = 'KUNNR'.
    wa_fieldcat-<b>seletext_m</b> = 'Ship-to-Party'.
    modify f_fieldcat from wa_fieldcat.
    endloop.

    regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 05, 2006 at 02:12 PM

    You should not change the field name. You should change the SELTEXT_L SELTEXT_M, SELTEXT_S fields for the same.

    Regards

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 05, 2006 at 02:15 PM

    hi varun,

    plz go thru this,

    loop at f_fieldcat into wa_fieldcat where fieldname = 'KUNNR'.

    wa_fieldcat-seltext_l = 'Ship-to-Party'.

    wa_fieldcat-ddictxt = 'L'.

    modify f_fieldcat from wa_fieldcat.

    endloop.

    Regards,

    Kiran

    Add comment
    10|10000 characters needed characters exceeded