Application Development and Automation 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: 
Read only

TEXT ELEMENTS

Former Member
0 Likes
1,117

Hi,

Can anyone explain me abt text elements and how it will be useful in scripts.

when i am creating scripts, i am using

/: comment line

/* comand line

  • paragraph

( raw line

/e text element

i want to know the commands mentioned in the above

thanks

s.gangi reddy

3 REPLIES 3
Read only

Former Member
0 Likes
582

/

  • will be for commenting line

/: command line from pass the data, define boxes, include ..etc. This is to use keywords.

example:

/: &MARA-MATNR&

/E - text elements which will pass from print program to script

use below link for help.

http://sapscriptcode.blogspot.com/

Thanks,

Read only

Former Member
0 Likes
582

Hi

Text editor text line

The text area in the SAPscript text editor begins at the ruler. You can

enter your text in the subsequent lines which are ready for input.

You can structure your text using the function keys Paragraph, Line, and

Page. The appropriate paragraph tag is then entered automatically beside

the line in the two-character tag column.

When the "Format" function or any other command is selected, continuous

text lines (lines with an empty tag column) are adjusted to the editor

screen width and words which may have been split at the end of a line

are joined together again.

Continuous text lines are made available automatically at the end of the

text. You can use the "Insert" function to enter continuous text within

the text itself. When the "End insertion" function is selected, the

lines are aligned automatically and normal mode returned to.

In order to be able to enter text continuously (allow your cursor to

continue to the next line when you reach the end of a line), you need to

set "Auto TAB" in your SAPGUI configuration parameters and have a

visible input width of at least 72 columns (you may need to choose a

smaller font for your SAPGUI).

In the text area, the following special characters have a control

function. They are therefore not output but are interpreted for output

formatting:

Character formats

<NN>...</>

Character strings which are preceded by a character format key <NN>,

are formatted when output as defined in the character format.

The format keys possible and their meaning are defined in styles or

layout sets. If a text module is assigned a style or layout set, you

can use the character formats listed there to structure your text.

Format keys defined by the user can consist of one or two

characters. The letters A to Z and the numbers 0 to 9 are allowed.

The character format must begin with a letter.

The end of the character format is indicated by </>.

Tab characters

,,

Two consecutive normal commas create a tab in the output format. The

tab position is determined by the respective paragraph tag in the

tag column. If a tab position is not defined in the paragraph, the

tab space from the layout set header information is used.

Symbols

&N...N&

Symbol names are enclosed by &. They must not contain any blanks.

The symbols are replaced by their current values in the output

format.

SAPscript knows 4 types of symbols: System symbols, standard

symbols, program symbols, and text symbols. The main difference

between them is their value source. The values of system symbols are

provided by SAPscript. Standard symbols are defined in table TTDTG

with their values. In the case of program symbols, the data involved

is made available by the respective printer program which is

running. Text symbols derive their values via control commands in

the text itself or dynamically via the Include function in the text

editor.

Masking special characters

<(>...<)>

Character strings which are preceded by <(> are not interpreted as

special characters and are therefore also output normally like all

other characters.

The end of the masked character string is indicated by <)>.

Hypertext links

<NN:....>...</>

Hypertext links, like character strings, are preceded by a character

format key NN. The hypertext key of a hypertext module is specified

after the subsequent colon. When hypertext is displayed on a screen

output device, this key can be used to display the next hypertext

chapter when selected by an end user.