Skip to Content

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

ODATA - Where to set the Header

Dear All

I have created a Odata service. It is working in browser.

However, It is not accessed from the Jquery Ajax

It is adviced that to include a

ls_header-name = 'Access-Control-Allow-Origin'.

ls_header-value = '<server>:<port>'.

/iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ).


But, I am confused in which method I should add it.

Can Someone help me

My Class name


My mehtod for entityt set GLLISTSET_GET_ENTITYSET

do i need to add it inthis method?



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