05-01-2007 3:10 PM
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
05-01-2007 3:16 PM
05-01-2007 3:14 PM
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
05-01-2007 3:16 PM
05-01-2007 3:17 PM
Hi,
Please check this links for more information and sample codes on positioning WRITE output on the list .
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e3035c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba15335c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba23035c111d1829f0000e829fbfe/content.htm
Regards,
Ferry Lianto
05-01-2007 3:19 PM
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
05-01-2007 3:26 PM
<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
05-01-2007 3:48 PM
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