Diagnostic codes

rapt check prints the diagnostics in the format file:line:column: severity CODE message. The exit code is 1 as soon as there is an error (or a warning with --warnings-as-errors).

CodeSeverityMeaning
PRJ001errorNo service definition, or several without --service
PRJ002errorThe requested service definition does not exist
SRVD001errorSyntax error in a service definition
SRVD002info / warningSeveral bindings for the service: a UI binding and Web API ones, the UI one is built (info, D76); otherwise the first one (warning); --binding <name> chooses
SRVD003warningBinding that is not OData V4
SRVD004errorEntity set exposed twice
SRVD005errorExposed entity not found
SRVD006infoAssociation to an entity that is not exposed: navigation omitted
SRVD007infoSeveral service definitions: the one with a binding is built (the others, of a service consumption model for example, are not)
SRVD008error--binding-type other than ui or webapi (D60)
CDS001errorUnreadable CDS source
CDS002error or warningUnsupported CDS construct; in a calculated element or a WHERE condition (D101), the message names the construct (to-many association path, session variable other than $session.system_date, BETWEEN, aggregate, unsupported SQL function) (D67, D100); in a CDS hierarchy, PERIOD and GENERATE SPANTREE, and an OData recursive hierarchy with parameters or several node elements (D108)
CDS003errorUnknown data source or projected entity
CDS004errorUnknown element in the source
CDS005errorUnknown association or redirection target
CDS006warningMetadata extension for an unknown entity
CDS007warningMetadata extension ignored (@Metadata.allowExtensions missing)
CDS008warningMetadata extension on an unknown element
CDS009warningClient field not exposed
CDS010errorUnsupported ON condition
CDS011errorEntity without a key
CDS012warningComposition or association to parent not redirected in the projection
CDS013errorThe projection does not expose the fields an association needs
CDS014errorUnknown type in an abstract entity
CDS015errorComposition without an association to parent in the child
CDS016errorCustom entity without @ObjectModel.query.implementedBy: 'ABAP:<class>'
CDS017errorQuery class of a custom entity missing from the sources
CDS018warningValue help (@Consumption.valueHelpDefinition) on an unknown entity: value help omitted
CDS019errorTable entity name longer than 25 characters (D55)
CDS020errorTable entity element: null key, key after a non-key element, abap.string or abap.rawstring without null (D55)
CDS021errorElement of a CDS enumerated type in an exposed entity: SAP does not expose enumerated types in RAP OData services. In enhanced mode, OData enumeration type (D55)
CDS022errorInvalid calculated element: type that cannot be derived (NULL alone, calculation on a string: add a CAST), unknown type in a CAST, number of arguments of a function, circular or unknown $projection reference, calculated element that is a key or has no alias (D67); a CDS hierarchy that SAP refuses: source not a view entity, hierarchy association not a self association, START WHERE missing for a non-numeric parent, SIBLINGS ORDER BY missing, DEPTH without ORPHANS IGNORE, CYCLES BREAKUP without MULTIPLE PARENTS ALLOWED; an OData recursive hierarchy without node element or parent association (D108)
TYPE001errorUnreadable CDS type source (.drty.acds), or name different from the one of the file (D55)
TYPE002errorCDS type based on an unknown type (D55)
TYPE003errorWrong CDS enumerated type: base type (abap.int1, int2, int4, char(1..8), numc(1..8)), not exactly one initial constant, value outside the base type, duplicate constants or values (D55)
DDIC001errorUnknown data element
DDIC002errorUnsupported data type
DDIC003errorUnsupported included structure
DDIC004warningTable class other than transparent
DDIC005infoTable of the project left out of the database (it cannot be built and no entity uses it)
DDIC010errorUnreadable table definition
DDIC011errorUnreadable change document object (.chdo.xml without CHDO) (D119)
TABL001errorError in the source of a table (.tabl.astabl): syntax, unknown type, name different from the one of the file, table without a key
TABL002warningConstruct of the source of a table not carried over to the abapGit XML (foreign key)
BDEF001errorBDEF syntax error
BDEF002errorOut-of-scope feature (unmanaged, late numbering in a draft BO…)
BDEF003warningConstruct ignored
BDEF004errorUnknown CDS entity
BDEF005errorUnknown element
BDEF006errorUnknown association
BDEF007errorUnknown persistent table
BDEF008errorMapping inconsistent with the CDS view or the table
BDEF009errorElement without a matching column
BDEF010errorImplementation type missing
BDEF011errorBehavior pool required
BDEF012errorStatement forbidden in this type of BDEF
BDEF013errorManaged BDEF on something other than a view entity
BDEF014errorPersistent table missing
BDEF015errorLock definition missing or invalid
BDEF016warningStrict mode without an authorization definition
BDEF017errornumbering : managed on a field that is not a UUID key
BDEF018warningcreate on a child entity
BDEF019errorCreate by association on something other than a composition
BDEF020warningDetermination without a trigger
BDEF021errorUnknown parameter or result entity
BDEF022errorFactory action with a result, or function without a result
BDEF023errorThe projection reuses a feature missing from the base
BDEF024errorComposition child without behavior
BDEF025errorChild entity without an association to parent
BDEF026errorProjection BDEF on something other than a projection of a managed BO
BDEF027error or infoManaged BO with unmanaged save on a custom entity: an extension of Open RAP Runtime, not activatable on SAP (D43). Error in standard mode, info in enhanced mode (D45)
BDEF028errorDraft BO (with draft) with an entity without a draft table (D54)
BDEF029errorwith collaborative draft without draft action Share (D59)
BDEF030errordraft determine action Prepare names a validation or a determination the entity does not define (D81)
BDEF031errortotal etag anywhere but right after lock master (lock master total etag Field), refused by SAP (D85)
BDEF032errorLate numbering refused by SAP: on a child of an entity with late numbering but not on the child, or with early numbering (D109)
BDEF033errorinstance hierarchy that does not name a CDS hierarchy whose source is the entity, or written twice in an entity (D118)
BDEF034errorCopy action outside instance hierarchy, a second copy action, or a copy action with the name of another action (D118)
BDEF035errorChange documents refused by SAP (D119): without strict mode or persistent table, changedocuments twice, more than one change documents master, a dependent without master, not below it or whose parent is not enabled, by an association that does not lead to the master, for persistent tables (not in ABAP Cloud) or an unknown addition
BDEF036errorLogging options of change documents refused by SAP (D119): without changedocuments master or dependent, empty, an operation twice, an unknown operation or option, update : key
BDEF037errorUnknown change document object in changedocuments master ( … ): its abapGit file <name>.chdo.xml is missing (D119)
ABP001errorBehavior pool not found
ABP002errorMissing handler method, or missing saver class (with save_modified) for additional or unmanaged save, or without adjust_numbers for late numbering (D109)
ABP003warningHandler or saver method without a matching BDEF element (including an undeclared precheck, a saver without additional or unmanaged save): it is not called
ABP004errorABAP error (abaplint): syntax of the original sources, complete check of the rewritten sources, at the original line
ABP005errorMalformed EML statement or unsupported form (OPERATIONS, RELATING TO…)
ABP006errorUnknown name in the EML or a derived type: BDEF, entity, field, association, action
ABP007errorUnsupported construct: ABAP SQL write outside the saver class, WITH, SELECT … ENDSELECT with a field list into an inline target, a list of targets or by PACKAGE SIZE, EML on a projection, GET PERMISSIONS, out-of-scope derived type or handler
ABP008errorInternal error (generated ABAP) or error of the transpiler
ABP009errorResult of a SELECT abaplint does not type (literal, aggregate other than COUNT(*), MAX and MIN, expression) in an inline declaration: declare the target
ABP010errorAUTHORITY-CHECK on a field the authorization object does not have
ABP011warningAUTHORITY-CHECK on an authorization object neither in the sources (SUSO) nor in rapt/authorizations.json: no role grants it
ABP012errorForbidden by ABAP for Cloud Development: a system field written (sy-subrc = 0., CLEAR sy-subrc; the message of SAP BTP), CALL FUNCTION (no function module is released) (D91)
DCL001errorUnreadable access control (DCL), or circular inheritance
DCL002warningCondition of an access control the application does not evaluate: it grants no row
DCL003warningUnknown element, association or entity in an access control, or not exposed by the projection: the condition grants no row
DCL004error or warningaspect pfcg_auth on a field the authorization object does not have (error), or on an unknown object (warning)
AUTH001errorUnreadable or malformed authorization object or rapt/authorizations.json
AUTH002warningRole granting an unknown authorization object (its fields are not checked)
AUTH003errorRole giving a value to a field the authorization object does not have
AUTH004warningRole granting an activity (ACTVT) the authorization object does not allow
LPD001errorUnreadable or malformed launchpad.json: groups, titles, id or URL of an application, roles of a tile
LPD002errorTile without a target, with two targets (app and url), or of an unknown application
LPD003error or warningApplication folder not generated by rapt build (error); application whose services are not known, neither build nor servicePaths nor a built source (warning)
LPD004errorIntent not of the form SemanticObject-action
LPD005errorService path under a path of the launchpad (/ui, /apps, /auth…), or served by two applications
LPD006errorCounter on an entity set unknown to the service, or on a tile without an application
LPD007warningRole of a tile missing from the rapt/authorizations.json of the applications (the IdP must still give it)
LPD008errorMalformed space or page in launchpad.json (title, pages, sections, roles) (D48)
LPD009errorMalformed source application (not a path, or with build), folder not found, or application that does not build with the launchpad (D69)
LPD010error / warningrapt launchpad dev: application without a local url with a port, port taken by another application or by the launchpad, no application with sources (errors); application without sources, not started (warning) (D75)
LPD011warningTile of an application that is an OData V4 - Web API (no UI): the tile is left out (D76)
SEED001errorUnreadable or malformed rapt/seed.json (object table → array of rows expected)
SEED002errorrapt/seed.json: table or field unknown to the application
NR001errorUnreadable or malformed rapt/number-ranges.json: object longer than 10 characters, interval longer than 2 characters, non-numeric or inverted bounds
CFG001errorUnreadable rapt/config.json, or unknown mode (standard or enhanced), in the file or --mode (D45)
CFG002warningUnknown setting in rapt/config.json, ignored
CFG003errorMalformed ui of rapt/config.json: unknown floorplan, incomplete Overview Page card, entity set missing from the service (D53)
MCP001errorUnreadable or malformed rapt/mcp.json (D47)
MCP002warningrapt/mcp.json describes a tool the service no longer has: run rapt mcp again
APP001errorRuntime packages not found (dist/ not built) for the generated application: --runtime <folder> or pnpm build