When AI prepares part of the ABAP code, the SAP team's work changes not only at the implementation stage. Before generation, the financial rule and the permitted extension approach need to be defined more precisely. After it, the business meaning, technical correctness, and the change's readiness for transport between systems must be verified independently.
For the FI/CO consultant, this means a more explicit specification: not "populate the analytics by cost center," but defining the conditions, priorities, exceptions, and the expected accounting result. For the ABAP developer, it means working with a proposed implementation: checking the objects used, embedding the code in an allowed context, fixing errors, and presenting the results of checks.
Below is a recommended collaboration model, not an SAP-mandated distribution of responsibilities. We will look at it through a single illustrative scenario. This is not an instruction for an arbitrary SAP system: the edition, version, availability of extensions, and AI features must be verified separately.
What can genuinely be delegated to SAP Joule for Developers
SAP describes for ABAP development code generation and completion, chat, and explanation of objects and code, as well as the generation of ABAP Unit and tests for CDS entities. These are grounds for using AI to speed up individual operations, but not evidence that an entire FI/CO implementation can be handed over to the assistant.
The presence of a feature in the documentation does not guarantee its availability in a project. For the target system, you should verify the supported SAP edition, editor, license, and activation via the description of Joule capabilities.
There is also a fundamental limitation of the result: SAP warns that generative AI may produce inaccurate, incomplete, or biased responses. Therefore, in the proposed process, generated code is a proposal for professional review, not a ready release object. The sources confirm the assistant's capabilities but give no grounds to promise a specific reduction in project timelines or to make staffing forecasts.
End-to-end scenario: populate a custom field of a line item
Take a manual posting to a cost account in SAP S/4HANA. For a qualifying line item, the value of the custom field "Management Analysis Category" must be determined from an agreed mapping with the cost center — CC.
This is a training name for the field, not an SAP technical identifier. The rule itself is also illustrative:
- it applies only to an agreed transaction type, company code, and set of cost accounts;
- if the field is already populated, the value is preserved;
- if the field is empty and there is an approved mapping for the CC, a category is inserted;
- if there is no mapping, the field remains empty;
- the rule does not change other line items or accounting attributes.
The last choice — leaving the field empty when no mapping exists — is an assumption of the example, not a recommendation for every project. If the business requires rejecting such a posting, that is a separate validation requirement; it cannot be quietly added inside the task of populating the field.
The technical feasibility of the scenario is not yet proven. SAP documents for custom fields of journal entries the business contexts Accounting: Journal Entry Item and Accounting: Coding Block, as well as derivation options via custom logic and substitution. The description of the BAdI for substitutions lists extensions for the header, line items, and extension fields of the journal entry. At the same time, only fields designated for substitution may be changed.
Consequently, before writing any code, the presence of a suitable business context, the availability of the source data, and the ability to change the required field using the selected approach must be confirmed in the target system. The specific fields, BAdIs, and restrictions depend on the version, edition, and process. Below we use Public Edition as a reference point for discussing extensibility constraints, but we do not assume that a suitable extension point has already been found.
Requirements stage: the FI/CO consultant defines meaning, not a description of future code
The phrase "derive the category from the CC" leaves too many decisions to the implementer. Should a manual value be overwritten? Does the rule apply to all accounts? Should the category be determined based on the posting date? What should happen if the mapping is ambiguous?
In the proposed process, the consultant turns these questions into a verifiable contract. For our example, it includes:
- Scope: the process, company code, set of accounts, and line items to which the rule applies.
- Source data: where the CCs and the mapping table come from, who is responsible for its content, and whether validity periods need to be taken into account.
- Priority: the existing value is preserved; automatic population is performed only for an empty field.
- Exceptions: the absence of a CC or a mapping must not lead to guessing a "similar" category.
- Invariants: the rule does not change the account, posting side, amount, currency, organizational dimensions, or period.
- Expected result: the category value in the specific line item after posting the document, and the absence of unintended changes in the other line items.
The list must be agreed before generation. If the validity period of the mapping or the handling of ambiguity is not yet defined, these are open requirements — not the developer's or the AI's freedom to pick a convenient behavior.
Why is checking a single field insufficient here? SAP describes the Universal Journal as the single source of FI and CO records, combining the relevant accounting line items. For our task, this yields a practical acceptance criterion: check not only the resulting category but also the preservation of the agreed accounting result. The description of the Universal Journal itself does not allow an extension to modify ACDOCA directly; the permitted path for changes is determined by the application, configuration, and extension model.
This is where the consultant's work changes: instead of passing on a general intent, they prepare independent expected results. It is against these that the implementation and tests are then compared, regardless of who wrote the code.
Architecture stage: first the permitted extension, then generation
The next question is not "what ABAP to write" but "whether it is needed at all." The consultant and the developer determine whether a configuration or key user extensibility suffices, or whether developer extensibility is required.
For our scenario, the decision begins with the following checks:
- whether a suitable substitution mechanism exists;
- whether the target custom field is available for modification;
- whether the required data is passed to the selected extension point;
- whether the approved mapping can be obtained in a permitted way;
- whether the implementation option is compatible with the target system's constraints.
For developer extensibility in SAP S/4HANA Cloud Public Edition, SAP specifies the restrictions of ABAP Cloud, the use of released SAP APIs and objects, and predefined extension points. SAP material on released APIs explains their role in the extensibility model.
Therefore, even a plausible AI proposal must be checked for the permissibility of its dependencies. The presence of an object in the system does not yet confirm that it is allowed to be used in the selected extension model. If no suitable approach exists, the decision should be reconsidered rather than circumventing the restriction with a helper-proposed access to internal objects.
These requirements cannot be automatically transferred to any Private Edition or on-premise system. For those, the decision must be checked against the documentation of the respective edition, version, and chosen extension model.
Implementation stage: AI receives a bounded task
Once the technical path is chosen, the developer can use AI to explain existing code, prepare an implementation, or a test scaffold. The availability of a specific operation is verified separately; one cannot assume that any key user extensibility surface supports the same Joule capabilities as the ABAP development environment.
For a branch with generation available, a request roughly like this is useful:
Prepare a draft of the logic based on the provided specification and the confirmed interface. Work only with the listed input and output fields and the permitted dependencies. Preserve an existing category. For an empty category, use only the provided approved mapping for the CC. If there is no mapping, do not change the value. Do not modify the other attributes. List any missing information separately; do not invent APIs, fields, or business rules.
This is an example of organizing a request, not a universal prompt for a specific BAdI. Its value lies in the task's boundaries. The exact technical names and interfaces must be obtained by the developer from the target system, not from the assistant's assumption.
The AI proposal is then checked for discrepancies with the specification: whether a default category was added, whether the priority of the manual value was changed, whether the scope was expanded. The developer also determines where the data comes from and what happens when the logic is executed again. For our rule, reprocessing must not change an already populated category — this is a consequence of the agreed priority, not a universal property of SAP substitutions.
Review: financial and technical correctness are checked separately
Functional review answers the question: has the required rule been implemented with the correct accounting result? In our example, the FI/CO consultant checks the scope, the mapping of category to CC, the preservation of the existing value, and the invariance of the other attributes.
Technical review answers a different question: is the rule implemented permissibly and reliably in the chosen context? The ABAP developer or a technical reviewer checks the extension point, released dependencies, the handling of input and output parameters, the treatment of missing data, exceptions, and the project's technical rules.
These checks do not substitute for each other. Code can pass the technical checks and populate the category in the wrong line item. Conversely, a correct value in one document does not yet confirm the permissibility of the API used or the solution's reliability on the remaining data.
The practical process change is to make both review results explicit. The formulation "AI wrote it, the developer looked at it" does not show who confirmed the financial semantics and on which examples.
Testing: expected results must be independent of the implementation
SAP explicitly limits the scope of ABAP Unit test generation: it applies to public methods of global ABAP classes. The same documentation notes that Joule does not know the problem domain of the expected behavior. The developer should verify that the tests match the specification and run the set after changes to the code or tests.
This matters for our scenario: one cannot assume that the generator will directly test arbitrary custom logic. Where and how to check the logic is determined by the chosen implementation and the available testing options. If tests are written against erroneous code and repeat its behavior, a successful run does not prove that the FI/CO requirement is fulfilled.
Below is a recommended matrix for the illustrative rule. It is not full coverage of a real project.
| Scenario | Preconditions | Expected result |
|---|---|---|
| Main path | The line item falls within the rule's scope, the category is empty, a mapping exists for the CC | The approved category is inserted |
| Manual value | The line item falls within the rule's scope, the category is already populated | The existing value is preserved |
| No mapping | The category is empty, no mapping exists for the CC | The field remains empty; the category is not guessed |
| No CC | The category is empty, the CC is missing | The field remains empty |
| Outside the rule's scope | The process, company code, or account does not qualify | The field is unchanged |
| Reprocessing | The category is already populated by a previous execution | The value is preserved |
| Document with different line items | The rule's conditions are met only for some line items | Only the qualifying line items change; the other attributes are preserved |
For each case, the consultant defines the expected result, and the developer chooses an appropriate level of checking. The category selection logic can be checked in isolation where the architecture permits. Invoking the extension in the real process, saving the field, and the posting result of the document require verification in the system.
Additionally, the team determines the necessary checks of integrations, authorizations, and system behavior. These cannot be considered completed merely because ABAP Unit finished successfully.
SAP recommends running ABAP Unit and evaluating functional correctness and coverage, and, for objects in a transport, measuring coverage before its release. In the described standard settings, ATC errors with priority 1 and 2 block the release of tasks and transport requests. This is a technical quality gate, but not proof of the correctness of the financial requirements or the completeness of the checks.
Transport: a separate release decision
After generation, review, and testing, the change still has to be prepared for transport. The Change and Transport System organizes changes and moves them between SAP systems; this stage is not a side effect of obtaining code from AI.
The mechanism depends on the type of change and the landscape. In the documented three-system cloud landscape, workbench requests are used for developer extensibility, and software collections for key user extensibility. So it would be inaccurate to say "create a transport with the code" for every variant of our example. For other landscapes, the process of the respective system is required.
In the proposed model, before release the team reconciles the composition of the change: the custom field, the logic, the necessary dependencies, and the related settings. Which of these elements are transported by the selected mechanism, in what order, and what actions are required in the target system must be confirmed separately. One cannot assume that the business mapping table will automatically arrive there together with the code.
For approval, it is useful to link, in a single set, the specification, the results of the functional and technical review, the executed checks, and the list of transported objects. After the transport, the scenario should be verified in the target system before productive use. The specific sequence of approvals and checks is determined by the project, not by the AI assistant.
How to distribute the work among FI/CO, ABAP, and AI
The table below is an editorial recommendation for organizing the process. It assumes the use of AI as a development assistant; decisions on requirements and release remain with the responsible specialists.
| Task | FI/CO consultant | ABAP developer | Role of AI |
|---|---|---|---|
| Requirements | Defines the rule's scope, exceptions, and financial invariants | Checks technical determinacy and data availability | Helps structure the draft and surface questions |
| Extension selection | Confirms the fit to the business process | Checks the extension point, interfaces, and system constraints | Proposes options for verification, but does not confirm their availability |
| Implementation | Clarifies ambiguities of the business rule | Generates, checks, and edits code in the permitted context | Prepares a draft or explains the existing implementation |
| Review | Checks the meaning and expected accounting result | Checks dependencies, context, and technical correctness | May offer comments, without replacing independent verification |
| Testing | Defines the control cases and accepts the financial result | Checks the tests, runs ABAP Unit, ATC, and the necessary system checks | Prepares test scaffolds within the available features |
| Transport and release | Confirms functional readiness | Prepares the technical part of the change and confirms the check results within the project process | Does not make the release decision |
AI changes, above all, the sequence of preparing and verifying the implementation: part of the code and tests comes from the generator, while the requirements for their grounding become more visible. In our scenario, the team's result should be not merely a populated attribute, but a traceable chain: an agreed FI/CO rule, a permitted extension, a verified implementation, independent expected results, and a controlled transport. The availability of each feature and each mechanism in this chain is verified for the specific SAP edition, version, and landscape.