Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Odata: MPC generated with Syntax error

0 Kudos

Hi,

I have created 2 entity namely

Sales Order Header
Sales Order Item

And one association in between with Vbeln as common key.

All the properties were created manually and not imported from DDIC table or RFC .

When i am trying to generate runtime object, i am getting the following error.

"Internal error occured.

MPC "Zcl_zsalesorder_mpc" generated with Syntax errors."

I have already checked the below link. https://archive.sap.com/discussions/thread/3679990

None of the solution suggested works.

Please help.

  • SAP Managed Tags:
1 ACCEPTED SOLUTION

HI,

I found the error. Instead of giving fields while creating properties, i had used different name.

When i interchanged the values in Fields and Name, i am able to regenerate runtime objects.

Thanks,

Archana Ramalingam.

  • SAP Managed Tags:
1 REPLY 1

HI,

I found the error. Instead of giving fields while creating properties, i had used different name.

When i interchanged the values in Fields and Name, i am able to regenerate runtime objects.

Thanks,

Archana Ramalingam.

  • SAP Managed Tags: