> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionSCCSetReceiptRequired

# SCC\_SetReceiptRequired

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/SmartCharging/Functions/CAPLfunctionSCCSetReceiptRequired.md)

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [V2G Simulation Data](../CAPLFunctionsSmartChargingOverview.md#V2GSimDataWrite) » [EVSE Functions](../CAPLFunctionsSmartChargingOverview.md#V2GSimDataWrite) » SCC\_SetReceiptRequired

## Valid for:

* CANoe DE
* CANoe4SW DE

## Function Syntax

```plaintext theme={null}
long SCC_SetReceiptRequired ( long ReceiptRequired )
```

## Description

Sets the flag **ReceiptRequired**, and adapts the simulation state to await a **MeteringReceiptReq** next. Although **MeteringReceipt** is a specific message for PnC mode, this is also possible when using EIM mode.

## Parameters

* **ReceiptRequired**
  * 1 if a MeteringReceiptReq is expected next.
  * 0 if another ChargingStatusReq is expected.

## Return Values

* **0**: Not successful
* **1**: Successful

## Example

—
