Skip to Content
avatar image
Former Member

Delay in MM possible ?

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 17, 2008 at 02:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 02:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 12:07 AM

    Hi

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

    Refer

    Scheduling messages in SAP XI

    Thanks

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 02:00 AM

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

    Thanx

    Aamir

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 07:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded