Application Development and Automation 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: 
Read only

SMALL DOUB'T

Former Member
0 Likes
1,382

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

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
Read only

govind_seenivasan
Participant
0 Likes
1,343

Try using

write W_TOTAL1 to W_tot.

Read only

0 Likes
1,343

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.

Read only

rahulkavuri
Active Contributor
0 Likes
1,343

deleted

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,343

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

Read only

Former Member
0 Likes
1,343

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

Read only

Former Member
0 Likes
1,343

Sanju,

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

Cheers,

Nilesh

Read only

0 Likes
1,343

hi Sanju,

Declare u'r report this way

report Ztest

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

Regards,

Santosh

Read only

Former Member
0 Likes
1,343

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

Read only

former_member184495
Active Contributor
0 Likes
1,343

hi,

put it right-justified.

*----

WRITE W_TOT right-justified.

*----

should work,

cheers,

Aditya.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,343

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