Exception handling in BPM and ABAP mapping

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

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

Similar Messages

  • Exception handling without BPM

    Hello,
    I have done exception handling with BPM.
    i.e. when there exception comes in mapping I have use Block  Exception Handler.
    Can this be done without BPM.
    Please snd me blog for it.
    Regards

    Hi,
    As explained by Michal it is correct, but in message mapping , we can raise an alert .
    See the below links
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Regards
    Chilla

  • Any website for XSLT AND ABAP mapping

    Hi XI experts,
    I am looking for any good website/Material for XSLT and ABAP Mapping with examples.
    So experts if you any one of you have any clue , i would appreciate it , if you post the info here .
    Regds,
    Ram.

    Hi,
    For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Regards
    Chilla..

  • Java Maping and ABAP Mapping

    Hello,
    Pls let me know about Java Maping and ABAP Mapping
    Also pls provide good simple scenario blogs for Java Maping and ABAP Mapping.
    Regards

    Hi Ranchit,
    Check these links for Mappings
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://websmp102.sap-ag.de/~sapdownload/011000358700003604872004E/MappingXI30.pdf  (Need Service Makrket place ID)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    JAVA Mapping BLOGS
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    ABAP Mapping Blogs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Sachin
    Message was edited by:
            Sachin Dhingra

  • Exception handling in rfcs and bapis

    exception handling in rfcs and bapis

    Hi Jayakrishna,
    In General , there are non execptions in BAPIs, because of the reason, that the exception raised in a SAP envoronment may not mean anything for a non SAP initiator. All the exception situations would only fill the return table(TYpe BAPIRET2 or something like that). If you read that table after the call to the bapi, you can understand what has gone wrong.
    Regards,
    Ravi

  • 11g ADF TaskFlow Exception Handling in BPM

    Hi Guys
    BPM 11g
    I have a human task that is implemented as an ADF task flow. I would like to be able to throw an exception from the ADF application and have it handled by the BPM process, does anyone know if this is possible or how I would do that?
    At the moment I have an ADF error page - I could return an "error" outcome to the process from that but an error is an error and it feels right to show that in the process instead of a normal outcome.
    anyone else worked through this?
    cheers,
    Steve

    help yourself with this thread - Re: Exception Handling
    it should answer your question

  • Regarding Java mapping and ABAP Mapping

    Hello,
         If I suppose to do Java mapping or ABAP mapping, Is there any pre requisite to perform these two mappings?
    If exist what they are?
    How to perform them?
    Thank you

    Hello jyotsna,
    Java mapping can be used when you have complex mapping structures.
    We can do most of the times for our requirements through Graphical mapping.
    When the structures are very complex to build you can go for SAX (Simple API for XML) or DOM (Document Object Model) parsers.
    Message mapping internally generates DOM parser.
    Java Mapping in XI
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
    SAP Network Blog: Implementing a Java Mapping in SAP PI
    /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
    Java Mapping (SAP Library - Partner Connectivity Kit)
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    SAP Network Blog: XI Java Mapping Helper (DOM)
    /people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
    SAP Network Blog: Testing and Debugging Java Mapping
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
    SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
    You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
    refer step by step guides for ABAP Mapping
    ABAP Mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=abap+mapping&adv=false&sortby=cm_rnd_rankvalue#
    How to Use ABAP Mapping in Exchange Infrastructure 3.0 (NW2004)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    SAP Network Blog: Testing ABAP Mapping
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    SAP Network Blog: How to call XI ABAP Mapping via RFC
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    SAP Network Blog: XI: ABAP mapping logs - more standard = better visibility
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    SAP Network Blog: Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
    /people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
    You need to provide the name of your mapping program maually , you see it is an input box.
    just provide the name of abap mapping program it will work.
    and one more thing you cannot test abap mapping program in integration builer you need to test in abap only.
    use tcode: SXI_MAPPING_TEST for testing abap mapping
    Thanks,
    Satya
    Reward points if it is useful..

  • Exception Handling in Inbound Synchronous ABAP Proxy

    Hi All,
    I am implementing inbound synchronous proxy which has inbound ,outbound and fault message ( same of SAP-PI).
    I am calling a FM inside inside the method. All the business logic is coded in the FM which also handles the exception.
    The exception raised in the FM is captured in the MESSAGE table of type BAPIRET2.
    During testing I found that the exception raised inside the FM( Message Table) is not passed to Fault message
    which is in the proxy method( If sy-subrc 0, raise excption type MT_FaultMessage was coded after FM).
    I found 5 instance under the Fault message exception.IF_MESSAGEGET_TEXT , IF_MESSAGEGET_LONGTEXT ,IF_AI_APPLICATION_FAULT~GET_RT_FAULT_TEXT,
    GET_SOURCE_POSITION and CONSTRUCTOR.
    Kindly provide the input how to pass the error text captured in MESSAGE TABLE of FM to the exception message MT_FaultMessage of Proxy
    Regards
    Alice Rebecca

    Hi Alice ,
    Please have a look at the below document which contains ways to handle different errors and exception.If you still have doubts please revert back .
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502a7f0e-e5d9-2910-5aa2-976a8ed8384f?QuickLink=index&overridelayout=true]
    For more specific i.e to handle the retrun message from a BAPI go through the below link .I assuming that you have exception class  already created and it is available in the Exception tab of the execute_synchronus .
    [http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm]
    Thanks,
    Anjaneya .
    Edited by: Anjaneya Bhardwaj on Jan 13, 2012 6:26 AM

  • Sproxy and abap mapping

    Hi All,
    1.how can i get the data into sproxy(application system) from integration builder(integration server)?.
    2.how to do setting in TC SM59 for http destination for this?
    3.pls give abap mapping scenario
    Thanks & Regards,

    Hi Srinivas
    <b>for more details check these also</b>
    <b>How to use abap mapping in XI</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    <b>Have a look at this document...</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    Hi Refer this Pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    This Blog also
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    Help link - http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    <b>
    An excellent How to guide on the same -</b> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/15ecdf90-0201-0010-d792-941a3c3c30a4
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    <b>Start with this...........</b>
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    This document will help you to create ABAP Mapping .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Thanks!!

  • Exceptional Handling in Web Dynpro ABAP

    Hi,
    I have enhaced the std WDA component FITV_VC_COST_ASSIGNMENT, to check if user has selected a valid company code on the screen, if not then I need to display a error message as "Invalid Company code", thought I am able to do so but the message that pop ups on the screen as "WebDynpro Exception: Invalid Company Code", and I just want "Invalid Comapny Code".
    How to remove this "WebDynpro Exception" from the message.
    It is possible to do so ,if yes please provide me some valuable help and if not then let me know as well.
    My code snippet is
    if lv_bukrs ne lv_comp_code.
      RAISE EXCEPTION TYPE cx_wd_general
    EXPORTING
    textid = cx_wd_general=>cx_wd_general
    msg = lv_mesg.
    endif.
    where lv_mesg is my custom message to display.lv_bkrs is company code of the employee and lv_comp_code is the company code he has selected on the screen.
    Thanks
    Pooja

    Hi,
    I am sure that exception that is coming "webdynpro Exception: invalid company code" should be coming from the standard WD framework, i mean some kind of data validation for the domain you have chosen, as it is normal with some date data types we see!!!!
    so if this is coming from the standard domain checks then you should use if_wd_validaton interface and its methods to suppress that standard message and then raise your own messages as it is suggested in earlier replies, even i am not sure what is the dump you are talking here.
    Thanks,
    Kranthi.

  • Exception Handling in BPM:Access to Fault Mex in Exception branch

    Hi Guys,
    After the synchronous sent (in my case is to SOAP adapter)I intercept the exception.
    Unfortunately I cannot send back the fault to the Caller since
    the used called function has no exception defined,therefore I need
    to handle  exception and do something depending on the error back.
    Ant suggestions?
    thanks in advance
    regards,
    Giamma

    Actually I map the fault of the web service to a XI SOAP fault.
    The mapping back for the fault is called nevertheless I get an error
    (Attribute prefix 'xsi' is not mapped to a namespace(:main:, row:1, col:90))
    as I written in the following trace.
    Did you have any suggestions regarding the issue?
    thanks.
    Regards,
    Giammaria Pace
    <Trace level="1" type="T">Interface Mapping http://postel.it/eProcurement/Catalogo IM_mapping_pro_fault</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_Mapping_FaultversoBPI_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Attribute prefix 'xsi' is not mapped to a namespace(:main:, row:1, col:90) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:37) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:63) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at

  • RFC Exception handling in BPM

    Hi All,
    I currently have a scenario where I receive an IDoc, then need to make an RFC call to another R/3 system to get some additional data, and then transform and send the resulting message out to another system.  There is a possible case where the R/3 system will send back a fault message with some meaningful text which we would like to map to a Status IDoc to send back to the source system.  The problem is, I can't seem to find a way to be able to use the fault message in a map in the BPM.
    Is this a limitation of XI, or is there some way to get this fault message into the BPM?

    Fault message propagation still functions the same for BPM....now instead of populating it as a Fault message can you ask the end system to populate the error (if any) as a response....may be the response RFC will be required to have the error structure.
    Now in BPM decide whether this is an error....if yes then create the IDOC....if not then discard the message.
    In one of my project requirements we had a similar req wherein there was proxy at receiving end....we updated the proxy (ASYNC) and if any error then another proxy would be populated giving error details (in case there was an error)....both the flows ASYNC....once we got the details we would do further processing.
    Regards,
    Abhishek.

  • Exception Handling in BPM

    Hello,
    1. I have created a block step B
    2. I have created a ReceiverDetermination and send step(S) inside Block B  .
    3. I have created ExceptionHandler EH.
    4. I have assigned this ExceptionHandler EH  in the send Block Exceptions-SystemError.
    5. In ExceptionHandler EH ,i have created a controlstep for throwing Alert .
    Problem i am facing now is when an error occurs in send step it is not throwing Exception.
    Did i missed something.
    Thanks in Advance for responses
    Rajesh

    Hello All,
                    Thanks for your replies,but in my case i have defined the ExceptionHandler and assigned the ExceptionName (EH) to the send step Exceptions-SystemError property ,and when i run the BPM scenario at the send error occured and it has to go to ExceptionHandler block which is not happening and i am seeing error at block as NoAgent error and i searched the forum for this error category and
    deleted all the BPM Instances and activated the Integration process but in vain ,
    I tried to throw exception intentionally and which worked well'
    Overall when an error occured at send it is not going to ExceptionHandling branch,What might be wrong
    I think send asynchronous step is capable of raising systemErrors right???
    Million dollars for the replies
    Waiting for responses
    -Rajesh

  • BPM and interface mapping

    Hi All
    I have done a BPM which collect messages and send them to a file adapter in one message.
    I have added a tranformation step , which uses the interface mapping IM_map
    when i run the program it failes , and in the sxmb_moni_bpe it showed mapping error and navigating to the message it says the following
    http://test.com.IM_map
    (SWCV=127593A01FA211DBC43DEDD90A16547D) not found.
    I deleted the Interface mapping IM_map and created a new Interface mapping IM_map_2
    and refreshed the cache and changed the mapping program in the BPM to the new one , I can se the IM_map_2 in sxi_cache but whenever I run the program it stille shows the message refering to the deleted inteface mapping IM_map that is not found .
    how can I get rid of this error.
    Thanks .

    Hi Malu
    while creating new IM in IR activate this with your software compnent
    right Click on the BP object in the IR and activate it select SWC also with this and activate
    then make a full cahe refresh either BY t code SXI_CACHE
    or In IR go to environment and make a full cache refresh
    or through URL
    http://<host>:5<sys#>00/CPACache/refresh?mode=full     Full CPA cache refresh
    regards
    sandeep
    If helpful reward points

  • Exception Handling in BPMs

    Hello,
    I guess this topic was already discussed here, but I couldn't find any sufficient answer to my problem.
    I have a simple asynchronous send-step in my BPM. I'd like the BPM to move into an exception branch if the send step fails due to a sending error (e.g. the target url is not correct). But unfortunately in case of such a sending error the BPM ignores the exception branch and continues the normal path. I have no Idea why it does not work properly.
    Thx for ideas in advance.
    Regards.
    Oliver.

    hi,
    did you specify the use of exception in your send step?
    or did you only define it in the block step?
    have a look at this example:
    http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for