Skip to Content
0
Former Member
Apr 25, 2007 at 12:24 PM

SBTOTAL SCRIPTS

17 Views

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.