cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to delay IDOC transfer

former_member335553
Active Contributor
0 Kudos

Hi

I have gone through this link on the time delay . When trying to implement it isn't working

Please advise if I am missing something .

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/05/01/how-to-delay-use-wait-step-messag...

My scenario is IDOC to IDOC where on the receiver side I would need a delay of a minute.

public String TimeDelay(String Timevar, Container container) throws StreamTransformationException{

{

try

{

Thread.sleep(60000);

}

catch(InterruptedException ie)

{}

return Timevar;

}}

This delay udf is inserted to the top root node.

FIDCCP02 ----> Delay UDF -------> FIDCCP02

But on the receiver SAP system I get the IDOCS at the same time

Thanks

Anusha

View Entire Topic
bravon33
Explorer
0 Kudos

Hi All,

We have got this to work in our test area by following the instructions in the blog.

When trying it out with one or two messages, we can see the messages appearing in the Scheduled column of Message Monitor whilst the time delay is happening.

However, my concern with this is if we have many messages coming through at the same time (maybe 50+ at the same time), then won't there be an issue with the maximum number of mapping (?) threads that can be used at any one time? And, if so, wouldn't this impact the performance of SAP PI overall and could, therefore, impact other interface messages that may be processing at the same time?

So maybe there is a better way to delay the IDoc transfer where ccBPM isn't an option? I have heard we can use BPM but would that be over complicating the process?

Many Thanks,
Gareth