I would like to set up a FOREACH fox formula that would read the initial 2 characters of master data for chracteristic 0COST_CTR e.g. sum all records for cost centers beginning with "CP"
Does anyone know if FOX can do this and the relevant code that wouild have to be used, or is an EXIT function required?
Fox can do it (FOR EACH). if you have an address I can forward an example oder if you press F1 in the fox editor you can find some exmaple.
Also with exit, of course with ABAP you can do it.
have also a look:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to loop over reference data in fox formulas.pdf