Skip to Content
author's profile photo
Former Member

XSLT Code

HI,

Can anybody explain me where should i write the xslt code for error handling and how to use this error handling in Xi ?

Regards,

Tuhin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Posted on Aug 10, 2004 at 06:55 AM

    Hi Tuhin,

    Error handling in XSLT is documented here:

    http://help.sap.com/saphelp_erp2004/helpdata/en/8a/7672f7d7e444439fd7024f806221a4/frameset.htm

    Basically if something goes wrong during mapping you can use: <xsl:message terminate=“[yes|no]“>

    Does this answer your question?

    Jason

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 10, 2004 at 11:37 AM

    HI Jason,

    I know that documentation link.

    Can u just expalin me where should i write this code during design of business scenario.

    What i did is created a business scenario file->XI->Sap.

    Datatype->MessageType->MessageMapping->

    Interface->mapping all i created now i want to add condtion(Error handling) during message mapping but where to write this xslt code ?

    Regards,

    Tuhin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I guess I don't understand the problem then. You say you have created the message mapping.

      A message mapping can be either Graphical mapping, abap mapping, java mapping, XSLT (java or abap).

      I assume you have used an XSLT message mapping?

      If so, then the doco shows the error handling is embedded in the XSLT code. You test your conditions and respond with the <xsl:message terminate=“[yes|no]“>.

      If not, then you need a different error handling technique.

      Can you clarify which message mapping you have used?

      Jason

  • author's profile photo
    Former Member
    Posted on Aug 11, 2004 at 05:05 AM

    HI Jason,

    yes i was not able to explain u.

    We have used graphical message mapping.

    Now what is the way of error analysis ?

    Suppose i want to use java message mapping then i have to write code for mapping in any editor and then only i need to specify the class in message mapping editor is this a right way ?

    Regards,

    Tuhin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Jason, sorry I am just learning this stuff - I have been looking for how to throw errors in graphical mapping. Agreed, the source/target should be responsible for validation, but in our business scenario, we have to be able to catch when we have idiot errors on the source system. How do I throw the exception? Even if it's buried within a dump, I can work around that with some custom reporting - right now I just can't figure out how to throw the thing... THANKS

  • author's profile photo
    Former Member
    Posted on Aug 11, 2004 at 11:40 AM

    HI Jason,

    This issue is becoming hot i think.

    See I have two error condition one is suppose the file is not there when file adapter is looking for file.

    Second there are blank values in flat file which i don't want to send to integration engine .I mean if value is not there in flat file say like

    no name

    1 a

    2 b

    3 c

    blank d

    3 e

    3 f

    here no is empty(no value) in 4th row in flat file .now i want to log this error in central log in a text file.IS this possible with

    graphical tool ?

    Thnks & regards

    Tuhin

    Add comment
    10|10000 characters needed characters exceeded