04-10-2006 9:48 AM
I want to format my output as following in the write statement.
i am getting the output as
34.00
45.00
4.00
7.00
But i want the output to be
34.00
45.00
4.00
7.00
I tried right Justified. But i am not getting the exact alignment. can anyone help me.
04-10-2006 9:52 AM
04-10-2006 9:52 AM
hi Aruthra,
u'r required output and the output u r getting seem be the same here ... but to wat i have understood is u'r output should have to be right justified in that case declare the fields where u r are collecting the data as type c and then use right-justified statement...
i.e, Data: v_matnr(20) type c.
write: v_matnr <b>right-justified</b>.
Regards,
Santosh
04-10-2006 9:52 AM
04-10-2006 9:53 AM
Hi
Check out your question again i think there is some minor problem in it.Anyway if you want to display in a appropriate format than try to give the spaces before or after the variable name and than print it.
Thanks
Mrutyunjaya Tripathy
04-10-2006 10:01 AM
Hi Aruthra,
I suppose your question is how to right-justify / left justify the output.
You can make use of formatting option of write statement.
See this code.
data value type i value 10.
write: value right-justified.
For more details, just refer the SAP Help.
Regards,
SP.