cancel
Showing results for 
Search instead for 
Did you mean: 

File - RFC - File - How to handle RFC exceptions

Former Member
0 Kudos

Hi Friends ,

I am doing File --> RFC --File scenario using BPM

May i know how to handle the RFC exception ?

1. I have created an Fault Message tye

2. I have mapped the RFC exception to the Fault Message Type

3. I done proper Message Mapping and Operation mapping for Fault Message also in Error tab of Operation Mapping

4. If RFC response is success, file is getting dropped to the destination

But here my question is

1. But if exception arises the file is not getting getting dropped . Do i need to create any Interface determination for Fault message separatly

I couldn't get this . please help

Thanks

Shiva

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> 1. But if exception arises the file is not getting getting dropped .

What should happen in that case?

Former Member
0 Kudos

Hi Stefen ,

Thanks for your reply .

I would like to get that exception messaeg and post as a file .

In SXMB_MONI i am getting the Application Error , and my the error mapped to my Fault Message as follows

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

<ns1:FMT_ADDSUMBPM xmlns:ns1="http://xxx.com/Test/AddSumBPM">

<standard><faultText>NO_ADD</faultText><faultUrl>no add</faultUrl><faultDetail><severity>null</severity><text>000*******</text></faultDetail></standard></ns1:FMT_ADDSUMBPM>

Just i would like to place this output as file in some target destination

Thanks.,

Shiva

Former Member
0 Kudos

Hi Shiva,

Check RFC has exceptions included in Function module.

Next hope you have mapped RFC.Exception->fault structure.

when exception appear what ever you are getting the Payload of sxmb_moni, test in your RFC exception mapping and check target node is creating or not...if not what ever you are getting the payload is not matching with RFC.Exception sturucture...

or same thing your RFC exception soruce structure need to populate when RFC exception gives so that your mapping will be execute and send to target destination.

Regards,

Venu.

Former Member
0 Kudos

Hi ,

Yes RFC exceptions included in Function module.

and i have mapped the mapped RFC.Exception->fault structuralso thats why i am getting the follwing in SXMB_MONI ,the RFC Exception mapped to my Fault Message as follows

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

<ns1:FMT_ADDSUMBPM xmlns:ns1="http://xxx.com/Test/AddSumBPM">

<standard><faultText>NO_ADD</faultText><faultUrl>no add</faultUrl><faultDetail><severity>null</severity><text>000*******</text></faultDetail></standard></ns1:FMT_ADDSUMBPM>

But i am using File --RFC -- File using BPM , I would like to get this above mapped message as file and place in a folder .

In design i have done

Message mapping done for request,response and Error also

Operation mapping done for all

The configuration steps

I have created 3 interface determination and receiver determination

1. From File to Integration process

2. Integration process to RFC

3. Integration process to File response

Here my question, in ESR , in Inbound Asynchronous message type i have added the Response message type as Request Role and Fault message type in Error role .

if RFC executed successfully i am getting the proper response as file , but if error occurs i can see the mapped the RFC exception and my Fault message Type in payload .

I have doubt in Interface determination .

Could you please help on this

Thanks.,

Shiva

Former Member
0 Kudos

Hi Shiva,

You can add an exception branch & create the interface determination with another Abstaract message type for this. It will handle all negative cases (RFC errors). Your positive cases are already functioning so no need to change them.

Regards

Sushil

Former Member
0 Kudos

Hi ,

I have tried that also , still no output ,

Brief :

My scenario File --> RFC -- > File

In Abstarct Synchronous , Messages as follows

Request MT_ADDSUM_REQ

Reponse MT_ADDSUM_RES

Error FMT_ADDSUMBPM

Once exception occurs in RFC it is properly mapped to my Fault messsage Type But here my question is i want to crate a file ouit of this Fault message Type

i have doubt in BPM of IR and configuration scenario in BPM

1. Receive step

2. Within block Sync receive step and exception branch with a send step

3. another send step for success outside of block

Question :

In Abstract Asynchronous Service interface i cannot see the Error type , I can only create Request type - why it is like this ?

I hope because of this i cannot see the my mapped fault message type in receiver determination

Any help on this ?

Thanks.,

Shiva