Skip to Content
0
Former Member
Dec 11, 2007 at 02:04 PM

Problems with itab: subtotal

17 Views

hi,

i've got some problems with the report which i should write.

1.

i have to move to the negative values of the itab-field betrh to the itab-field verb and the positiv to the itab-field ford, but i don't know how to do this.

2.

i have to make sub-totals for each gpart which should be displayed in the alv-grid in the itab-field Saldo.

DATA: BEGIN OF itab OCCURS 1000,

      gs       TYPE dimaiobpar-zgst,
      status   TYPE dimaiobpar-zstatus,
      bukrs    TYPE dfkkop-bukrs,
      betrh    TYPE dfkkop-betrh,
      verb     TYPE dfkkop-betrh,
      ford     TYPE dfkkop-betrh,
      saldo    TYPE dfkkop-betrh,
      gpart    TYPE dfkkop-gpart,
      vtref    TYPE dfkkop-vtref,
      mtyp     TYPE dimabroker-brostmtyp,
      n1       TYPE adrc-name1,
      n2       TYPE adrc-name2,
      n3       TYPE adrc-name3,
      abrtyp   TYPE dimaiobpar-zabrtyp,
      vertart  TYPE dimaiobpar-zvat,
      zrtyp    TYPE dimaiobpar-azawe_x,
      opbel    TYPE dfkkop-opbel,

      END OF itab.

regards,

Tobias