Skip to Content

Error in create_stream method

Hi Experts,

I am getting the below error while updating the xstring values in table for create_stream method.

Please help me resolving this issue

code.jpg (130.9 kB)
error.png (320.0 kB)
dump.png (229.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Dec 18, 2017 at 03:51 PM

    Gowtham, It is mostly because you have not filled the export parameter es_attachment.

    Add comment
    10|10000 characters needed characters exceeded

    • thanks for your blog. i have missed the er_entity. now in backend table its get updated but in gateway client i getting the error as 500 internal server error as 'Invalid or no mapping to system data types found'

  • Dec 18, 2017 at 02:48 PM

    Hi,

    Debugger is getting triggered?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 18, 2017 at 03:39 PM

    Hi,

    I don't understand your scenario, why is your code there? What do you have in the GetEntitySet (Query)? GetEntity (Read)? Is that service linked to where?

    Share the whole dump...and maybe what you have done/trying to do, because there are a lot of question marks here...

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 19, 2017 at 03:59 AM

    Hi Gowtham Raja M,

    Could you put an debugger in your create stream method and check if it is getting triggered or not. Also, go through this blog to check if you are doing any mistake.

    Regards,

    Arjun Biswas

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gowtham Raja M,

      This usually happens when your fields in OData and the fields in your SE11 table do not have matching types. I would suggest you to verify the types once, also if there are any date fields, make them null in the entity types section.

      Regards,

      Arjun Biswas.

  • Dec 19, 2017 at 04:37 AM

    Hi Gowtham,

    As mentioned by Krishna, as a rule of thumb you should always fill the exporting parameter er_entity in case of any Create or Update method.

    Framework always expects the created/updated value which shoud be rendered back to UI. Attachments/media is an excpetion here where we export other file attributes Like created by, creation date etc.

    Add comment
    10|10000 characters needed characters exceeded

    • for this error you need to redefine the DEFINE method in <.....>MPC_EXT class and set the mime type property accordingly. Basically system is trying to tell you that the media entity/stream file does not have an associated mime type like pdf,xlsx,doc,etc.

  • Dec 21, 2017 at 10:06 AM

    Yes the answers was helpful, i missed the below step and now it is working fine.

    copy_data_to_ref(
    exporting
    is_data = ls_gow_product
    changing
    cr_data = er_entity ).

    Thanks all for their inputs

    Add comment
    10|10000 characters needed characters exceeded