on 04-25-2007 1:24 PM
HI ALL
PLEASE GO THRU D CODE ONCE.... AM TOTALLING THE ELEMENT BSEG-WRBTR BUT AM NOT getting it
code in script
perform zaddr1 in program z141
using &bseg-wrbtr&
changing &sum&
endperform
&sum&
code in abap editor
report z141
tables:bseg
data :sum like bseg-wbrtr
data: wrbtr like bseg-wbrtr
form addr1 tables in_par structure itcsy out_par structure itcsy.
statics sum1 type bseg-wrbtr
read table in_par with key 'bseg-wbrtr'.
check sy-subrc = 0.
sum = in_par-value
sum = sum + sum1.
read table out_par with key value = 'sum'
out_par-value = sum.
modify out_par transporting value where value = ' sum'.
endform.
check whether your first read statement in routine is returning sy-subrc = 0,
if not pass the parameter in proper case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Check this link:
http://www.sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm
If useful reward.
Vasanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.