cancel
Showing results for 
Search instead for 
Did you mean: 

Raise an exeption

Former Member
0 Kudos

I am calling af funcion module using a webservice .

This function module is supposed to update a user. If user can not be updated an exception is raised and a tabel containing errors are sent back.

My problem in XI is that i do not recieve the error messages only exceptions whih is not so informative.

<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:Z_ISA_USER_DELETE.Exception xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

<Name>EXC_USER_NOT_UPDATED</Name>

<Text>EXC_USER_NOT_UPDATED</Text>

</ns0:Z_ISA_USER_DELETE.Exception>

Why do i not also recieve the table containing the the error ( the mapping program has been done)

Kind regards.

Ugur

Accepted Solutions (0)

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

Why dont u try making use of the fault message type ?

Go thru my blog that sud give u a better idea. Also in the comments section there are more links to further blogs on the same topic -

/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1

prabhu_s2
Active Contributor
0 Kudos

try using fault messages types. hope it shud help

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

try creating a wrapper on your function module

(put it inside another function module)

that will handle the expection and return just the tables

(don't use exceptions in the wrapper function module)

Regards,

michal