Skip to Content
0
Former Member
Apr 18, 2016 at 10:39 AM

Query BSID - IF and SUM

47 Views

Hello,

i have a question for Infoset (SQ02) on table BSID:

I made an additional field = ZF30 with coding:

DATA ZH1 type BSID-BUDAT.
DATA ZH30 Type BSID-BUDAT.
ZH1 = sy-Datum -1.
ZH30 = sy-Datum -30.
Clear ZF30.
If zfaellig between ZH30 AND ZH1.
     ZF30 = ZBETRAG.
ENDIF.

I want, when field zfaellig betweet alternative fields ZH30 and ZH1, the Content of the field ZBETRAG written in the field ZF30.

This works ๐Ÿ˜Š

Now i want the sum of field ZBETRAG appears the selected customors.

How can i extend the If condition?

THX

Marco