ABAP-- diff between sy-sy-tabix and sy-index

Hi Guru's,
Pleae can anybody expalins me what is the difference between sy-tabix and sy-index(Loop Index) ?
Because in one case i am Modifyimg the internal table inside the do loop by giving sy-index ((Index of Internal Tables)(MODIFY scarr_tab INDEX sy-index FROM scarr_wa TRANSPORTING currcode. )  in the syntax and in other case inside loop statement i am modifyng same record by giving sy-tabix MODIFY scarr_tab INDEX  sy-tabix FROM scarr_wa TRANSPORTING currcode.) in the syntax.
in both cases its working fine but i am not getting which one i have to use  where to modify the internal table?
regards
SATYA

Hi Henry,
SY-INDEX is the value of the current iteration. It is applicable for the following programming constructs in ABAP -
DO...ENDDO.
WHILE...ENDWHILE.
SY-TABIX (TABle IndeX) is applicable to internal tables. If you scroll down in the link which Eddie has given, you will find a more detailed explanation for sy-tabix and which statements affect its value.
Regards,
Anand Mandalika.

Similar Messages

  • Diff  b/n sy-tabix and sy-indx

    diff  b/n sy-tabix and sy-indx ?

    Hi Henry,
    SY-INDEX is the value of the current iteration. It is applicable for the following programming constructs in ABAP -
    DO...ENDDO.
    WHILE...ENDWHILE.
    SY-TABIX (TABle IndeX) is applicable to internal tables. If you scroll down in the link which Eddie has given, you will find a more detailed explanation for sy-tabix and which statements affect its value.
    Regards,
    Anand Mandalika.

  • Diff between at line selection and HIDE technique

    hi all,
           wht is the diff between at-line-selection and HIDE technique.
            wht r code instructor
            wht is extended testing
            how can we find selected error records in session                          method ex:-if there r errors in 4th 9th 13th record.
    tthnx in advance

    HIDE
    Syntax
    HIDE dobj.
    Effect
    This statement stores - in the current list level - the content of the variable dobj together with the current list line whose line number is contained in sy-linno. The data type of the variables dobj must be flat and no field symbols can be specified that point to rows of internal tables, and no class attributes can be specified. The stored values can be read as follows:
    For each user action in a displayed screen list that leads to a list result, all the row values stored using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables.
    If a list row of an arbitrary list level is read or modified using the statements READ LINE or MODIFY LINE, all the values of this row stored using HIDE are assigned to the respective variables.
    Notes
    The HIDE statement works independently of whether the list cursor was set. In particular, variables for empty list rows can be stored - that is, rows in which the list cursor was positioned using statements like SKIP.
    The HIDE statement should be executed immediately at the statement that has set the list cursor in the row.
    Outside of classes, constants and literals that cannot be read in list results and in the statement READ LINE can be specified for dobj outside of classes.
    Example
    Storing square numbers and cubic numbers for a list of numbers. The example shows that arbitrary variables can be stored independently of row content. In the real situation, one would more likely store only the number and execute the calculation, when required, in the the event block for AT LINE-SELECTION.
    REPORT ...
    DATA: square TYPE i,
          cube   TYPE i.
    START-OF-SELECTION.
      FORMAT HOTSPOT.
      DO 10 TIMES.
        square = sy-index ** 2.
        cube   = sy-index ** 3.
        WRITE / sy-index.
        HIDE: square, cube.
      ENDDO.
    AT LINE-SELECTION.
      WRITE: square, cube.
    AT LINE-SELECTION
    Syntax
    AT LINE-SELECTION.
    Effect
    This statement defines an event block whose event is triggered by the ABAP runtime environment during the display of a screen list - provided the scren cursor is on a list line and you select a function using the function code PICK. Through the definition of this event block, the standard list status is automatically enhanced in such a way that the function code F2 and, with it, the double-click mouse function is linked up to the function code PICK.
    Note
    If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.
    Example
    This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.
    REPORT demo_at_line_selection.
    START-OF-SELECTION.
      WRITE 'Click me!' COLOR = 5 HOTSPOT.
    AT LINE-SELECTION.
      WRITE: / 'You clicked list', sy-listi,
             / 'You are on list',  sy-lsind.
      IF sy-lsind < 20.
        SKIP.
        WRITE: 'More ...' COLOR = 5 HOTSPOT.
      ENDIF.
    Thanks,

  • Diff between the Start routine and Update rules?

    Hi Gurus
    Diff between the Start routine and Update rules?
    Thanks in advance
    Raj

    Hi,
    Routines are like conditions or business rules that could be applied to filter the data while entering the BW system or could be used to apply certain conditions on the info objects itself.Update rule level you manipulate your data and  write your start routine.
    There are 4 types of routines
    1. Start routine- Could be used at two levels (transfer rule level and the Update rule level)
    This Start routine written at the transfer rule level helps filter the necessary data coming from the source system.
    For Example: If you decide to extract data that contain only quantity greater than 500 , then you could specify the Start rouitne to achieve this.
    The Start routine at the Update rule level provides similar functionality but at this point it helps direct specific data to 
    different data targets.  For Example: If there 3 data targets being fed from the Infosource, you may want to apply some condition to each data target, like send year 2000 data ti Data target1, 2001 to data target 2 and so on.  This can be achieved by using Start routine at the Update rule level
    2. Transfer Routine: This feature is available at the transfer rule levels
    While performing the transfer rules operation, there are 4 features available to the developers to create business rules on top pf the Infoobjects.
    1. You could do a one to one mappping of the Infoobject
    2. Provide a constant value
    3. Include a formula
    4. Write an ABAP routine.
    These 4 options refers to the transfer routine
    3. Update Routine:
    The limitations of just having 4 options in the transfer routine is overcome at the update rule level. There are various other 
    sophisticated features avaialable apart from the 4 options mentioned above. These business rules could be specified pertaining to each data target.
    4. Conversion Routine: It provides functionality to do Currency and unit conversion.
    Regards.

  • Difference between sy-tabix and sy-index?

    tell me about sy-tabix and sy-index?what is the difference between sy-tabix and sy-index?
    Moderator Message: Please search before posting. Read the [Forum Rules Of Engagement |https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] for further details.
    Edited by: Suhas Saha on Jun 18, 2011 5:33 PM

    HI,
        Here is a brief description of difference between SY_TABIX and SY_INDEX and using them with several conditions.
    SY-TABIX
    Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.
    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
    LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
    READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
    SEARCH <itab> FOR sets SY-TABIX to the index of the table line in which the search string is found.
    SY-INDEX
    In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
    Hope this helps.
    Thank you,
    Pavan.

  • Diff between Phy inv number and Phy Inv reference in Mi01,Mi09

    Hello Experts....
    need ur help!!
    Can any one explain me what is the diff between Physical inventory number and Physical Inventory Reference in MI09 tcode.Entry count w/o reference document.
    Thanks in advance

    sapppfresher wrote:
    Hello Experts....
    >
    > need ur help!!
    >
    > Can any one explain me what is the diff between Physical inventory number and Physical Inventory Reference in MI09 tcode.Entry count w/o reference document.
    >
    > Thanks in advance
    hi,
    Physical inventory number
    Specify a number or name under which several inventory documents can be grouped together for improved processing
    Reference Number for Physical Inventory
    Specify the number of a document outside the system that relates to an inventory transaction.
    means if you are using MI01 then you have to maintain the data in mi04  . but you are using mi09 no need to maintain the datad directly you are go through with mi07 for posting the differences.
    thanking you.
    Edited by: A.Purihella on Oct 13, 2011 8:19 AM

  • Diff. between R/3 CIC and CRM CIC

    Hi,
    What is the diff. between R/3 CIC and CRM CIC?
    Thanks

    Hi Devi,
    In CRM, SAP providing Marketing activities, Services and sales Activities.
    We can call ECC transactions by using Transaction Launcher.
    We use scripts in CRM (Interactive and Remainder)
    For more information visit: http://help.sap.com/saphelp_crm50/helpdata/en/b3/bbc13806684a1eb86b2821ab92827f/frameset.htm
    Reward points if helpful.
    Srini.

  • Diff between stock transfer order  and stock transport order

    pls any body tell me diff between stock transfer order  and stock transport order .is both are use for same pursose?pls explain

    Check
    very imp stock transfer and stock transport order

  • Diff between Item Amount Check and Stochastic Block

    Hi,
    what's the diff between Item Amount Check and Stochastic Block in LIV??

    Item Amount Check
    The system calculates the sum of the value invoiced so far for the
    order item and the value of the current invoice and compares it with
    the value limit of the purchase order. It then compares the
    difference with the upper percentage and absolute tolerances
    defined.
    Stochastic Block
    You can block all invoices to check them again through Stochastic block automatically. If the stochastic block is active and you post an invoice that is not subject to any other blocking reason, it can be selected for blocking.
    Please make a note that- A stochastic block is not set at item level, but for the whole invoice. If a stochastic block is set when you post the invoice, the system automatically sets an R in the field Payment block in the document header data; there is no blocking indicator in the individual items.
    In Customizing for Invoice Verification, you can define:
    -If stochastic blocking is active
    -The degree of probability of a block. You set a threshold value and a percentage for this.
    If you enter a threshold value of zero and a percentage of 99.9%, all invoices would then be blocked automatically.

  • Diff between R/3 ECC5 and ECC6

    Dear All,
               Can someone please enlighten me about the diff between R/3 ECC5 and ECC6?
    Thanks,
    Ashish

    May be there are lot of differences but broadly:
    the Inclusion of Netweaver Components happened from 4.t to ECC5.0 and ECC 6.0
    In ECC 5.0 the component versions of netweaver are of different versions but in ECC6.0 all componet versions of netweaver are same and latest.
    Unicode is another important thing for ECC6.0 and 5.0
    AP ECC 5.0 is part of SAP ERP 2004---- which runs on SAP NetWeaver 2004
    SAP ECC 6.0 is part of SAP ERP 2005 (mySAP 2005)--- runs on SAP NetWeaver 2004S
    Main difference is application components and availability of new features.
    for new features/changes in core modules like FI, MM etc.. e.g GL function is new in ECC 6.0..
    For Functionality Differences between the SAP Versions.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://www.id.unizh.ch/dl/sw/sap/upgrade/Master_Guide_Enh_Package_2005_1.pdf
    To find the changed transactions between SAP versions pls check the table PRGN_CORR2.
    also refer,
    http://www.id.unizh.ch/dl/sw/sap/upgrade/Master_Guide_Enh_Package_2005_1.pdf
    Also Pl. follow the link for difference between ECC 6 & ECC 5.0
    Release Info:
    ECC 6.0:
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/68805bb88f297ee10000000a422035/frameset.htm
    ECC 5.0:
    http://help.sap.com/saphelp_erp2004/helpdata/en/c6/feda40ebccb533e10000000a155106/frameset.htm
    http://solutionbrowser.erp.sap.fmpmedia.com/
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Diff between Precalculated Value set and Precalculated web template

    Hi Friends
    Can any one tell the Diff between Precalculated Value set and Precalculated web template
    Where we will use these
    Thanks

    Hi,
    The Reporting Agent is a tool used to schedule reporting functions in the background.
    The following functions are available:
    &#9679;      Evaluating exceptions
    &#9679;      Printing queries
    &#9679;      Pre-calculating Web templates
    &#9679;      Pre-calculating characteristic variables of type pre-calculated value sets
    &#9679;      Pre-calculation of queries for Crystal reports
    go through,
    pre-calculated value sets
    [http://help.sap.com/saphelp_nw04s/helpdata/en/28/734d3caa70ea6fe10000000a114084/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/84/00783b3af21f5ee10000000a11402f/content.htm]
    Pre calculating Web template:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/frameset.htm
    Basically when you have a Precalculated Template, the system first run a report (which has been scheduled) and read the data from there when you run your template. This can imrpove the performance respect to online read data.
    [http://help.sap.com/saphelp_nw04s/helpdata/en/6e/b5663a5fb46752e10000000a11402f/frameset.htm]
    [Pre calculated web template;
    Hope this helps...

  • Diff between create proc is and as

    Dear all,
    I want to know diff between "create procedure is" and "create procedure as".I tried searching on net but didnt find please dont mind.
    Regards

    As Justin says, there's no difference.
    Except the semantics of the English language. We would typically say, "do this action AS follows..." and "this thing IS..." which in terms of PL/SQL would translate as... e.g.
    CREATE OR REPLACE PROCEDURE myproc AS...... where the action is the creating or replacing of the procedure...
    and
    PROCEDURE myproc IS...... where the procedure is just being defined, as it would be in a package.
    It makes not difference to PL/SQL, but I like to write it so it reads correctly for me when I do it.
    ;)

  • Diff Between Dashboard 4.0 and 4.1

    Hi I just download
    SAP Crystal Dashboard Design 2013
    trial Version
    But I want to know what is the diff between Dashboard 4.0 and 4.1
    My Old Version is 6.0.4.0, Build 14,0,4,738
    And New One is
    Dashboard 4.1 SP1, Version 14.1.1.1036
    Can any one help

    Hi,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/809f9f8e-8f32-3110-f8bf-e34cd2298343?QuickLink=index&overridelayout=true&58858231833809
    SAP - Steer a course for business success with affordable business intelligence
    Regards,
    Suman

  • Diff between LIS,LO,COPA and Genric extarctions.

    HI,
    Can anyone brief me the diff between LIS,LO,COPA and Genric extarctions.

    Hi,
    LIS:
    The Logistics Information System (LIS) is a data warehouse used for reporting in all of the application areas in Logistics (LO).
    Typically, the data stored in the LIS is an aggregated subset of the data stored for your transactions. For example, you would not usually find the full information stored with all sales order documents. Instead, you would find key field values such as order quantities, total order costs, and item costs. These values could also be stored according to business entities such as sales organization, distribution channel, division, and sold-to party. Similarly, the document detail for all material movements is typically not stored, but the aggregated stock quantities and values are stored based on plant and material.
    COPA:
    Profitability Analysis (PA) is an integrated component in the SAP R/3 system.
    All of the data related to profitability from the other SAP R/3 applications is mapped in CO-PA in accordance with the corresponding business transactions.
    This allows you to transfer into CO-PA billing document data from SD, cost object costs from CO-PC, and overall costs from overall cost controlling.
    CO-PA collects all of the OLTP data for calculating contribution margins (sales, cost of sales, overhead costs)
    CO-PA also has powerful reporting tools and planning functions
    Generic Extractors:
    When should you use generic extractors?
    Business Content does not contain a DataSource for your application.
    The application does not feature its own generic delta extraction method
    You are using your own programs in SAP R/3 to populate the tables
    The tools for generic data extraction can be used to generate an extractor for all applications.

  • What is the diffrence betweensy-tabix and sy-index

    hi
    can any one suggest me
    what is the diffrence betweensy-tabix and sy-index
    Thanks & Regards
    kalyan.

    Hi Kalyan,
    This question has been answered many times on SCN. Please make a search before posting a thread.
    Read the Rules of Engagement.
    Happy Posting.
    Regards,
    Chandra Sekhar

Maybe you are looking for

  • Place single quote around string

    Hi, I am wondering how I can Place single quote around string in the following. I have tried double and triple quote but it doesn't take variable name from rec.tablename. any idea rec.table_name ==> 'rec.table_name' rec.column_name ==> 'rec.column_na

  • I am getting error in SXMB_MONI.

    Scenario: file to file using bpm. I m using namespace http://bpm but when i checking error in sxmb_moni it shows namespace is http://f2f. i checked end to end and every where i m using namespace http://bpm.I don't know why it show another namespace.

  • Template changes in editable region do not propagate to child pages??

    I have a website that was created using Dreamweaver CS4. I have copied the directory onto a machine running CS6 and set it up as a new site in DW. I want to make a change in the editable region of a template that feeds all the pages. However, when I

  • Problem batch capturing

    FCP HD 4.5, easy set-up (DV-NTSC) I'm trying to batch capture 10 clips. Each clips starts to capture for about 3 seconds and then it stops and says "error". I try pressing "continue" but it keeps trying to capture the same clip and I get the same mes

  • Best settings for stoping junk mail?

    Hey all. just thought ill post a topic on junk mail settings. because i get alot of junk. i have greylisting off. minimum junk mail score: 5hits accepted languages: en, fr, de, ja virus filtering: on messages will be: deleted what settings are best t