cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in MM possible ?

Former Member
0 Kudos

Is there a way to make my mapping execute after 5 min of the interface execution.I am doing an IDOC to JMS, once the IDOC triggers,I need to wait for 5 min,then execute the mapping.Please guide me.

Accepted Solutions (1)

Accepted Solutions (1)

samiullah_qureshi
Active Contributor
0 Kudos

Hi,

Yes you can do it in Mapping.

What you have to do is in any user defined field,you are using in your mapping,write a Thread.sleep(1000) statement in your java code.

But remember that this wait should not more than your adapter timeout.

Regards,

Sami

Former Member
0 Kudos

Hi Sami,

That was a perfect answer.....We used Thread.sleep(200000);It works fine..Thank you.

Answers (4)

Answers (4)

Former Member
0 Kudos

Using BPM will be good option. You just need to define receive ---> wait ---> send steps. And in wait step enter the duration as much as you want.

Regards,

Sarvesh

Former Member
0 Kudos

Hi PSRK,

May be u can try this..

Write a class using nwds, say developed under a package com.sap.test.

create a new class, call a method which has the sleep function as the fello sdn er has suggested.

Call a UDF in the mapping ,import the package in which u have developed the class.

Most importantly create an object the class..pass it as output of UDF ...should work out.

hope it helps

Edited by: Ibrahim on Oct 17, 2008 4:59 AM

Former Member
0 Kudos

design a BPM and just add a wait step in it.set the waiting interval for 5 mins

Thanx

Aamir

Former Member
0 Kudos

cant we do it in mapping ?

Edited by: PSRK on Oct 16, 2008 10:06 PM

Former Member
0 Kudos

I'm not sure if this would work. But just a random thought.

Try putting in a UDF or java mapping. In the java codes, just put Thread.sleep(xxxxx). xxxx = no. of seconds to delay.

Former Member
0 Kudos

any ideas pleas ?

prateek
Active Contributor
0 Kudos

I agree with Sami. U may also use this in java mapping. This will server the purpose of wait step.

Except for mapping, the other option would be BPM wait step.

Regards,

Prateek

Former Member
0 Kudos

Hi

You can schedule sender /Receiver that can solve this requirement in SXMB_ADM

Refer

Thanks

Gaurav