Skip to Content
0
Former Member
Nov 28, 2011 at 03:38 AM

Sum up a field in SAPScript

161 Views

Hi,

I need to sum up a field - Gross Weight VBRP-BRGEW in SAPscript.

SELECT SINGLE * FROM vbrp WHERE vbeln = st_vbeln

AND posnr = konv-kposn.

MOVE VBRP-BRGEW TO V_TOTBRGEW.

V_GTOTBRGEW = V_GTOTBRGEW + V_TOTBRGEW.

MOVE 'V_GTOTBRGEW' TO output-name.

MOVE v_gtotbrgew TO output-value.

CONDENSE output-value.

APPEND output.

I have tried the above mention code for it in the driver program but not getting the output correctly.

Please help.

Thanks

Nishant Bhargava