Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get HTTP headers from Data Provider Class?

Hi,

I'm the beginner in SAP NetWeaver Gateway. Using Service Builder I created CRUD OData web service and implemented CRUD operations in Data Provider Class. Data Provider Class has methods like MYENTITY_GET_ENTITYSET, MYENTITY_GET_ENTITY, MYENTITY_CREATE_ENTITY, MYENTITY_UPDATE_ENTITY. How can I get HTTP headers from the methods of this Data Provider Class?

Tags:
Former Member
Former Member replied

You can do so by using the following code in DPC

Data :  Lo_facade type ref to /IWBEP/IF_MGW_DP_INT_FACADE.

lo_facade     ?= /iwbep/if_mgw_conv_srv_runtime~get_dp_facade( ).

lt_client_headers = lo_facade->get_request_header( ).



Regards,

Atanu

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question