cancel
Showing results for 
Search instead for 
Did you mean: 

PO create and Change interface

former_member184619
Active Contributor
0 Kudos

Hi Folks,

We have PO create and change near real time interfaces. Both are JDBC to IDOC scenario. On the source a PO can change in as little as 2 sec. So, I have set the polling of PO create and change as 40 sec. same for both.

Started the PO change channel with a 2 sec delay of PO create. But, sometimes PO change will come first, then PO create. There are PO's with a diff. of 15-20 sec. as well, but PO change comes first.

We have put a delay in posting of IDOC, If PO create doesn't exist. PO change will wait for 15 sec. But how to solve the issue on PI end.

Regards,

Sachin Dhingra

Accepted Solutions (0)

Answers (1)

Answers (1)

vadimklimov
Active Contributor
0 Kudos

Hi Sachin,

If these are two different interfaces that were developed for PO creation and for PO change, then by default there will be no correlation between of them neither in PI, nor in receiver SAP system, and corrupted order of messages processing between them may be expected.

One option may be to control flow from the sender system:

  • In a sender system, in a table from which PI polls PO change records, introduce some status field or indicator field, that can be used to make decision regarding if PI needs to poll the record or not. Which means, that field shall become a part of where-clause for polling request in PI. As an example, this can be an indicator "ready for processing" / "waiting". When the PO change record is created, it gets inserted into a table with indicator value "waiting", and this will prevent PI from polling this record.
  • For PO create interface, implement acknowledgements;
  • When application OK acknowledgement is received back in an original sender system (which means, PO was successfully created in a receiver SAP system), the sender updates a table from where PI polls records for PO changes interface, by changing value of the indicator for pending records for the given PO from "waiting" to "ready for processing", so that PI can poll them during next polling attempt.

Regards,

Vadim

former_member184619
Active Contributor
0 Kudos

Thank Vadim,

I hope what you have mentioned can be implemented. On source PO create and Change can happen in as low as 2 sec. As of now, in ECC we have kept a wait time for PO change coming first.

In PI both channels have a polling of 60 sec and change runs 2 sec after create.

Regards,

Sachin Dhingra