Skip to Content
0
Former Member
Jul 07, 2015 at 09:36 AM

Facing unknown internal server error in odata service implementation

433 Views

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

Attachments

service doc.jpg (167.5 kB)
error.jpg (240.9 kB)