Skip to Content
0
Former Member
Apr 01, 2008 at 06:15 PM

WRITE_FORM_LINES. Need to change the style when printing in the SAP Script

100 Views

Hi Experts,

I am using the WRITE_FORM_LINES function module to write a list of numbers.

But I need to change the font of the numbers when printing it.

I have changed it_header-tdstyle = 'S_DOCUS1'...SAP standard one but I need to create my own style.

I have created using SE72 and has given my own defined Character and Paragraph formats.

when I pass through the function module there is no change in it.

I think I need to create a text object is .. Can any one explain me hw to create a text object

http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db827494511d182b70000e829fbfe/frameset.htm

CALL FUNCTION 'WRITE_FORM_LINES'

EXPORTING

function = 'APPEND'

header = it_header

window = 'MAIN'

TABLES

lines = it_serial

EXCEPTIONS

function = 1

type = 2

unopened = 3

unstarted = 4

window = 5

bad_pageformat_for_print = 6

spool_error = 7

codepage = 8

OTHERS = 9.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Waiting for u r replies...

Thanks,

Chaithanya K