一键导入
abapgit-dcls-object
Create an abapGit DCLS object outside SAP systems using user-defined names and repository reference files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create an abapGit DCLS object outside SAP systems using user-defined names and repository reference files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run ATC syntax check on the SAP system to detect syntax errors after git pull.
Trigger an abapGit repository pull on the SAP system to sync the current codebase.
Run ABAP Unit tests on the remote SAP system via ADT.
Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.
Detailed guidance on which test layer(s) to update and how to write tests for different kinds of changes in the ZASIS project.
Reference guide for the ZASIS exception handling pattern — class hierarchy, message class, T100 integration, how to raise exceptions, and rules for adding new exceptions.
| name | abapgit-dcls-object |
| description | Create an abapGit DCLS object outside SAP systems using user-defined names and repository reference files. |
abapGit docs: Supported Object Types | File Formats | Test Repo
Create a DCLS (CDS Access Control) object directly as abapGit-serialized repository files, outside an SAP system.
<object_name>.dcls.<extension> — all lowercase.<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DCLS" serializer_version="v1.0.0">
A DCLS object consists of two files:
<name>.dcls.asdcls — access control source code<name>.dcls.xml — metadatasrc/zfoo_ac_flight.dcls.asdcls@EndUserText.label: 'Access Control for Flight'
@MappingRole: true
define role ZFOO_AC_FLIGHT {
grant
select
on
ZFOO_I_FLIGHT
where
(CARRIER) = aspect pfcg_auth(ZFOO_AUTH, ZFOO_CARR, ACTVT='03');
}
src/zfoo_ac_flight.dcls.xml<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DCLS" serializer_version="v1.0.0">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<DCLS>
<DCLNAME>ZFOO_AC_FLIGHT</DCLNAME>
<DCLLANGUAGE>E</DCLLANGUAGE>
<DDTEXT>Access Control for Flight</DDTEXT>
</DCLS>
</asx:values>
</asx:abap>
</abapGit>
src/zfoo_ac_c_flight.dcls.asdcls@EndUserText.label: 'Access Control for Flight Projection'
@MappingRole: true
define role ZFOO_AC_C_FLIGHT {
grant
select
on
ZFOO_C_FLIGHT
where
inheriting conditions from entity ZFOO_I_FLIGHT;
}
src/zfoo_ac_c_flight.dcls.xml<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DCLS" serializer_version="v1.0.0">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<DCLS>
<DCLNAME>ZFOO_AC_C_FLIGHT</DCLNAME>
<DCLLANGUAGE>E</DCLLANGUAGE>
<DDTEXT>Access Control for Flight Projection</DDTEXT>
</DCLS>
</asx:values>
</asx:abap>
</abapGit>
| Element | Description |
|---|---|
DCLNAME | Access control name (uppercase, max 30 chars) |
DCLLANGUAGE | Original language (E = English) |
DDTEXT | Short description |
<name>.dcls.asdcls with the define role source.<name>.dcls.xml with DCLS metadata.inheriting conditions from entity for projection views.aspect pfcg_auth(...) for direct authorization checks.LCL_OBJECT_DCLS.DCLNAME in XML matches the filename (uppercase vs lowercase)..asdcls file uses define role ... { grant select on ... } syntax.@MappingRole: true annotation is present.