Skip to content

[HTTP] Add new object type HTTP #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

[HTTP] Add new object type HTTP #709

wants to merge 5 commits into from

Conversation

WUEHR
Copy link
Contributor

@WUEHR WUEHR commented Jun 10, 2025

No description provided.

WUEHR and others added 2 commits June 10, 2025 17:32
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
@GuilhermeSaraiva96 GuilhermeSaraiva96 self-requested a review June 10, 2025 15:49
@GuilhermeSaraiva96 GuilhermeSaraiva96 added the new-object This is a new object type added to AFF label Jun 10, 2025
Copy link

@GuilhermeSaraiva96 GuilhermeSaraiva96 left a comment

Choose a reason for hiding this comment

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

Thank you for the AFF. I have a few suggestions :)

service_class TYPE zif_aff_types_v1=>ty_object_name_30,
"! <p class="shorttext">URL</p>
"! URL
service_url TYPE zif_aff_types_v1=>ty_object_name_30,

Choose a reason for hiding this comment

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

type c length 60?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand, should I use 'type c length 60'?

Choose a reason for hiding this comment

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

Yes, the service url currently has the type zif_aff_types_v1=>ty_object_name_30, which should be used for fields which represent an object type.
Use type string, this way the url size is not limited.

Copy link
Member

Choose a reason for hiding this comment

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

One follow up question from my side: How long can URLs be (or what length do you use in your database persistence)? In your first version it was 30 characters, now it's 60.

Take for example https://github.com/SAP/abap-file-formats/pull/709/files/d241275335d9e025121951bda910f77679b6203f#diff-fe5a33e190666260de7e040363387bf5643a7217edd3eee624e26096c39a7e73 - this is 166 characters long. Would that be a valid value for URL?

Or are valid values more like "/sap/bc/servicegroup/servicename" (32 characters)?

It very important to consider this now, as it is quite hard to change the length of this field in the future once this is in production.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, it is too short.
The URL has always the format:
https://LDCIALX.WDF.SAP.CORP:44318/sap/bc/http/sap/30-charakter-long-name?sap-client=000

I increased the URL field to length 120, that should be enough

Copy link
Member

Choose a reason for hiding this comment

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

Now when I see the URL, one more question:

Is the URL something calculated or can the user define this one? Does it always follow the pattern:
https://ldci[SID].wdf.sap.corp:44318/sap/bc/http/sap/[OBJECT-NAME]?sap-client=000 or more general
https://[URI of ABAP AS] /sap/bc/http/sap/[OBJECT-NAME]?sap-client=000?

Is this only intended for display or can the user actually change this? All fields in the AFF should be transported (and can be imported/exported via abapgit/gcts/...).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The URL is calculated, as you wrote: https://[URI of ABAP AS]/sap/bc/http/sap/[OBJECT-NAME]?sap-client=XXX?
User can not change it, he can only define the object name in the wizzard.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, in this case the URL cannot be part of the AFF, as it should only contain information that should be transported.

As you probably want to show the URL in the server-driven editor, maybe our ux colleagues have an idea how to show that best. @SAP/abap-file-formats-ux

Choose a reason for hiding this comment

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

Well caught Markus. Let's finish the AFF review and then that issue can be look at during the UX Review. Let's leave this Thread open.
On your end @WUEHR , please delete the url field. We will find a more fitting solution to display this url.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I deleted the URL field. Not much left then in the UI :D
May I request a UX Review where we could discuss where to put the URL field?

@huber-nicolas huber-nicolas added the ux-review ready AFF is ready for UX review label Jun 17, 2025
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 ux-review ready AFF is ready for UX review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants