Application Development and Automation 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: 
Read only

Facing unknown internal server error in odata service implementation

Former Member
0 Likes
2,263

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
Read only

ipravir
Active Contributor
0 Likes
1,437

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.

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

2 REPLIES 2
Read only

ipravir
Active Contributor
0 Likes
1,438

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.

Read only

Former Member
0 Likes
1,437

Hi,

please Check following link-

Regards,

Chandan