Skip to Content
avatar image
Former Member

Exception Handling

I have a file to IDOC scenario. We are receiving minimum 1000 records in the file.

If the message mapping fails due to some bad record, the whole job terminates.

But we want to skip the Diseased Record and keep continuing with the good records?

Whether it is possible? We are having XI 3.0, SP 14

Thanks for your Help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 13, 2006 at 05:52 AM

    Hi,

    There can be many kinds of "Diseased Record". If we can get to know what might cause such records, we could handle it in the mapping.

    Take a case where there is a <tag> missing in one of the many records present.

    In the mapping, you could check if all the tags of that record exists,and if so, we could map it to the target.

    Else, you could leave it without mapping.

    Another ex, might be a wrong value in one of the fields in the record(ex: number instead of a string). In such a case, we could again check if the field is a string or not and map accordingly.

    There may be one or more of these records, so this check happens for each of the records.

    So, if there is an error, no mapping happens, and if the record is alright, a new target record is created.

    Regards,

    Smitha.

    Message was edited by: Smitha Rao

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2006 at 10:04 AM

    Mohan,

    Are you talking about Runtime exceptions in message mapping ? you say it is a file -> idoc scenario. If you are looking at <b>structurally invalid data</b> , then it will fail in your content conversion itself(assuming u are not dealing with xml files!!)

    If you are looking at a <b>business level validation of the data</b> , say for example, data in a particular field is junk and not what the target sap expects, then i beleive it will not be a runtime error. one way is to have an error segment in your IDOC(ZIDOC!!) and populate it , if you see an issue with the record. well the idoc will still reach SAP , but you can ignore the idocs with error segments there.

    may be you can explore this option.

    Regards

    Saravana

    Add comment
    10|10000 characters needed characters exceeded