Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Reading HTTP Headers of Request in PUT method

$
0
0

Hi All,

 

We are able to read HTTP Headers of request in POST method, but not in PUT method.

 

in POST method (zentitySet_CREATE_ENTITY), we are able to read HTTP headers of request using following code.

    DATA: lt_request_header TYPE tihttpnvp,

          ls_request_header TYPE ihttpnvp.

    lt_request_header = me->mr_request_details->*-technical_request-request_header.

    READ TABLE lt_request_header INTO ls_request_header WITH KEY name = 'headername'.

 

 

Reading HTTP Headers, in PUT method (zentitySet_UPDATE_ENTITY), although the above code is comipling properly, it is giving runtime error

SYSTEM_DATA_ALREADY_FREE

Accessing data that has already been released is not permitted.

 

 

in PUT method, how can we get reference to request_header table.

 

thanks,

Madhu_1980


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>