> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/projects/check-cost-revenue-element-validity.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Check Cost Revenue Element Validity

Validates a forecast line or company element against existence, Objstate, type and code-part mapping on a date. Read-only.

| Business area | Action type |
| ------------- | ----------- |
| Projects      | Read-only   |

## Overview

Every project forecast line carries a ProjectCostElement. Forecasts, budgets and project follow-up are only reliable when that element exists in the company, is not blocked (data validity Objstate Active/Hidden/Blocked), has the element type that matches the line (ElementType Cost vs.

Reads forecast lines and cost/revenue element setup.

## How it works

{% stepper %}
{% step %}
Line: ProjectForecastItemSet with element ref.
{% endstep %}

{% step %}
Element: CostRevElementsHanding ProjectCostElementSet.
{% endstep %}

{% step %}
Code part: ProjectCostElement\_GetResult bound function.
{% endstep %}

{% step %}
Mapping: CostElementToAccountSet filter.
{% endstep %}

{% step %}
Default: DefaultCostElement filter.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolves company, element, item type, code-part values and dates from a forecast line, or accepts them directly.
* Confirms the element exists in the company and reads its data validity (Objstate: Active, Hidden, Blocked).
* Checks element type (ElementType Cost/Revenue) against the forecast ItemType.
* Identifies the base code part for project follow-up (GetResult bound function).
* Finds the effective element mapping for the line's base code-part value on the evaluation date (latest ValidFrom on or before the date).
* Applies the IFS fallback to the company default cost element when no mapping exists.
* Flags BudgetPlanningOnly elements and committed-cost spreading settings.
* Returns a verdict table with one next step.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                                 |
| --------- | ------------------------------------------ |
| ACCRUL    | ProjectForecastVersionLineHandling         |
| PROJBF    | CostRevenueElementPerCodePartValueHandling |

## Version compatibility

| Projection                                 | Supported IFS Cloud releases |
| ------------------------------------------ | ---------------------------- |
| ProjectForecastVersionLineHandling         | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CostRevenueElementPerCodePartValueHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
