Skip to Content
author's profile photo Former Member
Former Member

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

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



function = 'APPEND'

header = it_header

window = 'MAIN'


lines = it_serial


function = 1

type = 2

unopened = 3

unstarted = 4

window = 5

bad_pageformat_for_print = 6

spool_error = 7

codepage = 8


IF sy-subrc <> 0.

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

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


Waiting for u r replies...


Chaithanya K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2008 at 07:08 PM

    In se75. go in change mode and click create button in application tool bar.

    Now text object is something to which a text is attached, like, a material or a Purchase order etc.

    Text format is like rich text format or plain text depending upon which an editor is invoked

    Specify Editor application. SAP provides standard Editor application choose from one of them(TA or TN)

    Line width

    This attribute determines the line width to be used for this text in the text editor. A SAPscript text line may consist of up to 132 characters.

    Save mode specifies how a text is saved in

    dialogue task

    When calling the corresponding save function, the system immediately writes the text module to the text database.

    in update task

    All changes to the text modules of a transaction are stored intermediately in a buffer. Only when the application object is updated does the system write the texts to the log file and, in the update task, stores them in the text file.

    For not in text file

    You can use SAPscript to edit texts that are not stored in the text database. In this case, SAPscript only returns the changed text table to the application program, which is itself responsible for storing the text

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.