cancel
Showing results for 
Search instead for 
Did you mean: 

Generating the response XML file in case of any error in FileRFCFile usecas

Former Member
0 Kudos

Hi,

Our scenario is File-RFC-File implemented using BPM in XI3.0 with SP16.

We need to generate an response XML file even in case of any error from end to end.

End to End means from when the XI picks the XML file and uploads to SAP and returns the response XML file. In case of an error in this case, we need to generate the response XML file .

Please suggest all the options which is possible for our case(FileRFCFile using

BPM) and system XI 3.0 with SP16.

Waiting for your precious inputs.

Thanks,

Ramesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ramesh,

Please have a look at <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit Seth's Blog</a> dealing with the same scenario as yours.

For capturing the error structure of the error, you can do one thing:

Send an erroneous message that will create an exception in the RFC. The corresponding message will show red status in SXMB_MONI. Go to the message contents and you will see the message structure that is used to convey exceptions to XI. You can define a data type according to this structure and use it in message mapping. Then you will be able to capture the error file also.

The error format that we received while working with a custom RFC is attached below:

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

<Name>RFC_ERROR_SYSTEM_FAILURE</Name>

<Text>Syntax error in program SAPLV61A .</Text>

<Message>

<ID>RFC_ERROR_SYSTEM_FAILURE</ID>

<Number>341</Number>

</Message>

<Attributes>

<V1>SYNTAX_ERROR</V1>

</Attributes>

</rfc:ZRFC.Exception>

Hope this helps!

Regards,

Amitabha

P.S: I believe you want to capture the data for error reporting? For functional data inconsistency, you can always report from ABAP side.

Former Member
0 Kudos

Hi,

File-RFC-File Scenario using BPM.

The response XML is to be generated in case of any of the following errors:

1. If the File is picked by the sender file adapter but it has lead to parsing error. In this case response error XML file is to be generated.

2. Any Mapping error or RFC adapter level error.

First one is important. Please answer the first point, so that it can be helpful to me. Since second one, we are able to achieve.

Thanks,

Ramesh

Former Member
0 Kudos

Dleted content

Former Member
0 Kudos

Hi Ramesh,

Normally you can check for error and send a response back in BPM with the help of Exception Handling.

I guess we can provide more input if u can elaborate a bit on your problem