10-11-2007 9:11 AM
Hi,
<u><i>I have a code snipplet as follows</i></u>:
write:
SY-VLINE, (9) I_OUTPUT-MENGE1 decimals 0 right-justified,
SY-VLINE, I_OUTPUT-MEINS1,
SY-VLINE, (9) I_OUTPUT-MENGE2 decimals 0 right-justified,
SY-VLINE, I_OUTPUT-MEINS2,
SY-VLINE, (8) G_Difference decimals 0 right-justified,
The digits in brackets signifies output length or column position?
10-11-2007 9:26 AM
Debarshi just in abap editor write the statement write and press F1 It will show you the documentation.
By the way the thing I am pasting here that is from SAP help example.
DATA: WORD(16), VALUE '0123456789ABCDEF',
COL TYPE I VALUE 5,
LEN TYPE I VALUE 10.
WRITE AT / WORD. "new line
WRITE AT 5 WORD. "column 5
WRITE AT (10) WORD. "output length 10
WRITE AT /5(10) WORD. "new line, column 5, length 10
WRITE AT COL WORD. "column = contents of COL
WRITE AT (LEN) WORD. "output length = contents of LEN
WRITE AT /COL(LEN) WORD. "new line, column = contents of COL
"output length = contents of LEN
Hope you are clear now.
regards
shiba dutta
10-11-2007 9:12 AM
10-11-2007 9:12 AM
10-11-2007 9:13 AM
10-11-2007 9:14 AM
10-11-2007 9:15 AM
All those who got it wrong I think you need to look at the ABAP manual.
10-11-2007 9:18 AM
Lemme know what does the following statement does:
write: 10(5) 'Welcome'.
Is it 10th position and a width (or output length) of 5 places???
OR
Is it the other way round??/
10-11-2007 9:23 AM
Hi,
You are correct.
Check this code.
DATA : FLAG VALUE '%',
FLAG1,
RESULT(200) TYPE C VALUE 'ABCDEFGH'.
WRITE : 10(5) RESULT.
Thanks.
10-11-2007 9:16 AM
Hi,
its the coloumn position.
try this program. u will understand
DATA: text TYPE string VALUE '0123456789ABCDEF'.
Write:
SY-VLINE, (9) text right-justified.
Regards,
Niyaz
10-11-2007 9:16 AM
a(b)
a---column position
b---output length
so in ur case it signifies output length
10-11-2007 9:17 AM
hI,
Sorry it denotes the Colomn Length.
check this,
DATA : FLAG VALUE '%',
FLAG1,
RESULT(200) TYPE C VALUE 'ABCDEFG'.
WRITE : RESULT(3).
Thanks.
10-11-2007 9:26 AM
Debarshi just in abap editor write the statement write and press F1 It will show you the documentation.
By the way the thing I am pasting here that is from SAP help example.
DATA: WORD(16), VALUE '0123456789ABCDEF',
COL TYPE I VALUE 5,
LEN TYPE I VALUE 10.
WRITE AT / WORD. "new line
WRITE AT 5 WORD. "column 5
WRITE AT (10) WORD. "output length 10
WRITE AT /5(10) WORD. "new line, column 5, length 10
WRITE AT COL WORD. "column = contents of COL
WRITE AT (LEN) WORD. "output length = contents of LEN
WRITE AT /COL(LEN) WORD. "new line, column = contents of COL
"output length = contents of LEN
Hope you are clear now.
regards
shiba dutta