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: 

Data in the report output to be displayed in BOLD and bigger fonts

Former Member
0 Kudos

Hi,

I have a requirement where in a report output, I have to display some data in BOLD for example material ABCD should be displayed as ABCD.

In some cases, the data should be displayed in bigger fonts.

Is there a way this can be done?

Regards,

Rajesh

6 REPLIES 6

Former Member
0 Kudos

Hi,

Please check below thread

Regards

Jana

JozsefSzikszai
Active Contributor
0 Kudos

hi Rajesh,

unfortunately this is not possible. You can use INTESIFIED, but for bold and/or biger/smaller letters no way...

hope this helps

ec

former_member182485
Active Contributor
0 Kudos

If you are using Classical report you can play with the colors option so your data will look bold but there is no option to increase or decrease the size and change the font.

Regards

Bikas

Former Member
0 Kudos

If it a ALV report then u can display cols in BOLD. Pl. check this prog. for details.

&----


*& Report Z_DEMO_ALV_JG *

&----


*&----


REPORT z_demo_alv_jg .

  • Include for all style values

INCLUDE <cl_alv_control>.

  • Internal table for final output data

DATA: i_flight TYPE STANDARD TABLE OF sflight.

  • Internal table for field catalog info

DATA: i_fields TYPE lvc_t_fcat.

  • Field symbol for field catalog

FIELD-SYMBOLS: <wa_fields> TYPE lvc_s_fcat.

  • Select data

SELECT * FROM sflight

INTO TABLE i_flight

UP TO 100 ROWS.

IF sy-subrc = 0.

  • Get field catalog

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'SFLIGHT'

CHANGING

ct_fieldcat = i_fields

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3

.

IF sy-subrc = 0.

  • Changing the style of field catalog

LOOP AT i_fields ASSIGNING <wa_fields>.

IF sy-tabix > 4.

<wa_fields>-style = ALV_STYLE_FONT_ITALIC.

ELSE.

<wa_fields>-style = ALV_STYLE_FONT_BOLD.

ENDIF.

ENDLOOP.

ENDIF.

  • Calling the FM to display ALV report

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

EXPORTING

i_structure_name = 'SFLIGHT'

i_grid_title = 'Style demo'(001)

it_fieldcat_lvc = i_fields

TABLES

t_outtab = i_flight

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

Or u can create dynamic document to achieve the same:

Check the program DD_ADD_TEXT or package SDYNAMICDOCUMENTS for details.

Edited by: Joyjit Ghosh on Sep 16, 2008 1:39 PM

GauthamV
Active Contributor
0 Kudos

hi,

use this.

[https://forums.sdn.sap.com/click.jspa?searchID=16336508&messageID=5658683]

Former Member
0 Kudos

Hi,

Using of PRINT-CONTROL you can create font as bold. But in Enterprise 4.7 version its not support. For more information read the sap notes 66478.

Check the following link:

http://sap-img.com/abap/use-of-print-control-in-sapscript.htm

Regards,

Bhaskar