Skip to Content

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

How to get the table from SOAP RFC\web service in AS620.

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

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