cancel
Showing results for 
Search instead for 
Did you mean: 

USING ULINE & VLINE IN SAPSCRIPT

Former Member
0 Kudos

I WANT TO USE ULINE & VLINE IN THE SAPSCRIPT.CAN ANYONE PLEASE EXPLAIN HOW ? IS THERE ANY OTHER WAY? & HOW TO USE DEFINE STATEMENT IN SAPSCRIPT.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

<b>&ULINE&</b>

You can use this symbol to insert a string of underline characters into the output text. You must pass the number of underline characters required with the symbol. If you leave out the number, then just one underline character is printed.

<b>&VLINE&</b>

You can use this symbol to insert a string of vertical line characters into the output text. You must pass the number of vertical line characters required with the symbol. If you leave out the number, then just one vertical line character is printed.

<b>DEFINE: -</b>

The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text.

Syntax:

/: DEFINE &symbol_name& = 'value'

Regards

Sudheer

Answers (5)

Answers (5)

former_member673464
Active Contributor
0 Kudos

hi..

You can use box command to get the horizontal and vertical lines in sap scripts as follows

Draw a horizontal line by setting the HEIGHT in a BOX command to 0. Draw a vertical line by setting WIDTH to 0.

/: BOX FRAME 10 TW WIDTH 0 TW HEIGHT '10' CM

Vertical line 10 CM long

/: BOX FRAME 10 TW WIDTH '10' CM HEIGHT 0 TW

Horizontal line 10 CM long

regards,

veeresh

Former Member
0 Kudos

hi,

DEFINE: Value assignment to text symbols

Text symbols 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 text module, 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’

You can draw a line by setting the Height or Width of a box to 0 and add a frame. E.g. a horizontal line:

/: SIZE HEIGHT '0' MM WIDTH '200' MM

/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100

Former Member
0 Kudos

thank you guys......

Former Member
0 Kudos

Hi Abhijeet,

You can use the ULINE stmt. in SAP Script to draw a horizontal line. But what is the need for going to VLINE and ULINE seperately when you can define the borders in Character Formats.

Hope this resolves your query.

<b>Reward all the helpful answers.</b>

Regards

Former Member
0 Kudos

Hi Abhijeet,

A <b>text symbol</b> is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command <b>DEFINE</b> is used, requiring /: in the tag column, as in the following examples.

/: DEFINE &COMP_NAME& = ‘University of Warwick’

/: DEFINE &WS_RATE& = &TAX_SUMM_C&

Hope this resolves your query.

<b>Reward all the helpful answers.</b>

Regards