<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: HTTP method not allowed error from Gateway in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318088#M3311862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Steven&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the same in REST client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For POST you don't have to pass any value with the service&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sap/opu/odata/SRSMOB/STORE_OPERATIONS/SaveCountingLineItemList&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;2. Add CSRF token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;3. Pass values in Body&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"docId":"300000314",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"fiscalYear":"2013"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Arun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Mar 2013 07:54:38 GMT</pubDate>
    <dc:creator>arunchembra1</dc:creator>
    <dc:date>2013-03-02T07:54:38Z</dc:date>
    <item>
      <title>HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaq-p/9318086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test my odata service in GW Client(/IWFND/GW_CLIENT), it always says “&lt;SPAN style="font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;The specified HTTP method is not allowed for the resource identified by the Data Service Request URI&lt;/SPAN&gt;”. (&lt;SPAN style="color: red;"&gt;it works well with &lt;STRONG&gt;sdata&lt;/STRONG&gt;&lt;/SPAN&gt;). I cannot figure it out and we are blocked. can anyone help me here? thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;here are the information about my implementation and testing env, I implemented an action to save counting document. &lt;/P&gt;&lt;P&gt;Here is the CountingDoc entity and return entity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*----------------------------------------------------------------------------------&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;* Entity: Counting Document header&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_entity_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;model&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_entity_type&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CountingDoc' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"#EC NOTEXT&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'countingID'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PHYSINVENTORY'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_is_key&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'fiscalYear'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'FISCALYEAR'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_is_key&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'siteID'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PLANT'&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'stgeLocID'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'STGE_LOC'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;bind_structure&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'/SRSMOB/STOP_COUNTING_DOC' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;set_creatable&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_true &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&amp;nbsp; lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_updatable&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_true &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&amp;nbsp; lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_deletable&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_true &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S31"&gt;*----------------------------------------------------------------------------------&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;* Entity: ExecutionMessage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_entity_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;model&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_entity_type&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ExecutionMessage' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"#EC NOTEXT&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'type'&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TYPE'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_is_key&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'id'&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ID'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_is_key&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_entity_type&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;create_property&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;iv_property_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'number'&amp;nbsp; &lt;/SPAN&gt;iv_abap_fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'NUMBER'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lo_property&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_is_key&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;Note: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Here is the POST action in the model,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lo_action &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;create_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'SaveCountingLineItemList' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;). &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;"#EC NOTEXT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;SET_HTTP_METHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/iwbep/if_mgw_med_odata_types&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;gcs_med_http_methods&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;POST &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;set_return_entity_type&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'ExecutionMessage' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;set_action_for&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'CountingDoc'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;set_return_multiplicity&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/iwbep/if_mgw_med_odata_types&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;gcs_cardinality&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;cardinality_1_n &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; lo_parameter &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;create_input_parameter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;iv_parameter_name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'countingID' &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;iv_abap_fieldname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'PHYSINVENTORY'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_parameter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;bind_data_element&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'/SRSMOB/STOP_VALUE_CHAR' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; lo_parameter &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;create_input_parameter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;iv_parameter_name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'fiscalYear' &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;iv_abap_fieldname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'FISCAL_YEAR'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp; lo_parameter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;bind_data_element&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'/SRSMOB/STOP_VALUE_CHAR' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn’t paste the runtime code here since the request never reaches there and sdata works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using GW Client (&lt;SPAN style="background: white; color: #333333; font-size: 9pt;"&gt;/IWFND/GW_CLIENT&lt;/SPAN&gt;) to do the testing.&amp;nbsp; No ~CHECK_CSRF_TOKEN&amp;nbsp; is set. So CSRF security is enabled and I don’t need to worry about this security token since I am using GW Client. My url and error looks as below.&lt;/P&gt;&lt;P&gt;url: /sap/opu/odata/SRSMOB/STORE_OPERATIONS/SaveCountingLineItemList?docId='300000314'&amp;amp;fiscalYear='2013'&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/191095" width="450" /&gt;&lt;/P&gt;&lt;P&gt;here is the meata data for this function import:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="e"&gt;&lt;/P&gt;&lt;DIV class="c" style="text-indent: -2em; margin-left: 1em;"&gt;&lt;A class="b" href="http://vmw3815.wdf.sap.corp:50009/sap/opu/sdata/SRSMOB/STORE_OPERATIONS/$metadata?sap-client=100&amp;amp;$format=xml"&gt;-&lt;/A&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;FunctionImport&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Name&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;SaveCountingLineItemList&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; ReturnType&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;Collection(STORE_OPERATIONS.ExecutionMessage)&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; EntitySet&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;ExecutionMessageCollection&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; m:HttpMethod&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; sap:action-for&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;STORE_OPERATIONS.CountingDoc&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV class="c" style="text-indent: -2em; margin-left: 1em;"&gt;&lt;A class="b" href="http://vmw3815.wdf.sap.corp:50009/sap/opu/sdata/SRSMOB/STORE_OPERATIONS/$metadata?sap-client=100&amp;amp;$format=xml"&gt;-&lt;/A&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Name&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;countingID&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;Edm.String&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Mode&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;In&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV class="c" style="text-indent: -2em; margin-left: 1em;"&gt;&lt;A class="b" href="http://vmw3815.wdf.sap.corp:50009/sap/opu/sdata/SRSMOB/STORE_OPERATIONS/$metadata?sap-client=100&amp;amp;$format=xml"&gt;-&lt;/A&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Documentation&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV style="text-indent: -2em; margin-left: 1em;"&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Summary&lt;/SPAN&gt; &lt;SPAN class="m"&gt;/&amp;gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="e"&gt;&lt;/P&gt;&lt;DIV style="text-indent: -2em; margin-left: 1em;"&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;LongDescription&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;Value&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;LongDescription&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Documentation&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="e"&gt;&lt;/P&gt;&lt;DIV class="c" style="text-indent: -2em; margin-left: 1em;"&gt;&lt;A class="b" href="http://vmw3815.wdf.sap.corp:50009/sap/opu/sdata/SRSMOB/STORE_OPERATIONS/$metadata?sap-client=100&amp;amp;$format=xml"&gt;-&lt;/A&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Name&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;fiscalYear&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;Edm.String&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; Mode&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;In&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV class="c" style="text-indent: -2em; margin-left: 1em;"&gt;&lt;A class="b" href="http://vmw3815.wdf.sap.corp:50009/sap/opu/sdata/SRSMOB/STORE_OPERATIONS/$metadata?sap-client=100&amp;amp;$format=xml"&gt;-&lt;/A&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Documentation&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV style="text-indent: -2em; margin-left: 1em;"&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Summary&lt;/SPAN&gt; &lt;SPAN class="m"&gt;/&amp;gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="e"&gt;&lt;/P&gt;&lt;DIV style="text-indent: -2em; margin-left: 1em;"&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;LongDescription&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;Value&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;LongDescription&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Documentation&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;FunctionImport&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 16:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaq-p/9318086</guid>
      <dc:creator>steven_chen2</dc:creator>
      <dc:date>2013-03-01T16:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318087#M3311861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven&lt;/P&gt;&lt;P&gt;This question gets asked a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to POST to a query, you can only POST to a single entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sap/opu/odata/SRSMOB/STORE_OPERATIONS/SaveCountingLineItemList('100000001)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;not&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sap/opu/odata/SRSMOB/STORE_OPERATIONS/SaveCountingLineItemList?docId='300000314'&amp;amp;fiscalYear='2013'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;JSP&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 21:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318087#M3311861</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2013-03-01T21:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318088#M3311862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Steven&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the same in REST client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For POST you don't have to pass any value with the service&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sap/opu/odata/SRSMOB/STORE_OPERATIONS/SaveCountingLineItemList&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;2. Add CSRF token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;3. Pass values in Body&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"docId":"300000314",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;"fiscalYear":"2013"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Arun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 07:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318088#M3311862</guid>
      <dc:creator>arunchembra1</dc:creator>
      <dc:date>2013-03-02T07:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318089#M3311863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arun's answer is correct, I was thinking of the similar question asked last week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 08:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318089#M3311863</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2013-03-02T08:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318090#M3311864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks John and Arun's for your reply. &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Unfortunately&lt;/SPAN&gt;, it's still not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@John, for your answer, "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;You are trying to POST to a query, you can only POST to a single entity.&lt;/SPAN&gt;". I think this is for standard (or default) POST implementation. I am not using the standard UPDATE_ENTITY or CREATE_ENTITY methods. I am using function import. and in my action definition, I have this line "&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;lo_action&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;set_action_for&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt;'CountingDoc'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;". so the action is for one entity. I agree the action name (&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;SaveCountingLineItemList&lt;/SPAN&gt;) is a bit misleading though. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;@Arun, I am using GW Client. This tool takes care of &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CSRF token&lt;/SPAN&gt;. So I don't need to manually add any token. I removed the two parameters and pass them in the body as you described. but still no luck. the same error message. anything I missed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Help is still needed. thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Steven&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 15:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318090#M3311864</guid>
      <dc:creator>steven_chen2</dc:creator>
      <dc:date>2013-03-04T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318091#M3311865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to execute HTTP GET for function imports. I don't think POST is a valid operation if it is function imports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Aakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318091#M3311865</guid>
      <dc:creator>former_member195242</dc:creator>
      <dc:date>2013-03-08T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318092#M3311866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aakash,&lt;/P&gt;&lt;P&gt;POST is a valid operation for function imports. If you check this document "How to write an OData Channel Gateway Service Part 2", there is an example there. but it is in SData. and in my case, my code works well with SData, but not with OData. It seems there's some differences when implementing the POST type of function import in OData. but I couldn't figure out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318092#M3311866</guid>
      <dc:creator>steven_chen2</dc:creator>
      <dc:date>2013-03-08T14:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP method not allowed error from Gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318093#M3311867</link>
      <description>&lt;P&gt;Thanks Arun. I searched a lot for Post Method.&lt;/P&gt;&lt;P&gt;But your answer is perfect.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 11:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-method-not-allowed-error-from-gateway/qaa-p/9318093#M3311867</guid>
      <dc:creator>former_member449933</dc:creator>
      <dc:date>2020-04-19T11:35:42Z</dc:date>
    </item>
  </channel>
</rss>

