Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.