Skip to content
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

generator does not generate rap unbound operations #4543

Open
qby-ankul opened this issue Mar 6, 2024 · 4 comments
Open

generator does not generate rap unbound operations #4543

qby-ankul opened this issue Mar 6, 2024 · 4 comments
Labels
feature request Requests for new functionality

Comments

@qby-ankul
Copy link

Describe the bug
Based on my question in the SCN I tried to create a RAP client with the generator. The action in the RAP service is defined static. However, no operation is generated.

To Reproduce
Steps to reproduce the behavior:

  1. create unbound operation in RAP
  2. generate client
  3. no operation generated

Expected behavior
generated operation

Screenshots
If applicable, add screenshots to help explain your problem.

Used Versions:

Code Examples
If applicable, add code snippets as examples to help explain your problem. Please remove sensitive information.

Log file
If applicable, add your log file or related error message. Again, please remove your sensitive information.

Impact / Priority

Affected development phase: Development

Impact: Impaired, workaround in scn question

Timeline: eg. Go-Live is in 12 weeks.

Additional context
Add any other context about the problem here.

@qby-ankul qby-ankul added the bug Something isn't working label Mar 6, 2024
@marikaner
Copy link
Contributor

Hey @qby-ankul,

am I understanding correctly, that you are trying to generate a client for an OData service? Can you share a minimal example of the EDMX file that you have issues with?

@qby-ankul
Copy link
Author

Hi @marikaner

Exactly, that is my intention.
gw_client_data_8B11E81A8DA41EEEB6F40E7D84378FFB.txt
Attached is a definition based on a RAP service with an unbound operation. However, the metadata contains Bound.

@marikaner
Copy link
Contributor

@qby-ankul, the service you shared has an action with an entity parameter. Unfortunately, this is currently not supported and occurs quite rarely as far as I know.
As this is a service you are building on your own, as a workaround you could pass the id of the entity instead of the entity itself.
Let me know if this would work for your.

@marikaner marikaner added feature request Requests for new functionality and removed bug Something isn't working labels Mar 7, 2024
@qby-ankul
Copy link
Author

Hi @marikaner,

This is a RAP (ABAP) service with an unbound action, i.e. it has no ID. Is there a reason why unbound operations are not supported? Especially in view of the fact that SAP is pushing RAP further and further, corresponding use cases are certainly becoming more and more common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants