Skip to Content
author's profile photo
Former Member

Using FOX to read Master Data

Dear All,

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?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Sep 30, 2005 at 01:33 PM

    Hallo Donald

    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

    Mike

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 02:20 PM

    Donal,

    You can certaily do that with Fox Formula. You will actually need to use FOREACH, IF and SUBSTR expressions.

    Cheers,

    Alberto Sabate

    Add comment
    10|10000 characters needed characters exceeded