cancel
Showing results for 
Search instead for 
Did you mean: 

Sub

Former Member
0 Kudos

Hi vijetasap,

for example - if we have two vendor 1000 and 2000

Vendor - qty

1000 - 5

3

7

9

-


24

-


2000 - 9

3

4

1

-


17

-


Now plz reply in details plz

Regards,

Jyotsna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jyotsna,

Create the on the event begin sort on vendor display the vendor and at the event end display the subtotals.

Regards,

Sravanthi

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

For your requirement use two events event begin sort ,Event End on Sort which are available in Table node.

Create those events on Vendor number.

In Begin on sort put one Programlines node for clearing subtotal value of quantity.

in main area put one program lines node to calculate the subtotal of quantity.

in end of sort display the subtotal value.

Former Member
0 Kudos

Hi,

declare a variable of for sum on global declarations,

in the loop under sort tab,mention the field of sum,create total on main window and go to program lines and write the code for total like total = total + variable.

Regards,

jaya

Former Member
0 Kudos

Hi

reffer into this wiki.It explains SUBTOTAL in details with example and screen shots.

https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS

Gr., Frank