cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to show net weight in parking list smartform

Former Member
0 Kudos

I am unable to show the net and gross weight in a form. Any suggestions? Partial code below:

CLEAR gv_net_wt.

SELECT SUM( ntgew ) "loading weight of handling unit

FROM vekp

INTO gv_net_wt

WHERE exidv2 EQ gwa_hu_identi AND vpobjkey EQ gv_delivery.

IF sy-subrc EQ 0.

gv_head_netwt = gv_head_netwt + gv_net_wt.

ENDIF.

Accepted Solutions (1)

Accepted Solutions (1)

nabheetscn
Active Contributor
0 Kudos

In debugging are you getting any values in the variable. Please elaborate.

Thanks

Nabheet

Former Member
0 Kudos

In debugger, no value is there.

Former Member
0 Kudos

well, then you either got a problem in your select, or the data isnt even available in database. Anyway your smartform seems fine, at least it is NOT the problem for this.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If it's fail to get sum with aggregate function, select data into internal table and loop though it for sum of net weight.

Thanks,