Skip to content

[AIFS] Add new object type AIFS#788

Open
Smartynkov wants to merge 9 commits into
SAP:mainfrom
Smartynkov:feature/aifs
Open

[AIFS] Add new object type AIFS#788
Smartynkov wants to merge 9 commits into
SAP:mainfrom
Smartynkov:feature/aifs

Conversation

@Smartynkov

Copy link
Copy Markdown
Contributor

No description provided.

@Markus1812 Markus1812 self-assigned this Jun 12, 2026

@hyperspace-insights hyperspace-insights Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR adds the new AIFS (Structure Mapping) object type and is largely well-structured, but has several issues that must be fixed: the example file has a critical naming error (comma instead of period in the filename), is missing the required trailing newline, the ty_error_handling_type enum has an invalid $default configuration (the non-default constant holds the initial ABAP value, violating all three default-value rules), the co_check_ba constants use an inline type instead of the declared ty_check_ba alias, the README table is missing the example link, the ABAP field conversion_dataelement should be conversion_data_element, and the shorttext "Mapping Informations" uses an incorrect plural form.

PR Bot Information

Version: 1.22.8

Comment thread file-formats/aifs/README.md Outdated
Comment thread file-formats/aifs/examples/z_aff_example_aifs,json
Comment thread file-formats/aifs/examples/z_aff_example_aifs,json Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
@hyperspace-insights hyperspace-insights Bot deleted a comment from Markus1812 Jun 12, 2026

@Markus1812 Markus1812 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the contribution. Please see my comments below (and also from the hyperspace-bot). As this is a very large AFF, we might need multiple review-iterations, as it is quite hard to oversee everything on first sight.

Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment on lines +56 to +59
"! <p class="shorttext">Namespace</p>
"! Namespace of the structure mapping
"! $required
namespace TYPE c LENGTH 15,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the AIF Namespace (AIFN), right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is.

Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
Comment thread file-formats/aifs/type/zif_aff_aifs_v1.intf.abap Outdated
"! <p class="shorttext">Number</p>
"! Number
"! $required
number TYPE n LENGTH 3,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all lists, there is a number, numericId or fieldNumber. Do you really need these? In the JSON (and in the server-driven UI) the order of items is always the order in which the user added the items (or rearranges them). As a user, I would prefer not to enter a sequential number for each entry I add to a list. What happens if I remove the first entry? Do I have to change all numbers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Markus.

The numericID isn't actually about sequence order. For Structure Mapping and Field Mapping, the execution order is based on the JSON array order (managed by separate fields not in the AFF).

Fields like number and fieldNumber are explicit IDs used by other objects, and users need them to connect corresponding records across those objects. Unfortunately, this means we must keep all of these IDs in the schema.

However, to solve the UX issue you mentioned, we will auto-generate these numeric IDs for internal records within the Structure Mapping object and make them strictly read-only in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants