Open quantity in contracts which have calloffs archived
We have contracts with their corresponding calloffs created. If the calloffs are archived, how can we obtain the open quantities in the contract in a Z-program? That is, which fields have to be checked? In VBUK table there is no "archived status" or soemthing like that. In table VBUP there is a field RFGSA which indicates if the item has been referenced totally or partially but I don't how to use it together with any other status.
Contract 1000 pcs.
Call off: 500 pcs archived
Call off: 400 pcs archived
There are still 100 pcs. opened but in our report it's displayed 1000 pcs as opened.
How can we get that 100 pcs are opened and 900 are archived?
Thanks in advance for any idea & best regards