create_dcl
Creates and activates a DCL access-control source for a CDS view, enforcing role-based grants and blocking production profiles. Provide a transport request unless using package $TMP.
Instructions
Create a new Access Control / DCL source (DCLS) for a CDS view and activate it. Refuses to run on production profiles. Provide the complete DCL source, e.g. "define role { grant select on where () = aspect pfcg_auth(, , ACTVT = '03'); }" - the role name must match dclName. Needs a transport unless package is $TMP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dclName": "<dclName>",
"description": "<description>",
"packageName": "<packageName>",
"source": "<source>"
},
"name": "create_dcl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete DCL source (define role <name> { grant select on ... ; }) | |
| dclName | Yes | DCL/access control name, e.g. ZAC_MY_ENTITY. Must match the role name in the source. | |
| activate | No | Activate after writing the source | |
| transport | No | Transport request. Omit only for $TMP. | |
| description | Yes | Short description | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway. |