Application Development 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: 

regarding output statements

Former Member
0 Kudos

Hello experts,

i want to know the use of the following statements.

can anyone give a example and explain these types of output statements.

Write:/P sy-uline.

Write:/P sy-uline(L).

Write:/P(L) sy-uline.

Uline.

Uline /P.

Uline /P(L).

thanking u all.

regards,

sanjay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

chk the DEMO program

<b>DEMO_WRITE_STATEMENT</b>

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

p stands for position.

l stands for length.

Rest is pretty self explanatory.

Replace P and L with some numbers and see the output for yourself.

uline is equivalent to write:/ sy-uline.

Regards,

Ravi

Former Member
0 Kudos

chk the DEMO program

<b>DEMO_WRITE_STATEMENT</b>

Former Member
0 Kudos

Hi,

Here P and L should be the variables of type I

Write:/P sy-uline.  "--> From P it will print the Uline
Write:/P sy-uline(L). " --> from P with L length it will pritn the ULINE
Write:/P(L) sy-uline. " --> from P upto L it will pritn the ULINE
Uline.  " --> it will print the whole line
Uline /P. " --> It will print the P length of ULINE
Uline /P(L). " --> from P upto L it will pritn the ULINE

Regards

Sudheer

Former Member
0 Kudos

<b>Write:/P sy-uline</b> Prints line from P position

<b>Write:/P sy-uline(L)</b> Prints line from P position till L length

<b>Write:/P(L) sy-uline</b> Prints line from P position upto L length

<b>Uline</b> Prints a whole line

<b>Uline /P</b> Prints line of size P

<b>Uline /P(L)</b> Prints line from P position upto L length

Former Member
0 Kudos

Hi,

First you know the syntax of WRITE statement.

<u><b>WRITE:</b></u>

Displays lists.

<u><b>Syntax:</b></u>

WRITE [AT [/][<pos>][(<len>)]] <f> [AS CHECKBOX|SYMBOL|ICON|LINE]

[QUICKINFO <g>].

[<format>]

The contents of the field <f> are formatted according to their data type and displayed in the current list. . The additions before the field allow you to specify a line break, the starting position, and the length of the field. The additions after the field allow you to display checkboxes, symbols, icons, and lines. The <format> addition can contain various other formatting options. The QUICKINFO addition allows you to assign a tool tip <g> to the field.

REgards,

Bhaskar