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: 

Facing unknown internal server error in odata service implementation

Former Member
0 Kudos

Hi

I am trying to create odata service for SAP standard table VBAP.

Successfully created odata service as    /sap/opu/odata/sap/ZSALES_ORDER_SRV_01/ , service document as follows

Next step I did Service Implementation for GET_ENTITYSET, my code-


method SALES_ORDER_GET_ENTITYSET.

     DATA lt_users TYPE TABLE OF VBAP.

     SELECT * FROM VBAP  INTO TABLE lt_users.

     et_entityset = lt_users.

endmethod.

After activating, I tried executing url    /sap/opu/odata/sap/ZSALES_ORDER_SRV_01/sales_order.

getting error as

Please suggest,

Thank You in advance

1 ACCEPTED SOLUTION

ipravir
Active Contributor
0 Kudos

Hi,

Check field declaration in Data Model, all types are well declared or not.

Though VBAP contains Date and some amount Columns, check edm.Core Type for the same.

And also refer 2032088 Note, based on IWBEP conversion issue.

Regards,

Praveer.

2 REPLIES 2

ipravir
Active Contributor
0 Kudos

Hi,

Check field declaration in Data Model, all types are well declared or not.

Though VBAP contains Date and some amount Columns, check edm.Core Type for the same.

And also refer 2032088 Note, based on IWBEP conversion issue.

Regards,

Praveer.

Former Member
0 Kudos

Hi,

please Check following link-

Regards,

Chandan