SY-TABIX value of a loop in other loop in other loop.

Hello Gurus,
I have a problem i want to modify some columns in final internal table and it is possible by using Transporting and Index but when i see SY-TABIX value it is not really giving particular loop iteration value. Because my present loop is in another loop and it is in another loop. Please gurus help me out
or
How to Insert particular filed columns  and how to use where clause in insert..
Thanks.

Hi !
Here are things you could do:
1. You can use nested loops with the WHERE statement on the inner loop. But this can be slow.
     This will look like this
               loop at i_tab1 into wa1
               loop at i_tab2 into wa2 where cond1 = wa1-cond1....
                 (   move wa2-field3 to wa1-field3.....)
                    modify i_tab1.
               endloop.
               endloop.
2. You can use the parallel cursor technique as suggested above.
     This technique speeds up processing of data significantly. Here it is:
     data lv_tabix type i.
          sort i_tab1 by field1 ascending.
          sort i_tab2 by field1 ascending.
          loop at i_tab1 into wa1
          read table i_tab2 transporting no fields with key cond1 = wa1-cond1 binary search.
          lv_tabix = sy-tabix.
               loop at i_tab2 into wa2 from lv_tabix.
                    if wa2-cond1 <> wa1-cond1.
                               exit.       
                     endif.
               ( move wa2-field3 to wa1-field3.....)
                    modify i_tab1.
                endloop.
          endloop.
Please let me know if you want more explanation

