Loop with Flag

Hi,
I want to compare the a field with its previous value in a internal table
i am using the following logic
flag = 0.
loop at it where x_field = s_field.
if not of flag is intial.
if it_field2 = v_field2.
endif.
endif.
move it_field2  to v_field.
endloop.
i dont want to use flag in this case can any one help.
thanks.

Hello Gayatri,
Try like this:
DATA:
v_index TYPE i.
LOOP AT itab INTO wa1.
  v_index = sy-tabix - 1.
  IF v_index GT 0.
    READ TABLE itab INTO wa2 INDEX v_index.
    IF sy-subrc = 0.
*   Compare WA1 & WA2
    ENDIF.
  ENDIF.
ENDLOOP.
Hope this helps.
BR,
Suhas

Similar Messages

  • Windows Update loops with a "Restart your computer to install important updates"

    Hi,
    I have a Windows 7 x64 machine that is permanently stuck trying to install the same update.
    I have followed various posts off of MS websites to rename SoftareDistribution etc. but none have helped.
    HAve tried
    1. Boot intoClean Boot Mode and try updating again.
    2. Run the Microsoft Fixit and see how it works.
    How do I reset Windows Update components?
    3. Try System Update Readiness tool by referring toWhat is the System Update Readiness Tool?.
    4. Run
    System File Checker tool and see how it works.
    The WindowsUpdateClient log posts the error 0x80070bc9
    CBS log has the following:
    2012-09-22 15:09:44, Info                  CBS    Session: 30251211_3937697323 initialized by client WindowsUpdateAgent.
    2012-09-22 15:10:49, Info                  CBS    Session: 30251212_293967167 initialized by client WindowsUpdateAgent.
    2012-09-22 15:10:49, Info                  CBS    Appl: detect Parent, Package: WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256, Parent: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.0.6000.16386,
    Disposition = Detect, VersionComp: EQ, ServiceComp: GE, BuildComp: GE, DistributionComp: GE, RevisionComp: GE, Exist: present
    2012-09-22 15:10:49, Info                  CBS    Appl: detectParent: package: WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256, parent found:
    Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385, state: Superseded
    2012-09-22 15:10:49, Info                  CBS    Appl: detectParent: package: WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256, parent found:
    Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7601.17514, state: Installed
    2012-09-22 15:10:49, Info                  CBS    Appl: detect Parent, Package: WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256, disposition
    state from detectParent: Installed
    2012-09-22 15:10:49, Info                  CBS    Appl: Evaluating package applicability for package WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256,
    applicable state: Installed
    2012-09-22 15:10:49, Info                  CSI   
    0000000e@2012/9/22:14:10:49.832 CSI Transaction @0x143fa50 initialized for deployment engine {d16d444c-56d8-11d5-882d-0080c847b195} with flags 00000002 and client id [25]"TI5.30251212_293967167:1/"
    2012-09-22 15:10:49, Info                  CSI    0000000f Pending transaction content must be resolved, cannot begin another transaction yet
    2012-09-22 15:10:49, Info                  CBS    Failed to get transaction analysis because of pending operations. Disposition from Analyze: 0x1 [HRESULT =
    0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to get inventory. [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CSI   
    00000010@2012/9/22:14:10:49.832 CSI Transaction @0x143fa50 destroyed
    2012-09-22 15:10:49, Info                  CBS    Failed to get inventory [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to load current component state [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to find or add the component family [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    ComponentAnalyzerEvaluateSelfUpdate call failed. [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to evaluate self update [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to evaluate non detect parent update [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to evaluate non parent [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    failed to evaluate single applicability [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to evaluate applicability [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Info                  CBS    Failed to get applicability on updates [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:10:49, Error                 CBS    Failed to call external evaluate applicability on package: WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256,
    Update: ActiveX [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
    2012-09-22 15:11:00, Info                  CBS    Trusted Installer signaled for shutdown, going to exit.
    2012-09-22 15:11:00, Info                  CBS    Ending the TrustedInstaller main loop.
    2012-09-22 15:11:00, Info                  CBS    Starting TrustedInstaller finalization.
    2012-09-22 15:11:01, Info                  CBS    Ending TrustedInstaller finalization.
    2012-09-22 15:12:45, Info                  CBS    Starting TrustedInstaller initialization.
    any help appreciated.
    Simon

    Any thoughts on this Windows Update log file?
    2012-09-23 06:58:42:926  964 fc0 AU Triggering AU detection through DetectNow API
    2012-09-23 06:58:42:926  964 fc0 AU Triggering Online detection (interactive)
    2012-09-23 06:58:42:926  964 dc8 AU #############
    2012-09-23 06:58:42:926  964 dc8 AU ## START ##  AU: Search for updates
    2012-09-23 06:58:42:926  964 dc8 AU #########
    2012-09-23 06:58:42:926  964 dc8 AU <<## SUBMITTED ## AU: Search for updates [CallId = {E9E12D70-F9B8-4D5E-B31F-84D0567F38D9}]
    2012-09-23 06:58:42:926  964 608 Agent *************
    2012-09-23 06:58:42:926  964 608 Agent ** START **  Agent: Finding updates [CallerId = AutomaticUpdates]
    2012-09-23 06:58:42:926  964 608 Agent *********
    2012-09-23 06:58:42:926  964 608 Agent   * Online = Yes; Ignore download priority = No
    2012-09-23 06:58:42:926  964 608 Agent   * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1
    or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1"
    2012-09-23 06:58:42:926  964 608 Agent   * ServiceID = {7971F918-A847-4430-9279-4A52D1EFE18D} Third party service
    2012-09-23 06:58:42:926  964 608 Agent   * Search Scope = {Machine}
    2012-09-23 06:58:42:926  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:42:942  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:020  964 608 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80190194
    2012-09-23 06:58:43:020  964 608 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80190194
    2012-09-23 06:58:43:020  964 608 Misc WARNING: DownloadFileInternal failed for
    http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80190194
    2012-09-23 06:58:43:020  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:036  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:114  964 608 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80190194
    2012-09-23 06:58:43:114  964 608 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80190194
    2012-09-23 06:58:43:114  964 608 Misc WARNING: DownloadFileInternal failed for
    http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80190194
    2012-09-23 06:58:43:114  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:114  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:238  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:238  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:254  964 608 Agent Checking for updated auth cab for service 7971f918-a847-4430-9279-4a52d1efe18d at
    http://download.windowsupdate.com/v9/1/microsoftupdate/redir/muauth.cab
    2012-09-23 06:58:43:254  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\AuthCabs\authcab.cab:
    2012-09-23 06:58:43:254  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:301  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\AuthCabs\authcab.cab:
    2012-09-23 06:58:43:301  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:301  964 608 Setup Checking for agent SelfUpdate
    2012-09-23 06:58:43:301  964 608 Setup Client version: Core: 7.6.7600.256  Aux: 7.6.7600.256
    2012-09-23 06:58:43:301  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:316  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:394  964 608 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80190194
    2012-09-23 06:58:43:394  964 608 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80190194
    2012-09-23 06:58:43:394  964 608 Misc WARNING: DownloadFileInternal failed for
    http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80190194
    2012-09-23 06:58:43:394  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:410  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:566  964 608 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80190194
    2012-09-23 06:58:43:566  964 608 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80190194
    2012-09-23 06:58:43:566  964 608 Misc WARNING: DownloadFileInternal failed for
    http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80190194
    2012-09-23 06:58:43:566  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:582  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:691  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2012-09-23 06:58:43:706  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:706  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wuident.cab:
    2012-09-23 06:58:43:706  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:831  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wuident.cab:
    2012-09-23 06:58:43:831  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:831  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab:
    2012-09-23 06:58:43:847  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:878  964 608 Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab:
    2012-09-23 06:58:43:894  964 608 Misc  Microsoft signed: Yes
    2012-09-23 06:58:43:909  964 608 Setup Determining whether a new setup handler needs to be downloaded
    2012-09-23 06:58:43:909  964 608 Setup SelfUpdate handler is not found.  It will be downloaded
    2012-09-23 06:58:43:909  964 608 Setup Evaluating applicability of setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256"
    2012-09-23 06:58:43:909  964 608 Handler FATAL: UH: 0x80070bc9: EvaluateApplicability failed in CCbs::EvaluateApplicability
    2012-09-23 06:58:43:909  964 608 Setup WARNING: CBS EvaluateApplicability returned error, error = 0x80070BC9
    2012-09-23 06:58:43:909  964 608 Setup FATAL: Applicability evaluation for setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256" failed, error = 0x80070BC9
    2012-09-23 06:58:43:909  964 608 Setup FATAL: SelfUpdate check failed, err = 0x80070BC9
    2012-09-23 06:58:43:909  964 608 Agent   * WARNING: Skipping scan, self-update check returned 0x80070BC9
    2012-09-23 06:58:43:909  964 608 Agent   * WARNING: Exit code = 0x80070BC9
    2012-09-23 06:58:43:909  964 608 Agent *********
    2012-09-23 06:58:43:909  964 608 Agent **  END  **  Agent: Finding updates [CallerId = AutomaticUpdates]
    2012-09-23 06:58:43:909  964 608 Agent *************
    2012-09-23 06:58:43:909  964 608 Agent WARNING: WU client failed Searching for update with error 0x80070bc9
    2012-09-23 06:58:43:909  964 608 Report REPORT EVENT: {099A21E5-F832-4CD6-8C41-5C65393A95E8} 2012-09-23 06:58:38:325+0100 1 148 101 {61CA813A-7585-442E-A66B-B0D15CE6BDC0} 1 80070bc9 SelfUpdate Failure Software
    Synchronization Windows Update Client failed to detect with error 0x80070bc9.
    2012-09-23 06:58:43:909  964 dc8 AU AU setting pending client directive to 'Reboot Pending'
    2012-09-23 06:58:43:909  964 60c AU >>##  RESUMED  ## AU: Search for updates [CallId = {E9E12D70-F9B8-4D5E-B31F-84D0567F38D9}]
    2012-09-23 06:58:43:909  964 60c AU   # WARNING: Search callback failed, result = 0x80070BC9
    2012-09-23 06:58:43:909  964 60c AU   # WARNING: Failed to find updates with error code 80070BC9
    2012-09-23 06:58:43:909  964 60c AU #########
    2012-09-23 06:58:43:909  964 60c AU ##  END  ##  AU: Search for updates [CallId = {E9E12D70-F9B8-4D5E-B31F-84D0567F38D9}]
    2012-09-23 06:58:43:909  964 60c AU #############
    2012-09-23 06:58:43:909  964 60c AU Successfully wrote event for AU health state:0
    2012-09-23 06:58:43:909  964 60c AU AU setting next detection timeout to 2012-09-23 10:58:43
    2012-09-23 06:58:43:909  964 60c AU Successfully wrote event for AU health state:0
    2012-09-23 06:58:43:925  964 608 Report CWERReporter::HandleEvents - WER report upload completed with status 0x8
    2012-09-23 06:58:43:925  964 608 Report WER Report sent: 7.6.7600.256 0x80070bc9 61CA813A-7585-442E-A66B-B0D15CE6BDC0 Scan 101 Unmanaged
    2012-09-23 06:58:43:925  964 608 Report CWERReporter finishing event handling. (00000000)
    2012-09-23 06:58:50:320  964 608 Report REPORT EVENT: {F6363B52-AEC5-4936-B915-5E9143A9FA30} 2012-09-23 06:58:43:909+0100 1 148 101 {61CA813A-7585-442E-A66B-B0D15CE6BDC0} 1 80070bc9 SelfUpdate Failure Software
    Synchronization Windows Update Client failed to detect with error 0x80070bc9.
    2012-09-23 06:58:50:320  964 608 Report CWERReporter::HandleEvents - WER report upload completed with status 0x8
    2012-09-23 06:58:50:320  964 608 Report WER Report sent: 7.6.7600.256 0x80070bc9 61CA813A-7585-442E-A66B-B0D15CE6BDC0 Scan 101 Unmanaged
    2012-09-23 06:58:50:320  964 608 Report CWERReporter finishing event handling. (00000000)
    2012-09-23 06:58:51:068  964 dc8 Shutdwn user declined update at shutdown
    2012-09-23 06:58:51:068  964 dc8 AU Successfully wrote event for AU health state:0
    2012-09-23 06:58:51:068  964 dc8 AU AU initiates service shutdown
    2012-09-23 06:58:51:068  964 dc8 AU ###########  AU: Uninitializing Automatic Updates  ###########
    2012-09-23 06:58:51:084  964 dc8 Report CWERReporter finishing event handling. (00000000)
    2012-09-23 06:58:51:443  964 dc8 Service *********
    2012-09-23 06:58:51:443  964 dc8 Service **  END  **  Service: Service exit [Exit code = 0x240001]
    2012-09-23 06:58:51:443  964 dc8 Service *************

  • Why writes LabVIEW only every 2 seconds the measured Value to a Excel (In a while loop with 100 ms tact)?

    Hi everybody,
    I use the myDAQ to measure speed, ampere, and voltage of a battery driven motor. (For Current measurement, i use a Sensor which outputs a 0-10 V signal). I placed all DAQ-Assitants in a while loop with a [Wait until next ms multiple] clock and set a value of 100 ms. I thougt, Labview will now write into my text file 10 times a second all values. In fact, as you can see in the attached text file, Labview only writes in a unsteady interval of 1-2 seconds a value, which is too less.
    The question: Did I do anything wrong, how can you create VI that writes you lets say 10 values a second into text file? Or is simply the DigitalMultimeter input of the myDAQ not able to sample a rate of 10 Hz? I couldn´t find any information in the specification handbook about the sample rate of the DMM?
    If anyone can help me would be great! Thanx a lot, Markus
    Attachments:
    Measure Speed+Current+Voltage into Excel.vi ‏175 KB
    Test7.txt ‏1 KB

    File I/O is not very efficient. I recommend that you do you file logging in a parallel task. Have one task do your data acquision. This task would then pass the data to be logged to the logging task via a queue. That way your file operations do not impact your data acquision. Also, express VIs are not very efficient. You would be better off accessing that directly using the DAQ VIs. The express VIs contain lots of steps that do not need to be done every time you call it such as initializing the device.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Here's the short-cut solution:
    Green Apple tracks are MIDI files (so to speak). If you drag one from the loop browser (Capitol C Orchestral hit, as you mentioned in this exable) directly into the arrange page it creates the MIDI file and the instrument to play it back on.
    HOWEVER.If you create and audio track first, THEN drag the green Apple loop onto that track, the loop will get "bounced" with the reverb in tact and you'll have the exact sound that you heard in the preview.
    Make sense?

  • Data acquisition loop with queue

    What I would like to do is have a data acquisition loop that samples a load cell at 500Hz and have another loop that runs much slower to run a state machine and display some data in real time.  The reason I want to sample the load cell so fast is to filter out some noise.  Making producer/consumer loops with a queue kind of makes sense but I don't really care about all of the samples, I just want to be able to read a real time filtered signal at certain times.  I looked at having just two parallel loops, one to acquire the data and the other to run a test and retrieve a real-time signal when I want but not sure how to pass data between the loops without using a queue.  You can do it with local variables but you are at risk of a race condition.  I hope this make sense.  I am sure this is a simple problem I just don't know what direction to go.  Thanks

    Good Evening secr1973,
    It sounds like you are on the right track.  You already know about the producer/consumer architecture; this is almost always the first step to the separation that I think you are after.
    The step that I think you are missing is a Case Structure around the enqueue element VI.  You likely have some event or specific pattern that you are looking for in the input signal.  You can have the output from this algorithm (likely a boolean) determine which case of the Case Structure to execute (Case 1: enqueue the element or Case 2: Do not enqueue the element).
    This, of course, leads to processing being done in the producer loop, which is quite the opposite of what you are trying to accomplish with the producer/consumer architecture.  You will have to decide if your processing is very simple or more complicated.
    If it is easy/fast, you can likely get away with doing this processing in the producer loop.  My guess is that your program falls under the category of do-it-all-in-the-producer loop because you are only acquiring at 500 Hz.
    If the application requires faster acquisition rates or if the logic is going to require some processing, you may want to implement a double layer producer/consumer architecture.  In this setup, you would pass all of the data from the DAQ producer to a second loop (using queue #1) that determines what to do with the data (to enqueue or not to enqueue...) and, if appropriate, write to a queue (queue #2) that the third loop can read.  The third loop would be where your state machine executes.
    If you have a quad core machine, each of these steps will execute on its own core.  If not, you will have a little more thread swapping; not a huge concern in most cases.  Here, we get into the art of programming more than the science.
    In any event, I think you will be OK with a little processing for the enqueue or not algorithm in the producer loop.
    Regards,
    Charlie Piazza
    Staff Product Support Engineer, RF
    National Instruments

  • How to create a textfile dynamically(with in the loop) with given data?

    Hi all,
    Can anyone Please guide me how to create a text file in the given path dynamically? (with in the loop) with given data.
    For example:
    <%
    String data1="name";
    String data2="address";
    for(int i=0;i<10;i++)
    create the textfile at c:/test/sample.txt//name of the each file created being "sample.txt"
    //contents of text file will be
    data1+i; //to get name1,name2.....
    data2+i// to get add1,add2........
    delete(sample.txt) //to enable to create another file in the loop with same name
    %>

    The code which Ashokan mentioned is not is not creating a file.
    i used code given below to create and write into it.
    But, not is writing into it. I don't konw, where i am going worng !
    Code
    String sample2="C:/Ash/sample2.txt";     
                                                                                    FileWriter fw = new FileWriter(sample2,true);
                                            BufferedWriter bw=new BufferedWriter(fw);
                                            bw.write("EMP ID");     
                                            bw.newLine();
    Please help
    Regards
    aSh

  • Hi guru's in ABAP loop with in the loop is possible

    hi guru's in ABAP loop with in the loop is possible

    Hi sri,
        it is posible clearly.
    see this code.
    data: t_spfli type table of spfli with header line,
           t_sflight type table of sflight with header line.
    select * from spfli into table t_spfli.
    select * from sflight into table t_sflight.
    loop at t_spfli.
      write:/ t_spfli-carrid,
               t_spfli-connid.
      loop at t_sfplight where carrid eq t_spfli-carrid
                                 and connid eq t_spfli-connid.
        write / t_sflight-fldate.
      endloop.
    endloop.
    Plz Reward if useful,
    Mahi.
    Message was edited by:
            Maheswari Chegu

  • Adobe Extension Manager loops with the following message: "The Extension Manager will now launch and

    Hi, whenever I open Dreamweaver CS5 I get this message:
    Adobe Extension Manager loops with the following message:
    “The Extension Manager will now launch and finish updating Dreamweaver”.
    Then the manager starts and I have to wait and click a few buttons until I can close it.
    How can I stop the Extension Manager popping up?
    Thanks for advice.

    Seems to be a lot of this going on. Wondering if we're wasting our time with this??!!

  • My phone keeps on looping with the apple logo after the blue screen.

    I tried to up date my iPhone 5s thru iTunes and got error statin iTunes has detected an iPhone in recovery mode. you must restore  this iPhone before it can be used with iTunes. Saw a video on you tube to use rec boot. So I downloaded rec boot v1.3 to try and kick it out of recovery mode and my phone keeps on looping with the white screen and black apple logo after the blue screen. I tried kicking it out with tiny umbrella and nothing happens. I was able to put the phone back in recovery mode and try using tiny umbrella while still connect to iTunes and hit exit recovery mode. under log tab it says sending exit recovery request to model # of the phone and nothing happen. My last option is to restore to factory settings which I don't want to do cause I would loose every thing. Can some one tell me I'm doing wrong or how to fix it. I would be greatly appreciate it the help. Thanks in advance. 

    Its looping because the iOS is not bootable which is why the iPhone booted to the ROM recovery mode.  Try using iTunes 12's 'Update' option when the iPhone is in recovery mode.

  • Display a message in a For Loop  with field value

    Hello All,
    pls,i wanna display a message in a For Loop with field value the code is:
    FOR Q1 IN GET_SUM_EXP_QUANTITY LOOP               .
    INSERT INTO PLN_PLAN_DISTRIBUTION_WAY
    (FIN_YEAR_CODE , MONTH_CODE , MATERIAL_CODE , DISTRIBUTION_WAY , EXPECTED_QUANTITY , GROUP_CODE)
    VALUES (:PLN_PLAN.FIN_YEAR_CODE , TO_CHAR(V_FROM_DATE,'MM') , Q1.MATERIAL_CODE , 1 , V_MONTHLY_QTY , Q1.GROUP_CODE);
    MESSAGE(':PLN_PLAN.FIN_YEAR_CODE'||:PLN_PLAN.FIN_YEAR_CODE ||' '||'V_FROM_DATE = '||TO_CHAR(V_FROM_DATE,'MM'), 'Q1.MATERIAL_CODE'||' '|| Q1.MATERIAL_CODE||' '||'DISTRIBUTION_WAY'||' = 1'||'EXPECTED_QUANTITY'||' = '|| V_MONTHLY_QTY||'GROUP_CODE'|| ' '|| Q1.GROUP_CODE);
    FORMS_DDL('COMMIT');
    How 2 display a message with the value:
    Q1.MATERIAL_CODE
    Q1.GROUP_CODE
    message(Q1.MATERIAL_CODE)     
    gave me numeric or value error on run time when pressed on button
    Regards,
    Abdetu..

    Thanks 4 reply..
    again they r in a For Loop as mentioned above...
         INSERT INTO PLN_PLAN_DISTRIBUTION_WAY
                                                           (FIN_YEAR_CODE , MONTH_CODE , MATERIAL_CODE , DISTRIBUTION_WAY , EXPECTED_QUANTITY , GROUP_CODE)
                                            VALUES (:PLN_PLAN.FIN_YEAR_CODE , V_REPAIR_MONTH , Q1.MATERIAL_CODE , 1 , V_REPAIR_Qty , Q1.GROUP_CODE);
    FORMS_DDL('COMMIT');
    The fields in bold r required to be displayed for testing puposes..
    this gives me numeric or value error in runtime..
    Best regards,
    Abdetu..

  • I'm in iphoto loop with Facebook that says there's a problem with IPhoto uploader. Try again later"  It's an eternal loop and no matter what it puts me back to Setup to publish IPHOTO every time and then will not publish.

    I'm in an Iphoto loop with iPhoto uploader error and Facebook.  I cannot post to Facebook as it sends me back to setup again and then says there is an error with iPhoto uploader.  "Try again later"  This has been going on since I joined Facebook.  Cannot figure out what to do

    have you tried posting this question in the iPhoto forum? https://discussions.apple.com/community/ilife/iphoto

  • Horizontal Looper with Spry

    In ASP there are ways and extensions for creating Horizontal
    Loops in dreamweaver.
    Is there a way to create a Horizontal Loop with a Spry
    Dataset?

    It would just be a table with an image in it.
    <table>
    <tr>
    <td><img src="spryimgdata"/></td>
    </tr>
    </table>
    The img src is pulled from a spry dataset, but instead
    repeating the images all the way accross I would want to display
    only 3 images then start a new row and do another 3 images, and so
    on.
    Thanks

  • How do you start a loop with an event and end the loop when u release ....

    How do you start a loop with lets say an event of some sort, whether it be holding down a key or pressing the mouse click and then stopping the loop when you release that key or mouse button.?
    double c = 1.8, i = 1, max = 90, exp = 0;
    final double inc = 0.002; //speed at while it increases
    boolean f = false, g = false;
    while (true)
        while (f == false && stopMeter == false) //increasing speed going up to 90
            exp = Math.pow (c, i);
            i += inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp > max)
                f = true;
                g = false;
            } //end if
        } //end while
        while (g == false && stopMeter == false)  //decreasing speed going down from 90
            exp = Math.pow (c, i);
            i -= inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp < 1)
                g = true;
                f = false;
            } //end if
        } //end while
    } //end whilethis is a snippet of my increasing increments. Its for an angle meter. I can't get it to stop, when the user clicks or does something... the program just gets stuck in an infinite loop. I am still new to java and i do not know how to fix this.

    You are in the wrong forum. Try this one instead: http://forum.java.sun.com/forum.jspa?forumID=31
    /M

  • DSO with flag "SIDs Generation upon Activation" deactivated

    Situation 1:
    I am using a standard DSO. The flag "SIDs Generation upon Activation" is not set. Note 1392715 states:
    "... If you deactivate this flag, reporting is still possible since missing SIDS will be created during the query runtime from 7.0..."
    Question 1:
    What is about characterstic values with already existing SIDS? Are they selected at query runtime? Are SIDS created during query runtime for all characteristic values, even if the characteristic value has got a physical SID in its master table? Gets a query on this DSO faster, when pyhsical SID will exist in the respect master tables?
    Situation 2:
    I am using an infoobject with flag "attribute only" in a standard DSO. The flag "SIDs Generation upon Activation" is not set in this DSO. This DSO is connected to a virtual virtual provider based on DTP. The query Q1 on the virtual provider reports the infobject with the flag "attribute only". The query Q2 on the DSO doe not report the infoobject with the flag "attribute only".
    Question 2:
    What is faster? A query on a virtual provider or a query on a DSO with flag "SID Generation upon Activation" is not set.

    Hi,
    Question 1:
    What is about characterstic values with already existing SIDS? Are they selected at query runtime? Are SIDS created during query runtime for all characteristic values, even if the characteristic value has got a physical SID in its master table? Gets a query on this DSO faster, when pyhsical SID will exist in the respect master tables?
    1. There will be there at base tables. Query runtime it won't select sids.
        i think no, it creates sid for the records which don't have sid.
      along with sid, its depend on the selections/filters/data volume on dso.
    Question 2:
      Query will be faster on dso. because virtual provider pulls data during report excution and may take more time than reporting on dso.
    Thanks

  • Threads in while loop with two data acq loops

    Good day, I am using two while loops to perform data acquisition from two different pieces of hardware inside a "main" while loop - a total of three while loops. I want each of the data acq loops to run as fast as possible. With this model will each data acq loop run in a separate thread or will they be running in the same thread because they are both inside the "main" while loop.
    I'm not getting the performance I would like and I'm looking at ways to optimize the execution. 
    Thanks
    John 

    I would have a loop for each of you data acquisition tasks and at least one, possibly two additional loops that will write your data to file. Let the acquisition loops collect the data as quickly as possible and simply queue it off for further processing. When these loops are in parallel LabVIEW will run them on separate threads. In addition you could have a separate loop with an event structure that could handle you UI interaction. This loop could control the overall application with respect to starting and stopping the tasks, etc. You don't really need to contain all these loops in any other loop or structure. They can all reside on the block diagram next to each other. Ideally you will create subVIs for the data acquision and data processing tasks.
    Message Edited by Mark Yedinak on 10-06-2009 04:29 PM
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for

  • How can i Upload Files from my Flex 2.0 Application?

    How can i do a Upload File funtionality with Flex 2.0? Do i have to make the component? How is the code in Flex/ Action Script to make this possible?. I'm new in this Flex world and it seems to me very interesting to make RIA's Applications; in fact

  • Calling Stored Procedure with in Stored Procedure

    I have one stored procedure A, I want to call Stored procedure A from Stored Procedure B and want to give input parameter to Stored Procedure A within Stored Procedure B using while loop. i.e I have one stored procedure A which uses Telephone number

  • Maximum number of pages in Smartforms/Sapscript

    Hi I have to print some very large invoices (between 1000 and 3000 pages) and it does not work with Adobe forms. So I would like to know approximately the maximum number of pages that it is possible to print in Smartforms and Sapscript. And then if p

  • HT2905 how to delete duplicated songs in itunes library

    How to delete duplicated songs from itunes library

  • Experimenting with Layers - Failure

    MY PREMISE - I have always used tables in DW and now they are universally shunned (to my delight). Seems like Div tags and layers are the new thing. Great to work with in DW. BUT my first dance with them in DW is a failure. MY PROBLEM - My page (www.