Skip to Content
avatar image
Former Member

SAPscript Basics

Hi All

plz tell me what is the basic difference and relation between Text module, text symbol and text element in SAPscript

THanks in Advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Apr 27, 2006 at 10:13 AM

    hi Rashmi,

    <b> DEFINE: Value assignment to text symbols</b>

    <b>Text symbols</b> receive their value through an explicit assignment. This assignment can be made interactively in the editor via the menu options Include &#61614;&#61472;&#61614;&#61472;Symbols &#61614;&#61472;&#61614;&#61472;Text. This lists all the text symbols of a text module, as well as those of the allocated layout set.

    The contents defined in this way are lost if the transaction is exited. To continue printing the <b>text module</b>, you would have to enter the symbol values again.The DEFINE command allows you to anchor this value assignment firmly in the text, to also have it available when you next call up the text. Furthermore, you can allocate another value to a text symbol in

    the course of the text.

    Syntax:

    /: DEFINE &symbolname& = ‘value’

    Example:

    /: DEFINE &re& = ‘Your correspondence of 3/17/94’

    Example:

    /: DEFINE &symbol1& = ‘xxxxxxx’

    /: DEFINE &symbol2& = ‘yyy&symbol1&’

    /: DEFINE &symbol1& = ‘zzzzzzz’

    Result: &symbol2& &#61614;&#61472;yyyzzzzzzz

    The assigned value may have a maximum of 60 characters. It can also contain further symbols. When a symbol is defined using the control command DEFINE, symbols which occur in the value are not immediately replaced by their value. They are only replaced when the target symbol is output. If the operator := is used in the DEFINE statement, all symbols which occur in the value which is to be assigned are immediately replaced by their current values. The resulting character string is only then assigned to the target symbol when all occurring symbols have been replaced. The length of the value is limited to 80 characters. The target symbol must be a text symbol, as at present.

    Syntax:

    /: DEFINE &symbolname& := ‘value’

    <b>Windows</b> – At least one logical window must be defined for every page. (Otherwise it is not possible to format the texts) Window definition involves a list of window names and corresponding window types.

    A MAIN window is displayed automatically. A Window mainly contains the SAPscript text and the variables to be printed. The text can be structured into blocks called <b>text elements</b>. There is one special window, MAIN , which contains the output of the line items of a document.

    Regards,

    Santosh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 10:14 AM

    Hi,

    Text elements can be defined in layout set maintenance for each window. The text elements are accessed by name by a print program, formatted, and output in the respective window. The /E in the tag column is used to identify the text as a text element

    You define the value of a text symbol yourself in the text module.

    There are two ways of doing this:

    Use the menu entries in the text editor

    Use the control command DEFINE

    for e.g

    /: DEFINE &mysymbol& = ‘XXXX’

    / &mysymbol&

    /: DEFINE &mysymbol& = ‘YYYY’

    / &mysymbol&

    would print XXXX

    YYYY

    Regards,

    Gayathri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 10:16 AM

    Hi Rashmi,

    Goto SE71 --> Enter a form name and select any window and goto into the editor --> Then from Menu INSERT check out all the options available. This will answer your questions.

    If you go and check this options once you will never forget what these symbols means.

    Cheers

    VJ

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 10:21 AM

    HI

    GOOD

    Text Modules

    Use

    You use the text type Text M odule of the text node to refer to an existing text module in the system. This allows you to easily use texts from one text module in several forms. In addition, it is not necessary to load the entire form description to maintain these texts.

    You can use text modules in two ways:

    Refer to the text module. The text then appears read-only in the PC editor and is included when you print the form.

    Copy the text module. The system then copies the text of the module and automatically converts the text node into an editable text element.

    Text modules can be used across clients and are connected to the transport and translation systems.

    If you refer to a text module, you can use the SFSY-SUBRC system field to check at runtime, whether the text module was found in the system

    TEXT ELEMENT->

    Text elements are simply elements of text referenced within the program. Most programs will contain these and will need to be converted into German. There are a number of issues with text conversion, one of which would be that direct translation does not always produce the correct outcome (i.e. a direct translation of 'GR' would probably not represent Goods receipt in German). Also there is the issue of who would be responsible for performing the translations. Due to the issue raised above regarding direct translation, it is felt that an understanding of the extension would be needed, as well as being able to speak both

    TEXT SYMBOL-.

    Text Symbols

    You define text symbols locally in your document.

    You use text symbols to define recurring terms or text fragments in your document. In the document, you then use the defined symbol to insert the terms or text fragments at the desired places.

    THANKS

    MRUTYUN

    Add comment
    10|10000 characters needed characters exceeded