Skip to Content

How to make receiver communication channel not run if the data from sender system is not eligible?

How to make receiver communication channel not run if the data from sender system is not eligible to be written into target system?

Current setting:

sender communication channel's adapter type:iDoc

receiver communication channel's adapter type:JDBC(we set the logon credential of receiver system in receiver communication channel)

Message mapping in Enterprise Services Builder determines if the data from sender system should be actually writtern into receiver system.

Currently even if the data from sender system would not actually be written into receiver system, the receiver communication channel will run(try logging on receiver system with the credentials set in receiver communication channel). And since sometimes the interface happens when the receiver system has not start working yet, PI interface error happens.

So I would like to make interface work like this:

if the data from sender system is not be to actually written into receiver system(deceided by message mapping),then the receiver communication channel would not run and the whole interface process ends.

Is this possible and how to make it happen?Thanks all expertise.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Nov 12, 2018 at 02:14 AM

    If I understand right , you want to check within a message mapping whther the receiver is operational and can accept your request or not. I assume you use a Java udf to check this ..

    What you could consider is that PO has auto restarts that could handle this ,i.e, if the receiver system is unavailable PI can auto retry and you can also schedule a job to do this beyond the default 3 retries.

    If you have considered this and would still like to not process the message, you can handle this through a ehanced reciever determination. You can search here on the sap community and you will get multiple blogs on how PI enhanced receiver determination works and how you can use a mapping program to determine a receiver or to ignore a message etc..

    Regards.

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded