cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with GET_EXPANDED_ENTITYSET Method in Sap Odata. getting XML_FORMAT_ERROR Runtime error

babu4abap
Explorer
0 Kudos

error-1.jpgerror-2.jpgerror-4.jpgerror-5.jpgHi Everyone,

I have implemented Get_expanded_entity and get_expanded_entityset methods. i am getting result via Get_expanded_entity method . but facing issues while working with GET_EXPANDED_ENTITYSET method.

Since i am passing both primary and non primary keys using filters i have implemented GET_EXPANDED_ENTITYSET method and written logic. Data is moving to ER_ENTITYSET properly and navigation moving to et_expanded_tech_clasuses. But i am getting 500 internal error and when i checked in ST22 i got "The XML document that was read had an invalid format."

I didnt find any solution for this. please help me to resolve this error.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Dorababu,

Can you please check whether the key relationship has maintained according to the cardinality you have maintained

Regards,

Toney C Benoy

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dorababu,

do the expand statments work if you are not using your self implemented methods but rather using the generic $expand that is provided by the SAP Gateway Framework?

Regards,

Andre