cancel
Showing results for 
Search instead for 
Did you mean: 

Error in create_stream method

GowthamRaja
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor

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

GowthamRaja
Participant
0 Kudos

Hi,

I have filled the work area with xstring value getting from UI. The upload query is also filled with xstring value after when i execute it is throwing me a dump

Thanks,

Gowtham

GowthamRaja
Participant
0 Kudos

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'

Answers (5)

Answers (5)

GowthamRaja
Participant
0 Kudos

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

former_member185414
Active Contributor
0 Kudos

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.

GowthamRaja
Participant
0 Kudos

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'

former_member185414
Active Contributor
0 Kudos

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.

former_member484715
Contributor
0 Kudos

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

GowthamRaja
Participant
0 Kudos

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'

former_member484715
Contributor
0 Kudos

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.

iftah_peretz
Active Contributor
0 Kudos

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...

GowthamRaja
Participant
0 Kudos

i haven't implemented get_entityset & get_entity. i have created a project type media and i am updating the record with xstring values

iftah_peretz
Active Contributor
0 Kudos

You need to add more code snippets. All the relevant places you placed ABAP in. It seems like some field symbol you are using is not assigned when you are trying to access it.

irfan_gokak
Contributor
0 Kudos

Hi,

Debugger is getting triggered?

GowthamRaja
Participant
0 Kudos

Yes it triggers