Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SMALL DOUB'T

Former Member
0 Kudos

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

10 REPLIES 10

govind_seenivasan
Participant
0 Kudos

Try using

write W_TOTAL1 to W_tot.

0 Kudos

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.

rahulkavuri
Active Contributor
0 Kudos

deleted

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Sanju,

Write : W_TOTAL1 to W_tot with currency key. ....will solve your problme.

Cheers,

Nilesh

0 Kudos

hi Sanju,

Declare u'r report this way

report Ztest

<b>line-size 255</b>.

Regards,

Santosh

Former Member
0 Kudos

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

former_member184495
Active Contributor
0 Kudos

hi,

put it right-justified.

*----

WRITE W_TOT right-justified.

*----

should work,

cheers,

Aditya.

hymavathi_oruganti
Active Contributor
0 Kudos

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