Similar Messages

  • Decrease sy-tabix value in Loop

    Hi Experts,
    I need to know that is it possible that we can decrease or change value of SY-TABIX.
    EXAMPLE:
    I am using a;
    loop at itab.  --> at this stage sy-tabix is 1.
    for instance current value of sy-tabix is changed to 4 and now I want to make it 3.
    in this case I want to read the 3 value in loop again.
    So is it possible that I can change my SY-TABIX value from 4 to 3 and read that 3rd record in the loop?
    endloop.
    can anyone let me know.
    thanks in advance.
    Regards,
    Yahya

    Hi
    this is not possible directly to change the values of system variables
    but the other way is there
    what you can do is to move the valuw of sy-tabix in a variable and then loop through the table to that value,
    like:
    lv_tabix like sy-tabix.
    loop at itab into wa where sy-tabix = lv_tabix.
    after loop statement.
    lv-tabix = sy-tabix.
    you code............
    before enloop .
    lv_tabix = sy-tabix - 1.
    endloop.
    I am not sure about the above code but you can try something like above.
    Thanks
    Lalit

  • Sy-tabix value has changed...

    Hi Gurus,
    I  am using a code like dis...this is not the actual code m using instad m sendin u a sample program so that u can understand the problem
    There is a selecvtion for Customer.
    sort itab by kunnr.
    loop at itab.
    on change of itab-kunnr.
    wkunnr = itab-kunnr.
      read table zitab with key kunnr = itab-kunnr.
    endon.
    if itab-kunnr = wkunnr.
    wdmbtr = wdmbtr + itab-dmbtr.
    endif.
    at end of kunnr.
    ftab-kunnr = wkunnr.
    ftab-dmbtr = wdmbtr.
    append ftab.
    endat.
    endloop.
    Now my problem is that  AT END OF Kunnr is working fine for the first customer or say for single customer but when there are multiple customers  AT END OF kunnr is triggring for each entry.......
    In debug MOdei can see that as soon as read table  syntax is used the tabix value is changed....
    So Can anyone suggest what is the solution....
    Regards,
    Raman

    This is the Declaration
    DATA:  BEGIN OF ITAB OCCURS 0,
                      KUNNR      LIKE BSID-KUNNR,
                      BELNR      LIKE BSID-BELNR,
                      BUKRS      LIKE BSID-BUKRS,
                      GJAHR      LIKE BSID-GJAHR,
                      BUZEI      LIKE BSID-BUZEI,
                      SHKZG      LIKE BSID-SHKZG,
                      VALUT      LIKE BSID-ZFBDT,
                      SGTXT(70)  TYPE  C,
                      ZFBDT      LIKE BSID-ZFBDT,
                      ZBD1T       TYPE BSID-ZBD1T,
           ZBD2T       TYPE BSID-ZBD2T,
           ZBD3T       TYPE BSID-ZBD3T,
           REBZG       TYPE BSID-REBZG,
           NETDT       TYPE BSID-BUDAT,
                      ZUONR      LIKE BSID-ZUONR,
                       BLART      LIKE BSID-BLART,
                      DMBTR      LIKE BSID-DMBTR,
                      SPART       TYPE VBRK-SPART,
                      DAY    TYPE RFPOSX-VERZN,
                      FLAG TYPE C,
                      CITY        TYPE KNA1-ORT01,
           NAME1       TYPE LFA1-NAME1,
                     CR_DR1(4)  TYPE C,
                      PSWSL      LIKE BSID-PSWSL,
                      ZTERM      LIKE BSID-ZTERM,
                      VBELN      LIKE BSID-VBELN,
                      UMSKZ      LIKE BSID-UMSKZ,
                      KLIMK      LIKE KNKK-KLIMK,
                      VTEXT      LIKE TVZBT-VTEXT,
                      ADV        LIKE BSID-DMBTR,
                      REBZT       TYPE BSID-REBZT,
                      XBLNR      LIKE BSID-XBLNR,
                      VTEXT1(70) TYPE  C,
                       FKLIMK    LIKE KNKK-KLIMK,
                      ABC(4)     TYPE C,
                    AGRO(4)        TYPE C,
                      BIO(4)        TYPE C,
                      SKFOR      LIKE KNKK-SKFOR,
                      SSOBL      LIKE KNKK-SSOBL,
                      CTLPC      LIKE KNKK-CTLPC,
                      OEIKW      LIKE S066-OEIKW,
                      OLIKW      LIKE S067-OLIKW,
                      OFAKW      LIKE S067-OFAKW,
                     NAME1      LIKE LFA1-NAME1,
                      BUDAT      LIKE BKPF-BUDAT,
                      D_DMBTR    LIKE BSID-DMBTR,
                      S_DMBTR    LIKE BSID-DMBTR,
                      VORGN      LIKE BSEG-VORGN,
                      WERKS      LIKE BSEG-WERKS,
                      NAMESO     LIKE KNA1-NAME1,
                      NAMEAM     LIKE KNA1-NAME1,
                      NAMERM     LIKE KNA1-NAME1,
                       NAMEDR     LIKE KNA1-NAME1,
       END OF ITAB.

  • Outputting sy-tabix value in serial number.

    Dear expert,
    I have all the data stored in the internal table. I need to output it in the same serial number as it is in internal table along with the serial number (sy-tabix value) against this internal table data in report output display.
    Thanks in advance.

    Hi,
    Loop at itab.
    Itab-serialnum = sy-tabix.
    Modify Itab.
    endlloop.
    Naxt call alv display by passing the serial num filed catalog.
    Prabhudas

  • How to stop execution in while loop without stopping execution of other loops in the same vi

    HI
    I am quite a novice in Labview.
    I have a problem in my project. I used a while loop inside my vi to build an array of ten values along with other loops. Then I used a stop button to stop manually the while loop. But it seems like the loop doesn't stop in the middle of the array building and so other loops in the vi doesn't work until the while loop finishes building the array and as soon as while loop execution is over, the complete vi stops. But all that I wanted was to build the array using the shift register along with the control to stop building array anytime. And not to stop execution of other structures when the while loop finishes.
    Can anyone help me?
    Rahul

    Hi Rahul,
    Modified ur Vi to work with single button.
    But the subtract case is not in any loop.
    So, once both the loops stop, the subtract case will execute only once. Depending on state of subtaract boolean at that time, corresponding case will be executed and the Vi will stop.
    so think of a logic where u can put this also in a new loop.
    Or you can also incorporate it in one of the two loops and pass the other loop's data to it.
    Let us know how you will proceed in this regard
    I am posting your VI as well a VI with my modifications VI in Labview 7.0 so that Thomas can give his suggestions too
    Plus, always keep a time delay in your while loops.
    Oh sorry, the "arrayinouttestnewfinal.vi" is the modified vi
    Regards
    Dev
    Message Edited by devchander on 01-10-2006 06:15 AM
    Message Edited by devchander on 01-10-2006 06:19 AM
    Attachments:
    arrayinouttestnewfinalnew4.vi ‏59 KB
    arrayinouttestnewfinal.vi ‏63 KB

  • A tunneled Excel refnum goes from a valid value to a NULL between iterations of a For Loop?

    How would a tunneled Excel refnum go from a valid value to a NULL between iterations of a For Loop?
    For
    some reason this works find in one VI and when executed and not in
    another.  Here's screen shots of the highlighted execution with probes
    appropriately. The "Open" refnum is passed into "Performance Test -
    Write Data To Files.vi".  That's where the trouble is.  You can see
    that it goes into the For Loop.  The first iteration is okay, but the
    second and subsequent iterations have the refnum NULL.  See images
    below.
    (I don't know how to delete an accidental double post, sorry)
    Message Edited by James DiLiberto on 01-22-2008 01:48 PM
    Attachments:
    Second Iteration1.jpg ‏158 KB
    First Iteration1.jpg ‏145 KB
    Second Iteration Error Dialog1.jpg ‏20 KB

    Is there any chance that the Insert Data Into Excel VI is closing the reference or that it is closed anywhere else (e.g. through a local or by having its owner destroyed)?
    I wouldn't expect the numeric value of the reference to change to 0, but since ActiveX is an external resource, I suppose that it's possible that the probe shows the number only if the resource is actually accessible.
    Try to take over the world!

  • Other choise to while loop polling?

    Hi!
    I have worked with USB-bus oscilloscope and trying to build labview software using dll-librarys. Almost everything works BUT... how i can poll dll-library (*.vi) which is external "counter"? I know that dll is returning number of samples from scope hardware and i know number of those samples are 3072 blocks. Now when I polling that dll in while loop it returns just something (2999 or 3001 or 2989 or something like that). I think that dll returns that value which is exactly time in dll when while loop poll it? Hardwares speed is 50Msps 8-bit. How else i can poll that dll? Or other choises to while loop, where i have to poll something and when it returns something then do something...
    Thx again

    Here are two choices (could be more out there):  Active Polling or Event Registration
    Active polling = use of while loop with your DLL calls.  This makes sense if you know there is always data available to retrieve.   Caveats include processor usage, which can affect UI response and processing.
    Event Registration = use of Event Structure with Callback (e.g. Active X callback), such that your hardware notifies the OS when data is ready.  This makes sense if you are not always capturing data in your top level code and if your hardware driver includes callbacks.  Caveats include more complex programming (understanding of Active X, dynamic event registration, event structure, etc.)
    If you're having trouble understanding how you might integrate these into your main application, in addition to these forums, there are also NI Certified Alliance Partners (like us) that can help you get going.
    Message Edited by LabBEAN on 08-17-2009 12:33 PM
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs

  • Loops are installed, but not in Loop Browser

    Hi All!!
    I have just bought the four (newly packaged) GarageBand Jam Packs. I was so impressed with the demo "song" Victory (Full), that I have decided to use those loops for a project I am working on.
    The "Victory" loops all play in the loop browser (all 137 of them) when I have "Victory (Full)" loaded for playback in GarageBand.
    But.......
    When I start a new project, the Victory loops are not available in the loop browser. This is rather perplexing for me.
    What do I need? I need to find a solution to see these loops and maybe others that are missing (but not missing).
    Thanks in advance for your help.
    Rodger GW

    Yes. The demo song is in D, and I have ensured that I have set the new song to be in D.
    I have also trashed the preferences, trashed the indexes, rebuilt the loop browser by dragging the loop folders from all sources (sources being those defined by the install script), and ensured that the Keyword Browsing is unckecked and I have reset the keyword layout.
    The only thing I have not done is the laborious task of importing each of the 137 Victory files into the the track window then translating each individual part as an Apple Loop. The reason for this is two fold: 1. I am on the lazy side of life and think there should be a quicker way; and 2. I have checked the other files contained in Library -> Audio -> Apple Loops -> Apple -> Jam Pack 4 - Symphony Orchestra are available in the loop browser under the Jam Pack 4 and the Loops Pull Down Menu.
    I am very unsure of the next thing to try.
    Rodger GW
    PS I have even tried to have those loops from the "Victory (Full)" file be selected as favorites. They now reside in Home -> Library -> Audio -> Apple Loops -> User Loops -> SingleFiles, but do not appear in the Favorites tab in the Loop Browser in any new project.
    Thanks in Advance,
    RGW

  • GB won't open- This is what I get... Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser

    Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser.  Then I get this message...
    Instrument Library Invalid
    GarageBand Ecpects a valid instrument foledr in /Libraty/Application Support/GarageBand
    Please choose a valid instrument Library folder or quit and re-install GB
    Any solutions?

    Is this a new installation of GarageBand or has it worked before on the same computer?
    Or have you transferrred your GarageBand from a different computer?
    The error message is saying, that your GarageBand installation is incomplete. There are essential foldrs missing in your system library. 
    Check, if indeed both folders are missing or if only the permissions are set incorrectly.
    Your system library (the folder "System" directly on your system drive) should have the following folders inside the folder "Audio", and they need to be readable by the system and by administrators.
    And in the folder /Library/Application Support there should be the Instrument Library.
    If these folders do not exist (or no longer exist), restore them from your backup-  If your GarageBand version is a new installation, the application may not hve been downloaded or installed completely, then reinstall GarageBand.
    What is your GarageBAnd version, and how did you install it originally?
    Regards
    Léonie

  • Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    raise your I/O buffer and raise your Process Buffer Range.
    Logic Pro>Preferences>Audio>Devices>Coreaudio

  • HT201496 Hai there. I am facing trouble with my garageband apple loops.i don't see apple loops in my browser since quite some time i don't know what has happened to it and how it happened . i just wanted to learn some of basic things about music.can you h

    Hai there. i am having a trouble with the garage band apple loops to get into my macbook pro. . i had it some time back and i dont know where it has gone and how it get it back. is there anyone to help me to get the loops back into the browser . i will be grateful to you if some one can help me with it/ thanks.

    First check, if you do not accidentally have hidden or filtered your loops:
    Uncheck the "Filter for more relevant results" option in the Audio tab of the GarageBand Preferences.
    And the drop down menu on top of the Loop Browser should be set to "Loops", not to some Jam Pack or other collection.
    If you still don't see any loops, check if you have set your project to a special signature, like 9/8, for that no standard loops do exist.
    Then check, if any loops actually are installed in your system Library: Depending on your GarageBand version you should find the standard loops in the Audio folder of your system Library (Application Support > GarageBand):
        Your System Drive > Library > Audio > Apple Loops
    If the Loops are installed, but GarageBand does not show them, you need to rebuild your Apple Loops Index: See the FAQ for how to do it:
    Re-Index GarageBand's Loops
    This requires two steps:
    erase the old Apple Loops Index by deleting everything in
    Your System Drive > Library > Audio > Apple Loops Index
    and then rebuilding the Loops Index by dragging the folder containing all of your loops onto the Loop Browser in GarageBand.
    If no Loops are installed in your Library, you will have to restore them from your Backup.
    Regards
    Léonie

  • When I open Garage Band '09 it says" No Apple Loops found; There are no Apple Loops installed on your System. Please reinstall the Apple Loop Package".

    I have garage band '09 on my mac.  When I open garage band a little notice pops up saying "No Apple Loops found; There are no Apple Loops installed on your System. Please reinstall the Apple Loop Package"  I have followed the instructions on the apple web page and it didn't work.  I looked in all of the locations on my mac and all of the folders that should contain apple loops are empty.  Is there a way I can redownload the apple loops to my mac without buying garage band '11 or one of the jam packs????????????????

    swimmerT wrote:
    I have followed the instructions on the apple web page and it didn't work.
    without knowing what you did, it's impossible to guess what might be wrong
    swimmerT wrote:
    Is there a way I can redownload the apple loops to my mac
    no
    swimmerT wrote:
    without buying garage band '11 or one of the jam packs????????????????
    yes!!!!!!!!!!!!!!!!!!!!! reinstall GB 09:
    http://www.bulletsandbones.com/GB/GBFAQ.html#reinstallgb
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • HT1476 my iPhone 4 will no longer charge. It is also not recognised in iTunes. There seems to be a problem with the connector slot. I've tried other cables and other computers/plugs but the connection is not being made. Any suggestions?

    my iPhone 4 will no longer charge. It is also not recognised in iTunes. There seems to be a problem with the connector slot. I've tried other cables and other computers/plugs but the connection is not being made. Any suggestions?
    It seems to me that the connection port is faulty.
    George

    Looks like a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Problems emailing any other file format other than a .jpg

    I am having problems emailing any other file format other than a .jpg in mac Mail in Leopard. Is anyone else having this problem?
    I have tried PDF, .tif and .doc documents, and they are small files, less than 150 kb. I have checked to ownership on the images and it says that I can read and write to them. I have also checked with my ISP and my mailbox capacity is 10 MB and was recently emptied. I am able to log into my ISP's webmail portal and send these types of attachments through there successfully, which has made me convinced that it has to do with Leopard or Mac Mail because I did not have these problems in Tiger.
    When I send a message like this, Mail says, "Sending" for a while, and then says "Cannot send message using server:(Name of my server) Sending the message content to the server failed. Select a different outgoing mail server."

    I've been sending .doc files with/without also .jpg as attachments without problems so it is possibly not a Leopard problem. I know this doesn't solve your problem though. Someone else may be able to solve the problem.

  • How do I hide my mailbox and mail contents from other users, leaving other functions of my iMac accessible?

    How do I hide my mailbox and mail contents from other users, leaving other functions of my iMac accessible?

    You don't have to shut down the computer to switch accounts. All you do is click the Apple symbol in the upper left and choose Log Out and that's it. You can also set up Faster User Switching by:
    1. Open System Preferences - Accounts
    2. Click Login Options
    3. Check the box called "Show fast user switching menu as" then choose from either icon, short name or name.
    Then when someone wants to switch users they can. The advantage of this method is if you are have a document open and don't want to close it the document will remain open. If the other user attempts to shut down the computer they can't until you have logged out thereby saving all your data.
    A very simple and elegant solution.

Maybe you are looking for

  • No low battery alarm when on the call. (Nokia 700)

    There must be some bug with the low battery alarm on Nokia 700. When the phone is on a long call, it just shuts down without any alarm at all. I had this issue several times. My battery shows that it's full for about 30% or something. Then I call and

  • FW disks not on desktop but are mounted, no owner?

    This is a weird problem that I wasn't having yesterday but am having today... I'd appreciate some help and advice. I have 2 external fire wire 400 drives daisy chained together and going into the back of my G4 450 runnining os10.4 They have always mo

  • URGENT help needed:Address data missing after QA Refresh from PRD

    All, Address data for almost all user-ids are missing after QA Refresh from PRD. In QA, after importing the User-Master although its shows successful. The detailed log shows:    Data inconsistency in USR21. Start RSADRCK2 (See Note 459763)    Exit pr

  • Validation on line items  not triggering for F-32 tcode

    Hi Experts, I am trying  to put a validation on F-32.  using OB28   but not able to trigger OB28 while simulating the selected documents in F-32. Also i want to know how systems comes to know what all documents has been selected by the user in F-32 f

  • Anyone here locate a maual for GB, with index, This wouldbe great

    Anyone find a good online tutoring sight with good quick  detailed outline of whats covered and to the point tutorial. Asking too much ?$ months into GB and I feel having a manual downloaded   would allow me to review the index. Finding solutions req