Skip to Content

Create operation in ODATA service giving same output - output is not refreshing

Hi Experts,

I am facing issue with create operation in ODATA service. I have imported custom RFC with import & export types as internal table to ODATA service. I have implemented create,get_entity and get_entitysets methods. ODATA service creates record suscessfully at backed but in response it displays still old record.

after debugging the code - found it is calling get_entity method with blank key values because of which old record is getting displayed.

Can you please guide to let me know if I have missed any step?




Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 20, 2020 at 07:19 PM

    What do you mean by "it displays still old record"?

    A create method always creates a new item by definition.

    Only an update method would change an existing value.

    You would have to parse the response of your create method, retrieve the key from there to use it in any subsequent requests.

    And you should not use the depreciated parameters IT_KEY_TAB but use io_tech_request_context instead.

    Best Regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.