cancel
Showing results for 
Search instead for 
Did you mean: 

raise error in an external-function of XSLT-mapping (ABAP)

Former Member
0 Kudos

Hi,

we implemented a xslt-mapping (ABAP) in PI with external-functions.

It's a great feature and works fine.

Now, we have to implement an error handling:

The external-functions are reading data from an abap table. We have to stop the mapping (if a value in the table is missing).

We wanna show an error inside the PI-Monitoring (red flag) with a valid error text.

How can I raise an error inside an external-function?

regards

Wolfgang Hummel

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can always use the approach presented in my blog:

/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

thanks a lot for your answer.

Can I set dynamic configuration inside an external funktion of an ABAP-XSLT?

I added the CX_MAPPING_FAULT-Exception to my external-function method and raised an exception inside my external-funktion ... and I got an "UNCAUGHT_EXCEPTION" inside my mapping - bad

regards

Wolfgang

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>Can I set dynamic configuration inside an external funktion of an ABAP-XSLT?

honestly I don't know

but you can always have two mappings in your interface mapping

XSTL

ABAP

and the abap will only check if the fields are mapped correctly - if not throw

an error as shown in my blog

Regards,

Michal Krawczyk

Answers (0)