Skip to Content
avatar image
Former Member

help me plsssss

hi guys,

in my script i have to disply total value .

fields are gross weight & quantity, for this where should i write code for this value in print program.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 27, 2007 at 09:16 AM

    hi

    do all calculation in driver prog ,

    define two more fields in the internal table u r using

    loop at itab.

    itab-tot_grweight = itab-tot_grweight + itab-grweight.

    itab-tot_qty = itab-tot_qty + itab-qty

    modify itab transporting tot_grweight tot_qty.

    endloop.

    reward if helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 28, 2007 at 02:03 PM

    In your driver program, i think you have used loop to extract the data from internal table into the window. just write

    sum.

    before you close loop.

    call function write_form after endloop. and pass the parameter for weight and quantity whereever you want to display. and in the text element give the respective fields

    for ex: Enter following in text element

    /E Total

    &internaltable-field(quantity)&

    &internaltable-field( weight).

    AND IN UR PROGRAM

    after ENDLOOP.

    call function Write_form.

    exporting

    element = Total (inthis case)

    type = top, body or bottom whereever u want the output

    window = main or any other window where u need

    Add comment
    10|10000 characters needed characters exceeded