Skip to Content
avatar image
Former Member

Sub

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 13, 2009 at 09:33 AM

    Hi Jyotsna,

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

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 10, 2009 at 12:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 10, 2009 at 01:43 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2009 at 11:54 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded