05-11-2006 5:09 PM
REPORT ZTEST_FINAL .
DATA:W_TOTAL1 TYPE RF140-WRSHB.
DATA: w_tot(255) .
W_TOTAL1 = '110.00' .
W_TOT = W_TOTAL1.
WRITE W_TOT .
"GUY'S LOOK AT THIS SIMPLE CODE,WHEN U RUN THIS REPORT
VALUE OF W_TOT IS empty,note i cannot change w_tot to
any other type ,except type c
05-11-2006 5:16 PM
05-11-2006 5:18 PM
Sanju,
Your problem is nothing but the length of your field. It is actually getting printed but since the number will be right-justified, you will find it if you scroll to the right extreme.
Use WRITE with the option LEFT-JUSTIFIED and you will see it.
05-11-2006 5:16 PM
05-11-2006 5:19 PM
Sanju, it is there, you just can't see it. Add the LINE-SIZE extension to the REPORT statement, run it, and scroll right. You will see it.
report zrich_0001
<b>line-size 255.</b>
data: w_total1 type rf140-wrshb.
data: w_tot(255) .
w_total1 = '110.00' .
w_tot = w_total1.
write w_tot .
Regards,
Rich Heilman
05-11-2006 5:21 PM
Hii
TRY THIS
REPORT Z_TEST <b>NO STANDARD PAGE HEADING
LINE-COUNT 65(3)
LINE-SIZE 220</b>
LINE-SIZE IS UR PROBLEM.
THANKS& REGARDS
Naresh
05-11-2006 5:32 PM
Sanju,
Write : W_TOTAL1 to W_tot with currency key. ....will solve your problme.
Cheers,
Nilesh
05-11-2006 5:51 PM
hi Sanju,
Declare u'r report this way
report Ztest
<b>line-size 255</b>.
Regards,
Santosh
05-11-2006 7:55 PM
Hi Sanju,
The number is there but right justified. Your problem will get solved by putting line size option with the report name. But my Q'n is that why do you want to declare w_tot field with length 255. U can use smaller length for declaration since your requirement is that it should be of only type c.
Cheers,
Vikram
05-12-2006 7:51 AM
hi,
put it right-justified.
*----
WRITE W_TOT right-justified.
*----
should work,
cheers,
Aditya.
05-12-2006 8:25 AM
DATA:W_TOTAL1 TYPE RF140-WRSHB.
DATA: w_tot like w_total1.
W_TOTAL1 = '110.00' .
W_TOT = W_TOTAL1.
WRITE W_TOT .
change like above and run