Application Development 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: 

ALV Display - Subscript/Caption in a field title row

Former Member
0 Kudos

Hello,

I would just like to ask if there's a way for me to create a sort of subscript or caption font within a field title row?

It should look like this:

<b>TOTAL NUMBER OF EMPLOYEES W/O REQUIRED SKILLS

*Some profiles are missing for positions*</b>

The "<b>*Some profiles are missing for positions*</b>" should be in subscript or a caption and should be contained in only 1 row.

Is there a way to do this? I appreciate any help! Thanks.

Regards,

Kristine

4 REPLIES 4

Former Member
0 Kudos

Hi,

Here is sample code.

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

wa type slis_listheader.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

  • i_callback_program = ''

i_callback_top_of_page = 'TOP_OF_PAGE2'

  • it_fieldcat =

  • i_save = ''

  • i_callback_user_command = ''

tables

  • t_outtab = .

form top_of_page2.

wa-typ = 'S'.

wa-info = 'COMPANY'.

append wa to header.

wa-typ = 'S'.

wa-info = 'code'.

append wa to header.

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

it_list_commentary = header.

endform.

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

I hope it will work.

CHEERS

Message was edited by: Deepak333 k

Message was edited by: Deepak333 k

Former Member
0 Kudos

Hi Deepak333 k,

I think that the code you have provided is for the ALV Header since you're using the ALV_COMMENTARY function module. The details I need to display is part of the report item, thus it's in the ALV grid display.

My report should look like:

Training Statistics Report

Total number of Skills Held <XX>

Total Number of Employees w/o Req. Skills <XX>

    • Some profiles are missing***

Total Number of Emplyoees w/ Exp. Skills <xx>

The *Some profiles are missing** is part of the row for Total Number of Employees w/o Req. Skills field. Each field has a drill down report, so in this case it has 3 drill down reports.

The caption has a condition as to when it appears. This is the part that I'm asking if possible.

Thanks still!

Regards,

Kristine

0 Kudos

You cant have multiple lines in an ALV field. Perhaps an exception showing the status like a red/green/yellow/ light can fulfill your needs.

Former Member
0 Kudos

Thanks Rainer. So it's not possible in ALV. Thanks with that. Here's points for you.

Regards,

Kristine