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

Total for net value

Former Member
0 Likes
810

Hi,

How can i make the total of net value auart.

i hve tried in this way...Can someone suggest me the suitable way.

sort itab by auart.

loop at itab.

at end of auart.

sum.

write : /5 itab-vbeln, 15 itab-posnr,25 itab-auart ,

30 itab-matnr,35 itab-zmeng,40 itab-zieme

, 45 itab-netwr,50 itab-waerk.

endat.

endloop.

Hi,

How can i make the total of net value auart.

i hve tried in this way...Can someone suggest me the suitable way.

sort itab by auart.

loop at itab.

at end of auart.

sum.

write : /5 itab-vbeln, 15 itab-posnr,25 itab-auart ,

30 itab-matnr,35 itab-zmeng,40 itab-zieme

, 45 itab-netwr,50 itab-waerk.

endat.

endloop.

6 REPLIES 6
Read only

Former Member
0 Likes
783

Could you please explain the current issue?

Regards,

Lijo

Read only

0 Likes
783

Hi,

At the output,on the bottom of netwr..i should get this ' total of net value is ______'..how can i do this ?

pls guide me.

STALIN

Read only

Former Member
0 Likes
783

Hi Stalin,

You are correct.. then what is the Issue..?

Thanks,

Murali

Read only

Former Member
0 Likes
783

Your Internal table should in sorted way of fields arranged .

data : Begin of Itab occurs 0,

vbeln,

auart ,

posnr,

matnr,

zmeng,

zieme

netwr,

waerk

end of itab .

Reward points if it is usefull..

Girisih

Read only

0 Likes
783

U can write like this

WRITE: / 'TOTAL NET VALUE IS....', ITAB-FIELDNAME.

REWARD IF USEFUL

Read only

Former Member
0 Likes
783

sort itab by auart.

loop at itab.

at end of auart.

sum.

write : /5 'Total', 45 itab-netwr.

endat.

endloop.