Skip to content

AFF for Lock Objects (ENQU)#737

Open
anne-hobbs wants to merge 86 commits intoSAP:mainfrom
anne-hobbs:main
Open

AFF for Lock Objects (ENQU)#737
anne-hobbs wants to merge 86 commits intoSAP:mainfrom
anne-hobbs:main

Conversation

@anne-hobbs
Copy link
Copy Markdown

@anne-hobbs anne-hobbs commented Feb 3, 2026

AFF definition for Lock Objects (ENQU)

@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Feb 3, 2026

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Feb 3, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@albertmink albertmink added the new-object This is a new object type added to AFF label Feb 3, 2026
Copy link
Copy Markdown
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Thanks @anne-hobbs for your contribution. 👍

In a first iteration I went only over the example file and added some suggestions/ideas/questions there.

Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/type/zif_aff_enqu_v1.intf.abap Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json
Comment thread file-formats/enqu/examples/z_aff_enqu_ex.enqu.json Outdated
Comment thread file-formats/enqu/README.md Outdated
anne-hobbs and others added 20 commits February 25, 2026 09:59
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: Michael Schneider <micha.schneider@sap.com>
Co-authored-by: Michael Schneider <micha.schneider@sap.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
anne-hobbs and others added 9 commits April 7, 2026 11:13
Co-authored-by: Katharina Wurz <katharina.wurz@sap.com>
Co-authored-by: Katharina Wurz <katharina.wurz@sap.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@wurzka wurzka left a comment

Choose a reason for hiding this comment

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

I found one issue, but I'm not sure whether this is related to the failing check

Comment thread file-formats/enqu/type/zif_aff_enqu_v1.intf.abap Outdated
anne-hobbs and others added 3 commits April 8, 2026 09:18
Co-authored-by: Katharina Wurz <katharina.wurz@sap.com>
🤖 Generated with Claude Code
@albertmink
Copy link
Copy Markdown
Contributor

@anne-hobbs f7d1d5f adds the missing metadata file for the ABAP interface

@albertmink
Copy link
Copy Markdown
Contributor

@larshp just wanted to let you know that the JSON Schema generation looks off. Maybe you know more?
To me, it looks like this is not related to the repository/pr here. Looks more like a tool issue.

@larshp
Copy link
Copy Markdown
Collaborator

larshp commented Apr 8, 2026

yea, its fixed, with the commit above updating the branch

Copy link
Copy Markdown
Contributor

@wurzka wurzka left a comment

Choose a reason for hiding this comment

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

@anne-hobbs, thanks for the adaption. My review now is based on the structure of the AFF & mandatory fields. Please see my comments.

And @larshp, thanks for fixing 🙏

Comment thread file-formats/enqu/type/zif_aff_enqu_v1.intf.abap
Comment thread file-formats/enqu/type/zif_aff_enqu_v1.intf.abap
Comment thread file-formats/enqu/type/zif_aff_enqu_v1.intf.abap Outdated
Comment on lines +70 to +78
"! <p class="shorttext">Parameter Name</p>
"! Parameter name
name TYPE ty_field_name,
"! <p class="shorttext">Table</p>
"! Table
table TYPE zif_aff_types_v1=>ty_object_name_30,
"! <p class="shorttext">Field</p>
"! Field
field TYPE ty_field_name,
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.

Should anything be required here? So for a lock parameter, is anything field of them mandatory to be filled?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hard to say. The lock parameter candidates are always derived from the primary keys of the tables and thus determined by the framework. The only thing that can actually be changed is the name and if it's active or not. Would you recommend setting all three (field, table, name) as required or just the name as it's the only changable part here?

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.

I think it depends on what is a correct JSON. I understand that name, table and field must be filled, i.e.

{ "name": "bla" }

would not be valid, right? Therefore, I tend to also make table and field required.

One other question since I just compare the ADT editor with the JSON here: What does active mean? Is it meant that if active true, then the field is a lock parameter? If yes, I'm wondering if we really need the field and if it isn't enough to be a part of the table lockParameters for being a "lock parameter".

Copy link
Copy Markdown
Author

@anne-hobbs anne-hobbs Apr 20, 2026

Choose a reason for hiding this comment

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

Active in this case means that it is included in the generation of the lock modules and part of the locking mechanism. All entries in the "lockParameter" section are derived from primary keys and cannot be removed (or others manually added) so this flag is necessary (and besides the name the only one thats actually editable by the user)

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.

If the "lockParameter" entries are derived from the primary key, are they transported with the lock object?
What does a "lockParameter" with active = false mean?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, they are as the user has to name them (I don't know why though) and decide if they are going to be considered for the lock module or not.

If a lock parameter is set to active = false then it means that the entries for that table (whose key it is) are not going to be locked when the corresponding entry in the primary table gets locked. You could consider it an "off" switch so to say.

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.

Does the user also have to name them for active = false?

@wurzka wurzka self-assigned this Apr 14, 2026
@github-actions
Copy link
Copy Markdown

ABAP Doc Checks

  • Run ABAP Doc title/description casing check

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

Labels

new-object This is a new object type added to AFF

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants