‎2008 Jul 10 4:17 AM
hi,
I am making a report in which i have to calculate the percentage value . i want to do the calculation in the write statement . is it possible?
plzz do provide me the examples for it as help will be definately rewarded.
‎2008 Jul 10 4:25 AM
Hi I hardly understodd what you meant.. in write statement... write is a command that just prints data on the screen..
all you can do is..
a = 3.
b = 5.
c = a + b.
write:/ c .
Output.
8.I am guessing you want to calculate c in the write statement rather than above write statement.. its not possible.
‎2008 Jul 10 4:25 AM
Hi I hardly understodd what you meant.. in write statement... write is a command that just prints data on the screen..
all you can do is..
a = 3.
b = 5.
c = a + b.
write:/ c .
Output.
8.I am guessing you want to calculate c in the write statement rather than above write statement.. its not possible.
‎2008 Jul 10 4:28 AM
Hi Ricx,
WRITE statement is only to output the data.
Do the calculation and store in the variable and display same in the output.
You can do this way...
WRITE: lw_vbap-VBELN,
lw_vbap-POSNR.
lw_sum = lw-vbap-ZMENG + lw_vbap-FMENG.
WRITE: lw_sum,
lw_vbap-ZIEME,
lw_vbap-MEINS..
Best regards,
raam
‎2008 Jul 10 4:34 AM
Hi,
write statement is only for print the data in output.
if you want to do som calculations have to do before write statement and finally write the final variable .
regards.
sriram.
‎2008 Jul 10 5:00 AM
hi,
ok thanks to all of you . i am rewarding points to all of you.