on 05-22-2006 8:32 AM
I config the RFC\Webservice comply with the manual (SOAP RUNTIME HELP). When i use sap soap client to test the webservice with RFC function "STFC_CONNECTION".
It works fine. But when i test RFC function "MM_MATERIALS_FOR_GROUP". I found that the table is not filled in Soap Response as follows.
SOAP Response:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<rfc:MM_MATERIALS_FOR_GROUP.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<T_MATERIALS xmlns=""></T_MATERIALS>
</rfc:MM_MATERIALS_FOR_GROUP.Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I think the correct response should be:
<T_MATERIALS>
<item>
<MATNR>...</MATNR>
<MAKTX>...</MAKTX>
<MEINS>...</MEINS>
</item>
...
</T_MATERIALS>
The function "MM_MATERIALS_FOR_GROUP" work fine in SE37
How can i resolve this problem. The return table is so important to our application.
SOAP Request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<rfc:MM_MATERIALS_FOR_GROUP xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<I_LANGUAGE></I_LANGUAGE>
<I_MATERIAL_GROUP>A001</I_MATERIAL_GROUP>
<I_PLANT>3600</I_PLANT>
<T_MATERIALS/>
</rfc:MM_MATERIALS_FOR_GROUP>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-
SAP KERNEL VER 1509
WAS620 Support Package 42
HP-UNIX IA 64
Hi Jun,
Have you provided proper input parameter values to this function module, when you calling as a web service?
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun,
Yes you have tested your function module in se37 and it works fine.
But when you are testing your web service, have you provided all the input parameters?
I guess, when you are calling web service, input parameters are not set properly. So, without input parameters it returns empty table.
Regards,
Bhavik
Hi Bhavik,
I set the input parameter in soap request like this:
<rfc:MM_MATERIALS_FOR_GROUP xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<I_LANGUAGE></I_LANGUAGE>
<I_MATERIAL_GROUP>A001</I_MATERIAL_GROUP>
<I_PLANT>3600</I_PLANT>
<T_MATERIALS/>
</rfc:MM_MATERIALS_FOR_GROUP>
But I doubt how to set the table parameter in soap request. I put the word "<T_MATERIALS/>
" according instruction of SAP notes 585334.
Could you test above code with sap soap client in your sap system, I doubt there are some incorrect configure in my company's system.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.