Hi,
DPO is the average number of days a company takes to pay its suppliers.
Here is the logic I found in the process cockpit. Why do we need to multiply the "BSEG"."WRBTR field here as we need only the days of difference ?
SUM(
CASE
WHEN ISNULL("BSEG"."AUGDT")=1
THEN 0.0
ELSE DATEDIFF(dd, ROUND_DAY("BKPF"."BUDAT"), ROUND_DAY("BSEG"."AUGDT")) * "BSEG"."WRBTR"
END
)
/
SUM(
CASE
WHEN ISNULL("BSEG"."AUGDT")=1
THEN 0.0
ELSE "BSEG"."WRBTR"
END
)