Difference in Fault message types & exceptions for Webservice in ABAP
Hello all,
I am relatively new to the web service framework in SAP. My problem scenario is as follows.
I have a WSDL file of a webservice from 3rd party non-SAP s/w and I want to replicate the same webservice into SAP by creating FM in SE37 with same imp/exp parameters and functionality.
So I first created a consumer proxy using the external WSDL file of non-SAP webservice. This generated imp/exp DDIC structures in SAP. Now I created a RFC FM in SE37 with similar Imp/exp parameters and relesed this FM as a webservice. I then created another consumer proxy using WSDL of this newly created webservice in SAP.
In the old consumer proxy I see a structure as SOAPFault as a Fault message type which has 3 fields ERRORCODE, TEXT, DETAILS but in the newly created consumer proxy I don't see Fault message types but i see exceptions which i mentioned in exception tabs while creating the FM. The imp/exp parameters are identical.
So my question is while creating a web service in SAP using a FM in SE37, what needs to be done in order to get the Fault message types getting created automatically when we create a consumer proxy for this webserivice?
Also based on the WSDL of 3rd party system , can i replicate the same web service in SAP ?
Appreciate your expert advice on this.
BR
Nilesh Puranik
Hi Krishna,
I've read the SAP description about Fault Message Types but I'm still struggling on how to use them correctly.
Why do we need them if I can't do nothing with it on the BPM side? After the mapping of the FMT, I'd like to acess it so that I can send a description back to the original system...The thing is, in BPM you can't acess the FMT, you can only create a new BRANCH (on a block step) for it...
I've tried to acess the description text on trace which comes with the message, but it seems that the trace only serves for posting info, and not for getting any...
The Mapping Runtime Constants have some information where you can read some descriptions, but nothing related to the errors....You can read the Receiver service, sender, interface_namespace, but nothing from the ERROR tag...
Is there a way to get the description? Or anything related to the error tag?
Thanks in advance
Similar Messages
-
Regarding mandatory fields, Context Objects and Fault Message Types
Hi All,
1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.
2) What is the purpose of Context Object and in which situation we will use this.
3) What is the purpose of Fault Message Types and in which situation we will use this.
4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.
Kindly look into the above points and respond point by point.
Thanks in advance.
Regards,
Prem.SHi prem,
<b>1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.</b>
give occurence 1..unbounded. for the field name.
<b>2) What is the purpose of Context Object and in which situation we will use this.</b>
If u have multiple receiver system then to determine the reciever u can use context object.....
the alternative of context objetc is X-Path...
Check out these
http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Here is a scenario where context objects were used for BPM
Technical Context Object in ccBPM
Get the details here:
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
Technical Context Objects :
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
A list of the Technical Context Objects names can be found here:
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
Difference between context object and x-path:
diff between context object and x path
<b>3) What is the purpose of Fault Message Types and in which situation we will use this</b>
whenever u want to catch some exception u can use fault message types.Just for a example u r sending some data to SAP system.But due to some reason the R/3 system is down.so in this case if u have implemented fault message ..u can get a error message specifying r/3 is down....
Fault message implementation.
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
How to Guide
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
<b>4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.</b>
there are two transport protocol for File adapter
1)FTP(File transfer protocol)
to know abt FTP check here
http://help.sap.com/saphelp_nw04/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/content.htm
2)NFS(Network File System)
in server :Enter the host name or IP address of the FTP server.
in PORT:Specify the port number of the FTP server.
The default is the standard port for the FTP server (21)
check here
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Regards
BILL
<b>***reward with points if ity helps u!!</b> -
Error handling using fault message type in outbound synchronous ABAP proxy
Hi,
We've a scenario, outbound synchronous ABAP proxy to synchronous SOAP receiver. The requirement is to send multiple records in a single rquest and get response for all the records sent (in the same response message).
Say if I send 10 records from ECC, I should get 10 records as response from SOAP to ECC. But the problem here is, there could be some invalid requests, for which an invalid error status code should be sent as part of response.
Source Structure
Req_Proxy
req (0..unbounded, string)
Response Structure
Resp_SOAP
Resp (0..Unbounded)
respString (0..1, String) (carries the actaul response message)
status code (0..1, String) (carries the status of the response, for ex, 001 (successful), 002 (error))
And now we are planning to make use of Fault Message Type, to track the errors from SOAP (status code 002). But, we are not sure on how to track this for all the requested records. Is it possible to track the errors for all the requested records in a singe call using fault message type? For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 for valid and 2 for invalid accordingly.
Please calrify.
Thanks.
RohitFor eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8
for valid and 2 for invalid accordingly.
Check if you can modify the WSDL structure to include an error node that would get populated incase of invalid entries....this would mean that you get the success and failure details in the single message....also at the proxy-end make the necessary change in your DT.....may be then you do not need to use the fault message...
Regards,
Abhishek. -
Hi,
I search a guide for configuration a "Fault Message Type".
I have read, if there is a mapping error, XI will create a error handling in a xml-file.
But I can not find this file.
Can you help me please?
Thanks.
Regards
StefanHi Stefan,
Exception can be declared in BPM steps like Transform,send,Block and handled in Exception Branch.
TO know more about BPM and its exception go throught this link,
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
Cheers,
Rashmi -
Define fault message type for RFC
Hi,
How can I define the fault message type for RFC so that when I import RFC from another server to XI, I can view this Fault type.
So far I could only see Request and Response type .
ThanksHi Rokie,
Acc. to me by default we are having only request and response mesages for RFC and in case some exception/fault is there the RFC will through this in the response under the Return parameter having msg,id number as sub fields which you can map to fault message type.
Sachin -
Catching Fault Messages when using a webservice
Hi all.
We are using a webservice that looks like this.
nonSAP-system <-> XI <-> SAP
A nonSAP-system asks for some information from a SAP-system. When we get an error of some kind we want to return the errormessage to the nonSAP-system so they will know what went wrong.
For first we want to try to return the errormessage generated in XI or the SAP-system and when we get that to work we want to be able to generate our own faultmessages so we specific what went wrong in the in the call.
We have looked around in the help pages and not getting a good picture on how to do this. Is there anybody who could help me out?
BR
KalleHi,
Check these
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
i have documented a fault message scenario through my blog;
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Handling Web Service SOAP Fault Responses in SAP NetWeaver XI -
/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
check this nice blog also
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
Asynchronus RFC exception handling
XI Alerts are not getting triggered from proxy servers
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-
a258cf083bca
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
Fault Message
Regards
Seshagiri -
Is it mandatory to use a Fault Message Type.
Hi all
I am currently doing a Soap-Proxy synchronous scenario,where by sending an employee id through webservice to SAP ECC ,employee details will be retreived from ECC as a response.
In this scenario, is it necessary to specify the Fault Message Type in the outbound and inbound synchronous Message interfaces and do the corresponding message mapping for Fault message types.
Asvance Thanks,
Ram.Hi ram,
It is not at all mendetary to use Fault message in ur case.Usually it depends upon requirement.If client want's to implement ...u have to use.
generally fault messages are used wen u want to catch some exception viz. ECC server is down,Employee ID does not exist.,No record found for the given EmpID etc....ect.......
See these to know more abt fault message type and its implementation........
Fault message implementation.
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
How to Guide
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
With Integration Scenario
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/52398597-0601-0010-868a-fd95f8061d85
How to Guide - Using Web Service
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
Presentation
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f2ad490-0201-0010-a1bd-81d072f3c5ca
Regards
Biplab
<i>***Reward with points if it helps you!!</i> -
Throwing fault message WebProxy generated over webservices
I have a requirement to throw fault message when ever there is any exception caught in webservice. I have written a xsd for Fault Type and using the same in all webservices. But the problem is when generating webProxy it is generating multiple Fault Message java class for each webservice.
Constraint I want to apply is .. When generating WebProxy for these webservices, it should generate single fault message class for the Fault type.
How to achieve this?
Sample webservice that I have created -
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="UserRegistrationService" targetNamespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" xmlns:tns="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" xmlns:inp1="http://portal.nv.gov/EnterpriseObjects/CBO/PortalAccount" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:flt1="http://portal.nv.gov/EnterpriseObjects/Common" xmlns:out1="http://portal.nv.gov/EnterpriseObjects/CBO/PortalAccount">
- <wsdl:documentation>
<abstractWSDL>http://IN-BLR-SOADEVL.corp.capgemini.com:8001/soa-infra/services/default/UserRegistrationService!2.3/UserRegistrationService.wsdl</abstractWSDL>
</wsdl:documentation>
- <wsdl:types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://portal.nv.gov/EnterpriseObjects/CBO/PortalAccount" schemaLocation="http://10.74.100.28:7001/CoreObjectsLibrary/Schema/v1.0/CBM/PortalAccountCBM.xsd" />
</schema>
- <schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://portal.nv.gov/EnterpriseObjects/Common" schemaLocation="http://10.74.100.28:7001/CoreObjectsLibrary/Schema/v1.0/Primitives/FaultType.xsd" />
</schema>
</wsdl:types>
+ <wsdl:message name="UserRegistrationServiceRequestMessage">
<wsdl:part name="request" element="inp1:SyncPortalAccountCBM" />
</wsdl:message>
- <wsdl:message name="UserRegistrationServiceResponseMessage">
<wsdl:part name="reply" element="inp1:SyncPortalAccountResponseCBM" />
</wsdl:message>
- <wsdl:message name="faultMessage">
<wsdl:part name="fault" element="flt1:Fault" />
</wsdl:message>
- <wsdl:message name="validateUserNameAccountRequestMessage">
<wsdl:part name="request" element="inp1:ValidatePortalAccountUsernameCBM" />
</wsdl:message>
- <wsdl:message name="validateUserNameAccountResponseMessage">
<wsdl:part name="reply" element="inp1:ValidatePortalAccountUsernameResponseCBM" />
</wsdl:message>
- <wsdl:message name="validateEmailIdAccountRequestMessage">
<wsdl:part name="request" element="inp1:ValidatePortalAccountEmailIdCBM" />
</wsdl:message>
- <wsdl:message name="validateEmailIdAccountResponseMessage">
<wsdl:part name="reply" element="inp1:ValidatePortalAccountEmailIdResponseCBM" />
</wsdl:message>
- <wsdl:message name="activatePortalAccountRequestMessage">
<wsdl:part name="request" element="inp1:ActivatePortalAccountCBM" />
</wsdl:message>
- <wsdl:message name="activatePortalAccountResponseMessage">
<wsdl:part name="reply" element="inp1:ActivatePortalAccountResponseCBM" />
</wsdl:message>
- <wsdl:message name="requestMessage">
<wsdl:part name="request" element="inp1:AssociateExistingBusinessRequsetCBM" />
</wsdl:message>
- <wsdl:message name="replyMessage">
<wsdl:part name="reply" element="inp1:AssociateExistingBusinessResponseCBM" />
</wsdl:message>
- <wsdl:portType name="UserRegistrationService">
- <wsdl:operation name="createPortalAccount">
<wsdl:documentation>This operation is used to create a Portal Account.</wsdl:documentation>
<wsdl:input message="tns:UserRegistrationServiceRequestMessage" />
<wsdl:output message="tns:UserRegistrationServiceResponseMessage" />
<wsdl:fault name="PortalAccountFault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="editPortalAccount">
<wsdl:documentation>THis operation is used to update or edit a user portal account.</wsdl:documentation>
<wsdl:input message="tns:UserRegistrationServiceRequestMessage" />
<wsdl:output message="tns:UserRegistrationServiceResponseMessage" />
<wsdl:fault name="PortalAccountfault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="validateUserName">
<wsdl:documentation>This operation is used to validate whether a username is unique or not.</wsdl:documentation>
<wsdl:input message="tns:validateUserNameAccountRequestMessage" />
<wsdl:output message="tns:validateUserNameAccountResponseMessage" />
<wsdl:fault name="PortalAccountfault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="validateEmailId">
<wsdl:documentation>This operation is used to validate whether a emailid is unique or not.</wsdl:documentation>
<wsdl:input message="tns:validateEmailIdAccountRequestMessage" />
<wsdl:output message="tns:validateEmailIdAccountResponseMessage" />
<wsdl:fault name="PortalAccountfault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="activateUserProfile">
<wsdl:documentation>This operation is used to activate a user account in Portaldatabase.</wsdl:documentation>
<wsdl:input message="tns:activatePortalAccountRequestMessage" />
<wsdl:output message="tns:activatePortalAccountResponseMessage" />
<wsdl:fault name="PortalAccountfault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="Authenticate">
<wsdl:documentation>This operation is used to authenticate and create account in TAX, UCM and eSoS.</wsdl:documentation>
<wsdl:input message="tns:requestMessage" />
<wsdl:output message="tns:replyMessage" />
<wsdl:fault name="Authenticatefault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="forgotUserName">
<wsdl:documentation>This operation is used to send username to a registered Email-Id.</wsdl:documentation>
<wsdl:input message="tns:UserRegistrationServiceRequestMessage" />
<wsdl:output message="tns:UserRegistrationServiceResponseMessage" />
<wsdl:fault name="fault" message="tns:faultMessage" />
</wsdl:operation>
- <wsdl:operation name="changePassword">
<wsdl:documentation>This operation is used to change password on OIM..</wsdl:documentation>
<wsdl:input message="tns:UserRegistrationServiceRequestMessage" />
<wsdl:output message="tns:UserRegistrationServiceResponseMessage" />
<wsdl:fault name="fault" message="tns:faultMessage" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="UserRegistrationServiceBinding" type="tns:UserRegistrationService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="createPortalAccount">
<soap:operation style="document" soapAction="createPortalAccount" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="PortalAccountFault">
<soap:fault name="PortalAccountFault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="editPortalAccount">
<soap:operation style="document" soapAction="editPortalAccount" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="PortalAccountfault">
<soap:fault name="PortalAccountfault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="validateUserName">
<soap:operation style="document" soapAction="validateUserName" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="PortalAccountfault">
<soap:fault name="PortalAccountfault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="validateEmailId">
<soap:operation style="document" soapAction="validateEmailId" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="PortalAccountfault">
<soap:fault name="PortalAccountfault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="activateUserProfile">
<soap:operation style="document" soapAction="activateUserProfile" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="PortalAccountfault">
<soap:fault name="PortalAccountfault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="Authenticate">
<soap:operation style="document" soapAction="Authenticate" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="Authenticatefault">
<soap:fault name="Authenticatefault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="forgotUserName">
<soap:operation style="document" soapAction="forgotUserName" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="fault">
<soap:fault name="fault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
- <wsdl:operation name="changePassword">
<soap:operation style="document" soapAction="changePassword" />
- <wsdl:input>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" namespace="http://xmlns.oracle.com/UserRegistrationApp/UserRegistrationService/UserRegistrationService" />
</wsdl:output>
- <wsdl:fault name="fault">
<soap:fault name="fault" use="literal" encodingStyle="" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="UserRegistrationService">
- <wsdl:port name="UserRegistrationService" binding="tns:UserRegistrationServiceBinding">
<soap:address location="http://10.74.100.28:8001/soa-infra/services/default/UserRegistrationService/UserRegistrationService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks,
RajdeepHi Frank,
In response to " the web service proxy doesn't generate the methods but exposed the WS port for you" .
There is a operation getAllDepartments() in your WebService.
I referred to link provided and in Class WsPrxyWrapperBean.java -
there is a method getAllDepartments() where wsport.getAllDepartments() is called to return the Departments.
In the WSDL i have provided the operation is supposed to return a responseDataType ... but Proxy created is not having any method like that.
I hope I made it more clear this time. Or Just creating a WebProxy on top the provided WSDL will show that Port is not having the proper methods.
Thanks,
Rajdeep -
Doubt on technical systems and fault message types
Hi,
I had still doubt & i'm not clear to answers i got yesterday , plz clarify my doubts
1.what are fault message types and how do we catch any exceptions in file to proxy scenario , can any one give simple example ?
2.How do we register a non-sap system(FTP SERVER) in SLD ? what steps should we follow? Does any one have blogs regarding this?
Plz answer to this questions, good answers will be rewarded.Hi Smitha,
<i>1. what are fault message types and how do we catch any exceptions in file to proxy scenario , can any one give simple example</i>
Fault Message are Msg type that provided whenever u create a namespace..they are usually used to get the exception or error mapped which has occured while execution of Application at the sender/receiver end....
One scenario where i had used it from Soap to RFC where i defined the exception in rfc source code at r/3 end...I mapped that exception to Fault msg type that i created of my own type(didnt used the default)..
Refer this for Fault msg usage in Asynch scenarios.
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Refer this for Fault msg usage in Synch scenarios.
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
Refer this for Handling Exceptions
http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
<i>2.How do we register a non-sap system(FTP SERVER) in SLD ? what steps should we follow? Does any one have blogs regarding this?</i>
For this you have to define the 3rd Party TS & BS in sld.
Have a look at the following links...
http://help.sap.com/saphelp_nw04s/helpdata/en/fa/0aad3efa11b300e10000000a114084/frameset.htm
Cheers...
Vasu
<b>** REward POints if found useful **</b> -
Fault message types: Why do we need them?
Hi guys,
I have a bpm scenario created, tested and working.
This bpm starts with a async receive, a Sync Send to a R3 system by an ABAP proxy and a final async send to the original system.
I'm contemplating exception handling and other type of errors. Meaning, if the abap proxy dumps I can raise an exception and map it on the XI environment. The thing is, on sxmb_moni I get the exception handler, with the exception texts, id's, etc... from the R3 being mapped to the XI fault message type.
But the problem is I can't get to map the text from the fault message type into any field from the response of the original system.
I've searched the forum and I've seen that this area is surrounded by doubts and questions...
But in the end I'm forced to place the question, why do I need the fault message types? What use can I give them, besides of the cute little thunder on the sxmb_moni?
Thanks for your attention guysHi Krishna,
I've read the SAP description about Fault Message Types but I'm still struggling on how to use them correctly.
Why do we need them if I can't do nothing with it on the BPM side? After the mapping of the FMT, I'd like to acess it so that I can send a description back to the original system...The thing is, in BPM you can't acess the FMT, you can only create a new BRANCH (on a block step) for it...
I've tried to acess the description text on trace which comes with the message, but it seems that the trace only serves for posting info, and not for getting any...
The Mapping Runtime Constants have some information where you can read some descriptions, but nothing related to the errors....You can read the Receiver service, sender, interface_namespace, but nothing from the ERROR tag...
Is there a way to get the description? Or anything related to the error tag?
Thanks in advance -
Automizing error message with Fault Message Type
(Request F6) (Request F6)
System -
> XI -
> SAP (Doesn't have F6)
<-- XI <--
SAP (Doesn't have F6)
(Respons: error) (Respons. error)
(Problem) When the request message doesn't content sufficient information that is required for respons then the XI team will get the message error and the responsibility to solve the problem. In this scenario it is the XI team that sends the error respons to the System.
(Request (eg. F6) ) (Request (eg. F6))
System -
> XI -
> SAP (Doesn't have F6)
<-- XI <--
SAP (Doesn't have F6)
(Respons: error) (Respons. error)
(Solution) We want to automatize the process so that the error message goes directly to the System via XI. In other words we only want an acknowledgment of the error in XI, we don't want to solve the error since we believe that it is the sender System that is responsible.
We have seen that there is a Fault Message Type in the Message Interface and we are wondering if that is the way to do it? And it that case, how?Hi,
Fault message is a error meesage. Its like an exception in simple terms. The fault message is used to
store a log for application error. Fault messages is defined in IR.
To give a overview on Fault messages it is mostly used in synchronous communication. When an error
occurs at the inbound side instead of sending the response message back it sends a fault message back
to the sender system to handle error.
Fault Message are Msg type that provided whenever u create a namespace..they are usually used to get
the exception or error mapped which has occured while execution of Application at the sender/receiver
end....
One scenario where i had used it from Soap to RFC where i defined the exception in rfc source code at
r/3 end...I mapped that exception to Fault msg type that i created of my own type(didnt used the
default)..
Fault messages are used to propogate / send back the error message to the calling application. This is
used when there is a failure and the sending system needs to know what the error was. This is more of
catching Application Errors
check this nice blog also
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
Asynchronus RFC exception handling
XI Alerts are not getting triggered from proxy servers
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-
a258cf083bca
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
Fault Message
Regards
Seshagiri
Edited by: N V Seshagiri on Feb 29, 2008 12:19 PM -
Alert and Fault Message type Usage
Hi All,
I struck to the use of Alert and Fault message type.
(a) Can we use Alert in scenarios without BPM ? If yes where can we use?
(b) Can we use Fault Message Type in scenarios except Proxy ? If yes, how?
Kindly suggest me .
Thanks
AnupHi Rabi,
In order to use Alert for your File to File scenario, you need to setup Alert Configuration.
To configure alerts, you need to create the following:
1. Alert Categories in tcode ALRTCATDEF
- Here you need to define the alert message that will be sent once error occured and alert has been triggered. You would need to define here the recipients who will receive email notifications about the error message.
2. Alert Rules in Runtime Workbench
- Here you need to define which alert category you would use based on the rules you set. You can define if the error is in the Integration Engine or in Adapter Engine (for errors in File Communication channels). Also, you need to define condition for the alert by selecting the sender and receiver systems, interfaces that would be involved for the alert.
For further details, you may look the SAP documentation:
http://help.sap.com/saphelp_nwpi711/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
Regards,
Jenny -
What is fault message type in mapping
hi folks,
what is the use of fault message type in message mapping . where do we use them .please spare a little time to type rather to refer to other blogs. have a nice dayHi Bose
Fault messages are used to propogate / send back the error maessage to the calling application. This is used when there is a failue and the sending system needs to know what the error was. This is more of catching Application Errors.
Also please go through the link below to get the details for fault messages...
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
fault message is a message that describes an application-specific error situation
we have standardised fault message in XI.
Fault message types are designed for application-specific errors that occur on the inbound side and that are reported back to the sender or persisted in monitoring.
In the synchronous case, when an application-specific error occurs on the inbound side, instead of sending a response message back to the sender, the application can send a fault message to handle the error.
The fault message of the application for an asynchronous ABAP server proxy is persisted for monitoring. In the case asynchronous of Java server proxies, the fault message is part of a negative application acknowledgement
Application-specific means that the application on the inbound side triggers the error itself because, for example, the request message did not contain sufficient information
See the below links
http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
Asynchronus RFC exception handling
XI Alerts are not getting triggered from proxy servers
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-a258cf083bca
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
Fault Message
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
You can use Fault messages when you want to handle errors at the Inbound side ie at the destination side.
check this nice blog also
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Fault Messages
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
Usage of Fault Messages in Synchronous interfaces
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
usage of fault messages in asynchronous interfaces
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Have a look at "/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client"
for more details have a look on these links
<b>
Fault messages -</b> /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Also ref:
<b>Handling Web Service SOAP Fault Responses in SAP NetWeaver XI -</b>
/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
check this out
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
demo - /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1 - this is sure to help you.
Thanks!!!
Regards
Abhishek Agrahari -
Hi experts
i have a following scenario. the scenario is SOAP to XI to ECC, and from XI to ECC RFC's are being used. i have doubt about the fault message types?
what are fault message types and why should they be created???
for the above required scenario does"fault message types are to be created or not" plz let me know.
Thanx in advanceHi,
>>ii have doubt about the fault message types? what are fault message types and why should they be created???
According to help.sap.com http://help.sap.com/saphelp_nwpi71/helpdata/EN/dd/b7623c6369f454e10000000a114084/content.htm
Fault message types are designed for application-specific errors that occur at the provider (inbound side) and that are reported back to the sender or persisted in monitoring.
1) In the synchronous case, when an application-specific error occurs on the inbound side, instead of sending a response message back to the sender, the application can send a fault message to handle the error.
2) The fault message of the application for an asynchronous ABAP server proxy is persisted for monitoring. In the case asynchronous of Java server proxies, the fault message is part of a negative application acknowledgment (see Acknowledgments).
>>for the above required scenario does"fault message types are to be created or not" plz let me know.
You can send the exception of RFC in Fault message type. (Provided the RFC raises an exception)
Regards
Suraj -
Can someone tell me the different types of fault message types available in XI?
Hi,
Fault Message Types
are used only for returining messages form the inobund side (application)
http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm
if you want to create error handling for a mapping
you can use transformation step (in a BPM)
add a block and catch the mapping error inside this block
(and for instance send a file from this exception branch
Refernces Fault message types for the Exception handling .
Fault message types corresponding to the standard SOAP Fault type can be included (execepted in the outbound Asynchronous case)
A fault message is a message that describes an application-specific error situation.
Fault message types are designed for application-specific errors that occur on the inbound side and that are reported back to the sender or persisted in monitoring.
· In the synchronous case, when an application-specific error occurs on the inbound side, instead of sending a response message back to the sender, the application can send a fault message to handle the error.
· The fault message of the application for an asynchronous ABAP server proxy is persisted for monitoring. In the case asynchronous of Java server proxies, the fault message is part of a negative application acknowledgement (see Acknowledgments).
Application-specific means that the application on the inbound side triggers the error itself because, for example, the request message did not contain sufficient information.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
Please see the below links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-a258cf083bca
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Thanks
Swarup
Edited by: Swarup Sawant on Mar 28, 2008 3:05 PM
Maybe you are looking for
-
I have a pc running windows 7. I got an Airport Extreme 802.11n Wi-Fi and the printer is now plugged into the Airport. The Airport works fine but the printer shows as offline in control panel and in word. The printer is a HP LaserJet CP1525nw.
-
Data from Front end to Back end of ALV Grid
Hi Experts, I developed interactive ALV for maintaining master data for some BW Objects. I also included custom F4 for all fields. Problem: When entered new record or modified a record by using F4 help of fields, it doesn't work properly. For collect
-
Populating a ComboBox from DB query
Hello – I have created a ComboBox to allow users to choose a category as a filter for a products catalog. The list of categories is returned by one of the functions of a ColdFusion CFC I'm using in the app; it has been tested and examined in the debu
-
Illegible concersions from PDF to Word
My pdfs recently converted to docx format in Word for Mac (runing Yosemite) are in unreadable characters. Does anyone have an idea of how to reproduce these files so they can be cut and pasted? Otherwise this $23 a year is going to be a big waste. T
-
Does Game Center is has its server india?
If yes then why on playing mutliplayer game it says "Unable to connect to match making server" in every device for every account? I m trying to play fruit ninja with my two of devices but they always give the same error. Please help me out.