Skip to main content
Question

PO Vs Non PO Invoice

  • February 24, 2021
  • 2 replies
  • 3 views

sudip.dutta
Level 1
Hi All, I have full AP data and I am trying to write a formulae in Celonis to showhow many are PO Invoices and another one to say how many are Non PO Invoices. What will be my PQL query be. Thanks Sudip

2 replies

gabriel.okaba11
Celonaut
Forum|alt.badge.img+2
  • Celonaut
  • 229 replies
  • November 19, 2021

Hi Sudip,

 

This should be fairly simple as long as you have a business logic defined.

For example, if your criterion to identify non PO invoices are invoices where the Purchase Order Number is empty and the PO invoices are the ones the field are populated, you could achieve it doing the following:

 

Formulae for counting Non PO Invoices:

SUM(

CASE WHEN INVOICETABLE.PurchaseOrderNumber IS NULL THEN

THEN 1.0 ELSE 0.0 END)

 

Formulae for counting PO Invoices:

SUM(

CASE WHEN INVOICETABLE.PurchaseOrderNumber IS NOT NULL THEN

THEN 1.0 ELSE 0.0 END)

 


  • Level 0
  • 145 replies
  • November 22, 2021

For SAP Source Systems many customers use BKPF.AWTYP = 'RMRP' as an indicator if an invoice was with a PO or not. Maybe this helps in case you are not able to identify an indicator.

 

Best,

Kevin