Question: what is xworkd in sap?
Answer: SAP provides you 10 "subtotals" or dynamic fields (XWORKD to XWORKM). They are available to you to use as you see fit. Pricing routines will be able to interrogate these fields. It is simply a matter of you assgining these totals to the spot you want in the pricing procedure.