I have a table with activites that are created at the purchase order item level. Each purchase order have a supplier. I would like to see what ratio of activites is deleted for given supplier. But not at the line item level but at the purchase order level.
I work with EKKO , EKPO Tables (EBELN, EBELP) and have both EBELN (Header) and EBELP (Position) in my activites table
|PO Nr||Position||Supplier||Activity PO Deleted|
In that Case on Line Item level I get the Ratio for Supplier A - 80% Deleted and for B 50 % deleted. Actually the purchase order would always be deleted at the header level . So both A and B should have 50 %. I have tried that with pull activities but I do not get the right results.
I thought something in the direction:
PU_COUNT_DISTINCT(“EKKO”, MATCH_ACTIVITIES(NODE_ANY[‘PO deleted’] ))
and to bind it to supplier in the table.
Any help would be appreciated.