cancel
Showing results for 
Search instead for 
Did you mean: 

odata create_entity:server refusing to process request due to unsupported format

former_member592880
Participant
0 Kudos

hello,

I am working on posting comments upon approval. the comments are a string of 255 characters.

I used to the get function to get an output and used the same input for the request and tried executing it but I get an error saying : The server is refusing to process the request because the entity has an unsupported format

i also tried making the type in content type as entry but none seem to work. where have I gone wrong??

create_entity

  DATA: exref      TYPE REF TO cx_root,
          lt_comment TYPE TABLE OF /AAG362/CL_SD_SPECI_01_MPC=>TS_COMMENT,
          ts_comment TYPE LINE OF /AAG362/CL_SD_SPECI_01_MPC=>TT_COMMENT.
    TRY.
        CALL METHOD io_data_provider->read_entry_data
          IMPORTING
            es_data = ts_comment.
      CATCH /iwbep/cx_mgw_tech_exception INTO exref.
    ENDTRY.

entityset

error

regards

Siddharth

Accepted Solutions (1)

Accepted Solutions (1)

VincentBloem
Participant

Your parameter "requestNumber" is a string.

You pass a number.

0000000037 --> "0000000037"

Answers (0)