cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling in BPM and ABAP mapping

Former Member
0 Kudos

Hello all,

We have a BPM with this structure:

. REC (receiver)

. <begin BLOCK1>

. TRANSFORMATION1 (Abap Mapping)

. <begin EXCEPT> (exception branch)

. CONTROL (Cancel Process)

. <end EXCEPT>

. <end BLOCK1>

The same exception is assigned to the block; to the mapping and to exception branch.

The problem is that, when in the Abap Mapping the exception CX_MAPPING_FAULT is raised, the exception branch seems to be ignored and so, the BPM doesn't finish.

This problem only occurs in some of ours BPMs, because the same thing, when done in other BPMs, works fine.

I know i can change the BPM to turn around this problem, but i would very much like to know the solution to this.

Please, help us with this posting.

thanks in advance

Filipe Barreira

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

Hi Filipe,

Refer to SAP Note 921757

If nuthing works out, go for debugging as specified here

Regards,

Prateek

Former Member
0 Kudos

Hi again,

We are in SP19, witch invalidates the note 921757 listed.

Also, i made an abap mapping witch only raises the exception. So i think it is not an ABAP error.

Also the XML seems to be correct, because this is a duplicates check routine. A message (with the same data) already entered previously (we trying to avoid another entry).

In the trace analysis for the message, it is stated that the exception has occurred:

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

- <MappingTrace>

<Trace level="1" type="T">Mapping-Namespace:http://xi.es/suministros</Trace>

<Trace level="1" type="T">Mapping-Name:IM_SALIDAS_TESTE1</Trace>

<Trace level="1" type="T">Mapping-SWCV:7CE651C00ABC11DBCBF0C8E8C0A901F6</Trace>

<Trace level="1" type="T">Mapping-Step:1</Trace>

<Trace level="1" type="T">Mapping-Type:R3_ABAP</Trace>

<Trace level="1" type="T">Mapping-Program:ZCLTD_MM_SALIDAS_CARGA_TESTE</Trace>

<Trace level="1" type="T">Creating Abap mapping. Classname =ZCLTD_MM_SALIDAS_CARGA_TESTE</Trace>

<Trace level="1" type="T">CALL APPLICATION MAPPING.</Trace>

<Trace level="1" type="T">Application error in mapping program ZCLTD_MM_SALIDAS_CARGA_TESTE, error code: , error text:</Trace>

</MappingTrace>

the problem is that the process keeps running.

regards Filipe Barreira

Former Member
0 Kudos

Hi Filipe,

could it be, that you forgot to set the exception-handling (in properties) in your mapping step?

I sometimes forgot it. And Also: sometimes after activating the BPM the exception-handling got lost.

Regards Mario

Former Member
0 Kudos

thanks Mario, for your ready answer.

I just checked again, and the exception is assigned in mapping step, and it is the same as the block exception and the exception branch (it is only one exception).

I feel that it is something assigned with some administration issue related with the BPM in question, but don't know which.

best regards

Filipe Barreira

Former Member
0 Kudos