cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to delay time for 30 mins

Former Member
0 Kudos

Hi,

I need a udf to delay the message for 30 mins or so

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you do this, probably is raised a timeout exception.

varun_k
Contributor
0 Kudos

may be but this mapping will be executed based on the condition I specify in Interface Determination..

Trying a prototype... and let you know. so can you provide the UDF details

Thanks

Former Member
0 Kudos

Usually, timeout period is setted in 3-5minutes.

With a 30minutes delay, timeout exception is sure.

However, this can be an UDF:

try {

Thread.sleep(<milliseconds>);

}

catch (Exception e) {}

anupam_ghosh2
Active Contributor
0 Kudos

Hi Varun,

here is the code


public static void udf()
		{
			try
			{
				Thread.sleep(1000*60*30);
			}
			catch(Exception e)
			{
			                      e.printStackTrace();	
			}
		}

regards

Anupam

Edited by: anupamsap on May 23, 2011 5:11 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Maybe you could provide more details about the business requirement, so we can suggest a solution other than adding a 30 minutes thread sleeping on the mapping (which if not causing timeout due to change on parameters, will hold many RFC connections unnecessarily).

former_member181985
Active Contributor
0 Kudos

AFAIK, this will be too much delay and there will be always a timeout exception by default between Mapping Pipeline step (ABAP stack) and JavaStack (Mapping runtime, incase of Graphical, Java or java XSLT)

Former Member
0 Kudos

I agree with Praveen, as I said above.