cancel
Showing results for 
Search instead for 
Did you mean: 

SBTOTAL SCRIPTS

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

check whether your first read statement in routine is returning sy-subrc = 0,

if not pass the parameter in proper case

Former Member
0 Kudos