<?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>topic Re: Problem with Web Service in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507415#M1748056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got the answer , please mark the question Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 11:18:09 GMT</pubDate>
    <dc:creator>jitendra_it</dc:creator>
    <dc:date>2013-06-28T11:18:09Z</dc:date>
    <item>
      <title>Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507408#M1748049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a strange problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exposed a function module as a web service. It returns a list of material numbers.&lt;/P&gt;&lt;P&gt;When I execute it in SAP, it works fine. But when the external application (a ruby program) calls the web service it returns the table as blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the structure “BAPIMATLST” and passing the data under the Tables tab of function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507408#M1748049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T11:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507409#M1748050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try to check and replace your RFC in below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class SapMaterial &amp;lt; &lt;SPAN style="color: #ff0000;"&gt;SAP4Rails::NW::Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function_module :RFC_READ_TABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp; class &amp;lt;&amp;lt; self&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def find_stock(options={})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; material = options[:material]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return nil if material.blank?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc = self.RFC_READ_TABLE.&lt;SPAN style="color: #ff0000;"&gt;new_function_call&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc.QUERY_TABLE = "yourtable"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc.DELIMITER = "|"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc.OPTIONS = &lt;SPAN style="color: #ff0000;"&gt;[{'TEXT' =&amp;gt; "MATNR EQ '#{material}'"}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # optional set of fields to return from the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #rfc.FIELDS = [{'FIELDNAME' =&amp;gt; 'MATNR'}, {'FIELDNAME' =&amp;gt; ...}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc.&lt;SPAN style="color: #ff0000;"&gt;invoke&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfc.&lt;SPAN style="color: #ff0000;"&gt;DATA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507409#M1748050</guid>
      <dc:creator>former_member213275</dc:creator>
      <dc:date>2013-06-25T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507410#M1748051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever we create any web service for Material no,Sales Order no,PO no etc based search scenarios,if such a web services are used by other systems like JAVA,.NET in your case Ruby the leading zeros also need&amp;nbsp; to be passed to those fields in external system .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&amp;nbsp; lets take Material no in SAP D.B as '000000000000001111'&amp;nbsp; if we run web service inside SAP system and pass MATNR as '1111', internally web service will automatically convert '1111' into '000000000000001111'&amp;nbsp; because of conversion routines which are inside R/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But where as in external system consuming web service if we pass just '1111' the Web service will not automatically convert into leading zeros format so we need to pass MATNR along with leading zeros as input parameter to webservice as '000000000000001111' then it will execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try again your web service passing leading zeros.If it works then handle adding leading zeros functionality by calling conversion routines for MATNR inside the F.M itself..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nandi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507410#M1748051</guid>
      <dc:creator>former_member197425</dc:creator>
      <dc:date>2013-06-25T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507411#M1748052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gopal S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for the leading zeros as suggested by Nandi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For tracking what is coming in SAP and what is going out of SAP , you can use transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRT_UTIL. here you will get all the calls to SAP via Web service(Provider + Consumer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Jitendra Soni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507411#M1748052</guid>
      <dc:creator>jitendra_it</dc:creator>
      <dc:date>2013-06-26T07:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507412#M1748053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The web service is called using leading zeros. moreover I have also added a conversion routine before i query the table. I am able to debug it through external break point. The data is in the table till it leaves the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507412#M1748053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-26T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507413#M1748054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The data is in the table till it leaves the function module.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Tables' tab in FM builder is SAP design for handling tables. It may be possible that your third party system Ruby is not identifying it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it : Remove parameter from Tables tab and add a Table type parameter under 'Export' tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Jitendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 08:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507413#M1748054</guid>
      <dc:creator>jitendra_it</dc:creator>
      <dc:date>2013-06-27T08:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507414#M1748055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jitendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes this works. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 11:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507414#M1748055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507415#M1748056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got the answer , please mark the question Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 11:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507415#M1748056</guid>
      <dc:creator>jitendra_it</dc:creator>
      <dc:date>2013-06-28T11:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507416#M1748057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing this issue even after putting the table as export parameter...please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 03:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507416#M1748057</guid>
      <dc:creator>former_member214330</dc:creator>
      <dc:date>2014-09-04T03:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507417#M1748058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Unnati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test your webservice with tooll like SOAP UI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 03:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507417#M1748058</guid>
      <dc:creator>former_member249399</dc:creator>
      <dc:date>2014-09-04T03:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Web Service</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507418#M1748059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjana ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; Until now i had been testing the web service from SOAP UI in our corporate network which gets the response as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A third party , trying to test it&amp;nbsp; using chrome poster , get the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/548011" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then decided to test it from&amp;nbsp; an external network (on SOAPUI) and below is the error i am receiving&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/547966" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a lot to search about this error. Cant find what the problem is .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also , id like to mention , previously there was a similar web service which has been consumed and is working fine , but receives the same response if tested from&amp;nbsp; SOAP UI from an external network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Unnati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 05:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-web-service/m-p/9507418#M1748059</guid>
      <dc:creator>former_member214330</dc:creator>
      <dc:date>2014-09-24T05:48:53Z</dc:date>
    </item>
  </channel>
</rss>

