File to Idoc with wait for 30 secs time

Hi Experts,
We  have a requirement like, sending a file using MDM adapter to Idoc.
We need to process messgaes coming into ftp one by one to target system ECC with a time interval of 30 seconds.
After 1 msg is processed, wait for 30 seconds and next message have to process.
Please let us know any user defined function code for this.
Thanks in advance...
Soumya A

Check below thread.
File adapter to pick a single file
CONFIGURE FILE ADAPTER ,get files one by one.
Edited by: phani kumar on Jan 6, 2012 12:50 PM

Similar Messages

  • One of my imported MOV files turns "black" after editing with it for a time and I can't retrieve the images. This has happened three times, only this file. The placeholder is still there. Files are fine on hard drive. What gives? how to stop this?

    One of my imported MOV files turns "black" after editing with it for a time and I can't retrieve the images. This has happened three times, only this file. The placeholder is still there. Files are fine on hard drive. What gives? how to stop this? is in final cut pro 10.1.4

  • Do sth for 5 sec. or 5 min.? How does Java wait for some time ?

    How can I show a text in a label for 5 sec. and then make it disappear ?
    How can I make my app wait for some time ?
    What's the command ?
    thanx!

    The above is correct, but since painting is done in a separate thread, the likely result would be a blank space for 5 seconds, followed by a brief flash of text. You need to look at methods like invokeLater in SwingUtilities. You could also try forcing a paint(Graphics g) rather than a repaint before you wait.

  • "Waiting for real-time target (RT PXI target) to respond" error when the program waits interrupts

    Hi there,
    I have developed an application to detect interrupts generated by a electronic card and act in consequence. The program has been developed in labview but it calls a dll; that was created with labwindows. The dll is programmed to open the visa communication, enable events and install the interrupt handler and when an interrupt is detected, it reads the value of the different registers of the card and returns it to labview to visualize them. 
    The problem is that when the program waits for an interrupt, a prompt appears with the message "Waiting for real-time target (RT PXI target) to respond" and the only option I have is to click on the button to disconnect from the pxi or just wait. If I wait and I generate an interrupt, the prompt disappears and the application visualize the data like it was expected. 
    To wait for the interrupt the following code has been programmed in the function:
                    while (flag == 0)
                                    Sleep (1000);
    When an interrupt occurs, the value of flag changes to 1 and the function continue without any problem. I am not really sure, but probably here is the problem and probably this is not the best way to wait for an interrupt because the sleep function suspends the thread for the configured time, but at least the computing load in the PXI is between 0% and 1%. I was wondering if somebody knows how to wait for an interrupt without "lost" the communication with the PXI and if there is a better way to do it. 
    Any answer will be welcome and thanks for them,
    Jaime
    Solved!
    Go to Solution.

    Hello Naity,
    First of all, in which thread runs the waiting process? Is it scheduled in another thread than the function setting the flag?
    It scheduled in the same thread that I use to configure the communications and configure the card. Anyway, here is the pseudo code of the function interrupt that I programmed under labwindows,.
    char* interrupt(void)
    1. Open visa communications
    2.Install handler interrupt --> status = viInstallHandler (instr, VI_EVENT_PXI_INTR, IntrHandler, VI_NULL);   // the function IntrHandler will be called when an interrupt occurs
    3. Enable event PXI interrupt
    4. Wait
    while (flag == 0)
                  Sleep (1000);
    5. Visualize the data coming from the interrupt (registers and values measured with the card)
    6. Uninstall handler interrupt
    7. Close visa session
    The interrupt handler function IntrHandler is called immediately when an interrupt occurs and the pseudo code is like this
    ViStatus _VI_FUNCH IntrHandler(ViSession instr, ViEventType etype, ViEvent event, ViAddr userhandle)
    1. Disable some functions of the card to avoid damages. 
    2. Read registers and put them in a buffer
    3. Change the value of flag ---> flag = 1;
    In labview, I call the function interrupt with a call library function node (see the capture attached) and the program reads and saves the data from returned from the function.
    Secondly, I am not sure this method is the most elegant. You could for example register an event with the function and, insteand of setting a flag to 1, trigger the event and schedule it in another thread (if the function is thread safe). This could reduce your CPU Load even more and seem a bit cleaner to me.
    I've never used events before in labwindows but I will try to do it in this way. But anyway, I suppose that I should; somehow, wait the event to occurs in labview while the waiting for the event is programmed inside the dll...and probably the same prompt that i am trying to avoid is going to appear again, because I am not returning the "control" to labview (I mean, labview executes the dll and waits for the event to occur. Then the execution of the labview program is stopped in the call library function node executing the dll)
    Third point, which environment of development are you using?
    I am working with LV 2010 sp1 and Labwindows cv 10.0.1 and with the real time module.
    I did also another test, I divided the program in different functions, one to initialize the communication, another to wait until a interrupt has been detected and the other to obtain the data from the interrupt and close communications. With labview I call first with the call library function node the function to initialize, later I call inside a while loop the wait function like this
    int waitAseconds (double seconds, short stop_waiting)
    if(flag==1 || stop_waiting == 1)
    flag = 1; //to detect the stop_waiting button
    printf("flagAA =1 stop waiting = %d time = %d\n", stop_waiting, clock());
    return flag;
    else
    SleepUS(seconds*1000000);
    //a++;
    printf("flag a= %d stop waiting = %d time = %d\n", flag, stop_waiting, clock());
    return flag;
     and when the program detects an interrupt, the function returns to labview the flag and stops the loop. Finally, it reads the values and close communications. 
    In this way, the prompt appears but after running the application for 10 or 20 minutes and also i checked that there is a time gap between the executions in the loop.
    Thanks for your reply and your help,
    Jaime
    Attachments:
    capture.png ‏40 KB

  • Waiting for network time"?

    I thought I had set up Apple TV correctly, and paired it with my silver remote it came with, but whenever I turn it on now, the screen says "Waiting for network time". Has anyone else had this issue? I can't seem to find the answer online or in the manual of how to correct this.

    The "menu+down" reset did not help. It rebooted the Apple TV, but upon reboot it displayed the same message.
    Taking the device away from the hotel and to my in-laws house let me use it just fine while there. It recognized that it didn't have a network connection and I was able to tell it to join the WiFI and give it a password. I hoped at that point that when I took it back to the hotel that night it would have forgotten all about the hotel WiFi and let me configure it to join the ad-hoc network from the laptop. But no luck. The Apple TV still remembered the hotel WiFi and got stuck again.
    I guess the only way to make it forget a network once it's joined is the "restore" option, which reverts it to factory settings (meaning you'd have to re-apply the firmware update). I haven't done that yet, though I ought to while I'm at home and the thing is working, so I don't forget next time we take a trip to a Hampton inn and have it mess up again.
    It seems there ought to be a way to make it "forget" WiFi networks, like the iPad and Macs can. Of course it shouldn't get itself into a state where the remote doesn't function and the settings menu produces errors either.

  • I locked my iPad and I don't want to wait for the time limit.  How can I reset it?

    My brothers locked my iPad and I can't wait for the time limit to unlock it.  Is there a way to reset it?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad into Recovery Mode
    http://support.apple.com/kb/ht1808

  • LR6 wait for some time hoping to launch as soon as D750 can not connect!

    LR6 wait for some time hoping to launch as soon as D750 can not connect!

    RAW is supported for D750 in versions later as 5.7
    I suppose tethering will be added with next version, which probably is LR6.

  • When syncing to my PC iTunes gets stuck at step 7 of 7 with "waiting for items to copy" - do you know why?

    when syncing ipad2 to my PC iTunes gets stuck at step 7 of 7 with "waiting for items to copy" - does anyone you know why?  The rest of the sync seems okay

    i don't know why it happens. but i know how frustrating it can be. the same thing happened to me. i posted a few inquiries in different apple forums and didn't get any ideas of how to fix it. i did however find a solution on my own.
    i found that if i did a "restore my ipad" that it fixed it. i was hesitant at first because i was afraid of loosing valuable information. but much to my relief i didn't loose any thing. other than an hour of my time.
    this seemed to fixed my problem of being stuck on "waiting for items to copy". my ipad now syncs both wired and wirelessly without any hang ups. however i would suggest that if you are syncing a large amount of data (movies for example) that you do it wired and not wirelessly. i found that it takes a lot longer to sync movies wirelessly.
    good luck

  • Stuck with waiting for changes to be applied to syncing?

    Am stuck with waiting for changes to be applied to syncing?
    what can I do?

    Did yo try all of these:
    SOLUTION: Some Music Won't Play After Upgrading Your iPhone To iOS7
    Red square in red circle cannot play songs
    My iPod isn't playing certain songs. Help?
    Remove Red Circles with Square in middle

  • I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    The error msg said that the file archive part of Adobe photoshop CS6 is missing and that I need all parts in the same folder.

  • Unsorted Flat File into IDoc with multiple use of nodes

    Hi Experts!
    I am facing a little problem. I have a source flat file for a classification where some fields appear several times.
    My source flat file looks like this:
    item1; field1a
    item2; fieldA
    item3; fieldxa
    item1; field1b
    as you can see the item1 exists twice (further appearances are also possible).
    Now i have to map the flat file into an IDoc structure
    My target IDoc looks like this
    Header
    -- node1
    attribute1
    -- node2
    the "field1a" and "field1b" has to be mapped into the "attribute1" in "node1". "node1" has to be duplicated for each time an "item1" appears (.. and if item2, item3 etc. appears twice, three ... four times...).
    So how can i reach it that the node1 will be duplicated automatically when an item appears twice or more times? I know that it could be possible to work with "SplitByValue"... but for this i need all item1 in an straight order.... but i dont have them in a correct order.
    I am looking forward to your suggestions.
    Thank you in advance.
    Udo

    Complex sorting is not or not easy possible with the grafical mapping tool.
    Use a sequence mapping. The first mapping is a simple XSLT which does the sort. The second mapping works as usual.
    I have an example XSLT which I used for a different purpose:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <ORDERLIST>
          <xsl:for-each select="ORDERLIST/ITEM">
            <xsl:sort select="ID"/>
            <xsl:copy-of select="."/>
          </xsl:for-each>
        </ORDERLIST>
      </xsl:template>
    </xsl:stylesheet>
    Regards
    Stefan

  • Waiting for Sec always

    Hello,
        1) I am working on DAQ and I need some help to take decision in best way. I am using JKI state machine, which having one case for DAQ and another cases for controlling the serial device. I need to swich the cases always until my Serial device fixed. I.e.. I need the Acquire the data may be 8 or 9 times for each serial device when the program is running. The cases in the state machine also defined in such manner for switching together. I am using USB 6008 and with rate of 5K and 500 samples to read and its a continuous acquisition.
      2) Here comes problem, In DAQ case, I acquire the data and calculate the summation of arrived data. Here comes jitter and I need to be careful to remove this movement in the summation value. Of course, this jitter introduced because of my serial device. My plan is to make like this but so far I stop here with lots of confusion.
    Especially in this case(DAQ case), I would like to wait for a second and I want to store the summation values occurred in this second into an array and after look for the maximum value occurred in that second. Well, in this period, DAQ should continue its Acquisition and should calculate the summation until it's get's the 5K samples in 1 Sec. After this I would probably continue my run to other cases.
    I know that I have to attach my code here but it is big VI  and you can find attachment of DAQ case.
    I would appreciate someone's help here.
    Attachments:
    Array finding.vi ‏116 KB

    Welcome to Apple Discussions Marty
    This is the most complained about bug in AppleWorks 6 - known as the "Recent Items bug." Take a look in the highlighted AppleWorks Frequently Asked Questions (FAQ) folder near the top of the entry of this forum for the User-Contributed Tips & Answers folder. In there are three articles dealing with Recent Items.
    ]Dale Gillard - AppleWorks slow? Spinning ball appears?
    ]Dale Gillard - Recent items not visible/updated
    ]Yvan Koenig - No more Recent Items
    AppleWorks remembers every document ever opened. As this fills up, it slows down performance. This folder is located in HD/Users/username/Documents/AppleWorks User Data/Starting Points/Recent Items. Trash all of the aliases in this folder & restart AppleWorks. You should see an improvement.

  • File to IDOC, with External Definition to hold multiple IDocs

    Hello Experts,
    I am configuring a sample File to IDOC scenario. Here are the steps I am following, can you please guide me what I am missing here.
    I am having a flat file with 10 records to be transferred to my ECC system through IDOC adapter to create 10 different IDocs.
    1. I am picking up my flat file using a 3rd party Business System with File Content Conversion
    2. I uploaded CREMAS Idoc and exported as XSD file and modified Occurences paramter to unbounded and uploaded back as an External file definition into IR
    3. I defined an SAP WEBAS ABAP type Business System with LS (representing my ECC system) and configured with IDOC Rcvr channel.
    4. In the IDOC recvr Channel, I specified RFC destination pointing to my ECC system & Port, Release...etc
    5. On the ECC side, I configurated a PARTNER PROFILE with the above mentioned LS(used in step 3) and added an Inbound Idoc paramter CREMAS with process code CRE1. Selected the option Trigger Immediately.
    Testing:
    1. When I checked my CC monitoring in RWB, my file on the sourced is getting picked up successfull with respect to the specified polling intervals.
    2. I don;t see any messages in my SXMB_MONI. I verified SXMB_ADM configuration it looks fine to me
    3. I used TCode:WE02 on ECC side, nothing is there
    4. I used Tcode SM58 on ECC side, nothign is there
    I have no idea what is happening after successfully picking up the file on the source side.
    Is there a way to trace where exactly the error is or what is wrong with my scenario?
    Just an observation, We don;t need to specifiy any LS on the Sender Business Sytem(3rd party in my case) which picks up my file on the source side. Rather I am specifiying LS on the Target Business Sytem(type WEBAS ABAP in my case) to send my IDOC to ECC system. I am using the same LS to define PP on ECC system.
    Edited by: Chris Rock on Oct 21, 2008 5:03 PM

    Aamir,
    I tried full cache refresh, also cleared SLD Cache for both IR & ID. No luck.
    I think either some thing wrong in connection parameters, but atleast if I see some error in Moni or RWB, it helps, but in my situation, nothing is showing up there.
    Connections:
    I specified PORT & RFC Dest in IDOC RCVR Adapter along with WEBAS Release version. These PORT & RFCs are created in XI using SM59 & IDX1 and both passed the connection test.
    On the ECC side, I created a PP with inbound Idoc CREMAS and process code as CRE1. This PP uses the LS that was used in RCVR BS specified in XI side.
    I also loaded Idoc meta data into XI with Tcode: IDX2
    Please help me, any body. I will sincerely award the points.

  • File to idoc with BPM

    Hi All,
         I have  one  File to IDoc Scenario. Now I want to throw  posting error in a file.
    i.e., if mapping goes not well and when IDoc is being sent to Recipient system then if any posting error is encountered, then a file(Flat file) will be created at sending system side.
         I am planning to design this scenario with BPM. Now end user requires a akwoledgement for this scenario eithere it may be succsess or failure in file format. If succsess the file will be created with succsess information(any format), either failure also file will be created with error information. The user requires only file format b'coz this file will be read by another java application (user didn't require to his mail).
    Can anybody suggest the solution for this:
    1. How to generate aknowledgement file for sucsess or failure.
    2. How to use this file to idoc scenario in BPM with out using Alert configuration or Mail adapter.
    Regards,
    Konala.

    Hi,
    As you know Idocs are used for asynch communication, only was to get acknowledgemnet is using ALEAUDIT. For your scenario there can be one work around. When you post IDoc in the, in that function module after the posting is done call one more RFC with the the success/failure message which will trigger RFC to File sceanrio.
    If you get any other solution, please post it back to same thread.
    Thanks,
    Prateek

  • Why does File Explorer Seem to Wait for End-to-End Confirmation?

    For quite a few versions now, when copying large blocks of files from place to place it seems like Explorer adds an arbitrary delay or maybe waits for confirmation internally that every file has been actually written to the disk before continuing.
    On a modern computer with plenty of RAM for cache and a massively powerful SSD-based I/O system (capable of sustaining gigabytes per second of throughput),
    why should we ever wait for a copy of a few hundred megabytes of files?  Theoretically it should complete in a second or two. 
    In fact, back on XP one could observe exactly the behavior I'm describing - file transfers - especially on hard disk but even over the network - would proceed at a very breakneck pace.
    Yet it's not uncommon to see miniscule transfer speeds while copying groups of files that even the oldest, cheapest hard drive could sustain...
    What's the setting to have Explorer stop waiting and just get on with the copy, filling the cache with the data to be written later?  Some of us don't want to wait that extra minute to get the job done.  I know whomever programmed the cutesy
    little graph wants to make sure we all see it, but...
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for