‎2008 Jun 06 5:33 AM
hi experts,
is it possible ti increase font size in our reports,m working on one report in which user wants that heading of my report should be very bold,likewise the few more headings..is it possible to do in reports.if yes then plz tell me how cud i b able to do that.
regards,
raman
‎2008 Jun 06 5:35 AM
Hi,
If you change the LINE-SIZE and LINE-COUNT parameters in the REPORT
statement of the report, you can control the number of rows and columns
that appear on the report. If you choose a larger amount of columns (65
X 255 for example), SAP will automatically choose a smaller font. Aside
from that, your best bet is probably to create a SAPscript form and
print your report using that. That way you will have a lot more control
over the fonts and overall formatting of the report.
To change the font size on SAPgui.
( SAPgui version 6.10 only):
Start SAPgui 6.10.
In the top SAP menu bar, click on the white question mark (?) at the far right.
Select Visual Settings.
When the Visual Settings dialog box appears, click on the Font Size tab and choose your preference on the panel that appears.
When you have made your selection, click Apply.
Result: You see the changes in your open SAP window.
If you want to keep the changes, click on OK.
PC:
In the Task Bar at the very far right in the System Tray, click on the SAP GUI Setting icon.
To change the font size, in the Font Size panel, select the font size (by percentage) that you want and click OK
Restart SAP.
Result: The change takes effect when you restart.
http://web.mit.edu/sapr3/docs/webdocs/getstarted/gsCOLORS.html
Regards,
Jagadish
‎2008 Jun 06 5:55 AM
Hi,
Please refer the code below :
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.
Thanks,
Sriram Ponna.