Number increment trouble

I'm using Flash 8 -- Actionscript 2.0
I've created a quiz that i want to keep track of the user
score. i've created a function that, whenever the learner clicks to
check the answer of his/her question, checks the correct answer
versus what the person picked. I've created a function to play a
movie correct movie clip or incorrect movie clip depending on the
situation. i've also tried to add one to the user score each time
theperson is right, but so far, i'm only getting the first
addition, and nothing since (my trace result keeps coming back as
1...) can someone show me where i'm going wrong?

Does the timeline have more than one frame, perhaps with a
gotoAndStop or gotoAndPlay back to this frame with this code. If
so, perhaps its resetting userScore back to zero each time that
happens.
e.g. if you have this on frame 1:
var userScore:Number;
userScore = 0;
trace(userScore)
userScore++
and this on frame 2:
gotoAndPlay(1)
then you will never see a trace of 1 because its being reset
to zero each time.

Similar Messages

  • Sequence number - increment one for every 3 rows

    Dear All,
      I want to get a sequence number /group number, which increments 1 for every 3 rows. 
      For Example:
       Seq     Name   
        1          a
        1          b
        1          c
        2          D
        2          E
        2          F
        3          G
        3          H
        3          I
        4          abc
        4          aaa
        4          bbb
    Is there a function to do this?

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. Did you read the header of this forum?? But besides being rude, you are also ignorant.  A table has no ordering, so
    there is no concept of every third row. What are you using for a sort key? What happens when a new row is added to or deleted from this table? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • DMS Version Number Increment Control

    Dear Gurus,
    I have to set a type document with increment version alphanumber so the version has to begin with A , B,...
    so I have to set in Customizing  '* ' in Vers,No.
    Somebody knows which is the user exit to change increment version number of the DIR?
    Thanks in advance

    Hi-
    Assuming you are in ECC 6.0, You can find the BADI by going to SE18 and selecting the radio button "BADI name" and enter "DOCUMENT_NUMBER01" in the text box to right to see the definition.
    The method is:  DOCVERSION_CHECK
    I hope it helps!
    -J

  • SQL Number increment

    I want a query that increment a number by one after each certain number of records...
    example,
    after 3 rows it increases a counter by 1
    Counter Value
    1 A
    1 b
    1 c
    2 d
    2 e
    2 f
    3 d
    3 e
    3 f

    NTILE(3) will split all rows into three equal size (as close as possible) groups while OP asked to divide all rows into groups where each group has 3 rows. All you need for that is ROWNUM. See the difference:
    SQL> select ename,NTILE(3) OVER(ORDER BY ename) from emp;
    ENAME      NTILE(3)OVER(ORDERBYENAME)
    ADAMS                               1
    ALLEN                               1
    BLAKE                               1
    CLARK                               1
    FORD                                1
    JAMES                               2
    JONES                               2
    KING                                2
    MARTIN                              2
    MILLER                              2
    SCOTT                               3
    ENAME      NTILE(3)OVER(ORDERBYENAME)
    SMITH                               3
    TURNER                              3
    WARD                                3
    14 rows selected.
    SQL> select ename,ceil(rownum / 3) from emp;
    ENAME      CEIL(ROWNUM/3)
    MILLER                  1
    CLARK                   1
    KING                    1
    ADAMS                   2
    SMITH                   2
    JONES                   2
    FORD                    3
    SCOTT                   3
    JAMES                   3
    MARTIN                  4
    WARD                    4
    ENAME      CEIL(ROWNUM/3)
    ALLEN                   4
    BLAKE                   5
    TURNER                  5
    14 rows selected.
    SQL> SY.

  • Quote number increment with macro button

    Excel 2010 - I am using the following code to convert a worksheet quote to PDF and save to a specified file location.
    Sub SavePDF()
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
    Filename:="C:\PDF\Quotation_" & _
    ActiveSheet.Range("H8").Value & ".pdf", _
    OpenAfterPublish:=False
    End Sub
    I would also like to have the quote number in cell H8 automatically increment every time this macro button is clicked. Can it be done.

    Try this - I hope yo see the changes that were required so that you can expand on it in the future:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        'Sam, Pete, Joe, and a blank cell in a named range "NamesList"
        'cycle values in cell range (F7:Q7,W7:AH7)
        If Target.MergeCells Then
            If Target.Cells.Count <> Range(Target.Address).Cells.Count Then Exit Sub
        Else
            If Target.Cells.Count > 1 Then Exit Sub
        End If
       If Not Intersect(Target, Range("F7:Q7,W7:AH7")) Is Nothing Then
            Application.EnableEvents = False
            If Target.Cells(1).Value = "" Then
                Target.Cells(1).Value = Range("NamesList").Cells(1).Value
            Else
                Target.Cells(1).Value = Range("NamesList").Cells(Application.Match(Target.Cells(1).Value, Range("NamesList"),
    False) + 1)
            End If
            Application.EnableEvents = True
            Exit Sub
        End If
        If Not Intersect(Target, Range("B29:C29,B30:C30,B31:C31,B32:C32"))
    Is Nothing Then
            Application.EnableEvents = False
            If Target.Cells(1).Value = "" Then
                Target.Cells(1).Value = Range("TaskList").Cells(1).Value
            Else
                Target.Cells(1).Value = Range("TaskList").Cells(Application.Match(Target.Cells(1).Value, Range("TaskList"),
    False) + 1)
            End If
            Application.EnableEvents = True
            Exit Sub
        End If
       If Not Intersect(Target, Range("B17:C22, O17:P22, AA17:AB22")) Is Nothing Then   'specific range
            If UCase(Target.Value) = "OK" Or UCase(Target.Value) = "FIX" Then MakeCircle Target
        End If
    End Sub

  • Error in version number increment for version 99

    Hi  sap gurus,
    I am getting the below issue that my document version number is from 00 to 99. Now we reached to 99. after this when we are trying to create a document with version 100, it is not allowing. how to resolve this situation. what s the way forward. please guide me.
    Regards,
    Mastan.

    Hi Mastan,
    It is SAP standard. Use character with combination of number.
    Like A0,A1......, B0,B1..... etc.
    Surprised how you reached version 99 so fast in SAP.
    Regards,
    Krishnendu.

  • Alphanumeric serial number increment

    Hi All,
        Can anyone help me to increment an alphanumeric sequence.
    For eq: 12B345A, should become 12B345B,12B345C...,12B345Z after Z it should take the second last character and inceremnt it, say 12B346A,12B346B,12B346C.........
    Please let me know whether we can use some Function Modules for this operation or can anyone please help me with a pseudocode for the same.
    Thanks in Advance,
    Rijish

    Try this Code:
    data: v_str(7) type c,
          v_hx(1) type x,
          v_len type i,
          v_off type i.
    field-symbols <fs>.
    v_str = '12B345Z'.
    write:/ 'Initial:', v_str.
    v_len = strlen( v_str ).
    v_off = v_len - 1.
    do v_len times.
      if v_str+v_off(1) between 'A' and 'Z'.
        if v_str+v_off(1) lt 'Z'.
          assign v_str+v_off(1) to <fs> casting type x.
          add 1 to <fs>.
          exit.
        else.
          v_str+v_off(1) = 'A'.
        endif.
      elseif v_str+v_off(1) between '0' and '9'.
        if v_str+v_off(1) lt '9'.
          v_str+v_off(1) = v_str+v_off(1) + 1.
          exit.
        else.
          v_str+v_off(1) = '0'.
        endif.
      endif.
      v_off = v_off - 1.
    enddo.
    write:/ 'Final:', v_str.
    Regards
    Sridhar

  • Number increment in a row when a cell changes

    Hi,
    Here is my problem, I have a query giving me results like this, nothing special:
    ASSEMBLY_LINE    SERIAL_NUMBER    OSSSHORTSEQ    SEQUENCE   COMP_NO....
    LHEX BYP00128 L21 UF01
    LHEX BYP00128 L21 UF01
    LHEX BYP00128 L21 UF01
    LHEX BYP00125 L21 UF02
    LHEX BYP00125 L21 UF04
    LHEX KFX00243 L29 FP01
    LHEX PAS00343 W23 FP02
    LHEX PAS00343 W23 UF03
    resulting from this query:
    SELECT *
    FROM (SELECT locations_pkg.get_name
    (locations_xtd_pkg.get_parent (agm_loc_id, 'Z')
    ) AS assembly_line,
    act_px_pkg.get_string
    (mfg_global_vw.agm_id,
    act_px_types_pkg.f_mfg_if_serial_number
    ) serial_number,
    workorder_tk_pkg.get_oss_short_sequence
    (mfg_global_vw.agm_id)
    ossshortseq,
    components_vw.SEQUENCE, comp_no
    FROM mfg_detail_vw vv,
    mfg_global_vw,
    mfg_supply_vw,
    components_vw,
    act_px
    WHERE mfg_global_vw.agm_id = vv.agm_id
    AND mfg_supply_vw.adm_id = vv.adm_id
    AND ads_git_id = components_vw.git_id
    AND mfg_global_vw.agm_status_id IN (1, 3, 7, 6, 4, 5)
    AND mfg_global_vw.agm_asqt_nr IN (40, 50)
    AND agm_loc_id = 99585
    AND mfg_supply_vw.ads_id = act_px.act_id
    AND act_px.actpxt_nr = act_px_types_pkg.f_lbdm_info)
    GROUP BY assembly_line, serial_number, ossshortseq, comp_no, SEQUENCE
    order by serial_number
    I'd like now, to add a number, which would be the same for each line which have the same value of serial_number:
    *ASSEMBLY_LINE    SERIAL_NUMBER    OSSSHORTSEQ    SEQUENCE  NUMBER COMP_NO....*
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00125 L21 UF02 2
    LHEX BYP00125 L21 UF04 2
    LHEX KFX00243 L29 FP01 3
    LHEX PAS00343 W23 FP02 4
    LHEX PAS00343 W23 UF03 4
    Any idea how I could do that?
    Best regards!
    Edited by: lakers on Apr 13, 2012 6:58 AM
    Edited by: lakers on Apr 13, 2012 6:59 AM

    >
    >
    *ASSEMBLY_LINE    SERIAL_NUMBER    OSSSHORTSEQ    SEQUENCE  NUMBER COMP_NO....*
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00128 L21 UF01 1
    LHEX BYP00125 L21 UF02 2
    LHEX BYP00125 L21 UF04 2
    LHEX KFX00243 L29 FP01 3
    LHEX PAS00343 W23 FP02 4
    LHEX PAS00343 W23 UF03 4
    Any idea how I could do that?Have you tried DECODE? How many values of Serial_Number do you have?
    [edit] Just a point - this "design" would be contrary to good normalisation principles - if you have a unique
    value for every unique serial number, why not just use it? [edit]
    Paul...
    Edited by: Paulie on 13-Apr-2012 15:16

  • Can you get an 800 number for trouble with your system??????????????  I have to call IT every day to do something to make PDF'S   Abobe 10.1

    Abobe the worlds worst customer support  can I return my purchase

    Try the following, in order:
    1. Delete Preferred Network(s)
    o System Preferences > Network > AirPort > Configure
    o In the "By default, join:" pull-down menu, select "Preferred networks"
    o Delete the network(s) you regularly use from the list
    2. Delete AirPort Keychain Entries
    o Launch the "Keychain Access" application located in Applications/Utilties.
    o Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
    o Restart, or log out then back in.
    3. Add Preferred Network(s)
    o System Preferences > Network > AirPort > Configure
    o In the "By default, join:" pull-down menu, select "Preferred networks"
    o Add the preferred network(s) using the "+" button.
    o Restart or log out then back in.

  • Number Increment in Snart Form

    Dear All,
                  In Test Certificate form i have to print TC No. which would be continious no. e.g when first time i will make a TC it would be 1, second time it should be 2, third time it would be 3, and so on.
    Is it possible to do it with smart forms.
    Regards,
    Gulrez Alam

    Hi
    I think you want first time TC1  second time TC2
    correct me if i am wrong
    If you want to get the same make use of the field COPYCOUNT from SFSY in setting of the form
    Regards
    Shiva

  • Increment a number column when a specific field is update

    Hi,
    I'm working on SharePoint and i'm looking for a solution to have a field which is incremented when a specific field is edited.
    Example : i have a date field, with 16/07/2014 when i create an element. I edit this element and change this date field to 17/07/2014 so this increment my field to 1.
    For each update on this element i'll need a test who's tell me if the previous date is equal do the new date.
    I don't know if i can do that only with a calculated column or with a workflow.
    Thanks in advance for your help !
    Regards

    If you only needed a number incremented, then you could turn on versioning.
    As you need to test to see if a field has changed and do something based on the change then you will need to:
    Create a SharePoint Designer workflow
    Write a Visual Studio workflow
    or Write a Visual Studio event receiver
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • PS Batch/Droplet serial number not incrementing?

    Hello
    I'm hoping someone can provide a solution.
    I'm trying to make a batch that ill then convert to a droplet so I can then use a watch folder to run the droplet. (Automate as much as possible, as I process a lot of files)
    A little how I would process files at present: Open mockup in PS>run batch with action already created, once complete, move onto the next mockup.
    Now the master mockup file I use has a smart layer that I place data into, this then transforms the pasted image into a mockup to represent the product.
    Now the problem, the serial number does not increment as I'm trying to use a droplet I have to include an open and close command for the mockup, this then stops the number incrementing. (The number must be attached to the PS file). This then keeps exporting the files and over riding 001 every time.
    We use extend script with illustrator daily so I'm not sure if using this is a solution?
    Any feedback is highly appreciated!
    Thanks!

    Try using the Image  Processor Pro in the action you used to create the droplet.   If the output file exist that script will generate the next name. Actions can not use logic on their own.  If the droplet you create has a problem naming the output file that it replaces files rather then generating the next name the action you created the droplet  needs to use some scripting. See that the output file exists and if it does generate a unique name upping the sequence number till  its unique one that does not exists.  Actions can not use logic without using a script.
    The Image Processor script is not a plug-ij it will always show its dialog.  The Image Processor Pro script is a Photoshop Plug-in It will bypass displaying iys dialog when user by playing the action step that was generated recording its used.  What it recorded will be used.    Once installed the Image Processor Pro script is accessec and recorded usinf  menu File>Automate>Image Processor Pro...   Where the non plug-in Image Processor the ships with Photoshop is Access via menu File>Scripts>Image Processor.  It does not have plug-in support programmed in. It can not record settings into an actions step.
    When you record the IPP action the dialog will show and IPP will record the settings used into the action step,  When the action is played the dialog will not show instead the recorded setting will be use.  If you do not turn on that action step dialog.
    There is no requirement to use the bridge.... Infact if you use the bridge to select files then use menu tools Photoshop Image processor Pro  you will not be using  your droplet or action..  If you set up the IPP dialog to use your action that uses IPP I think it may fail recursive use of a plug-in is questionable.

  • Adding user-defined number of text fields.

    Okay I am having problems, obviously. I am developing a program where the user will enter X and Y values and the program will calculate the relational data. However, I can't even get a start.
    First of all, the user defines the number of pairs of points they want to define. For example, they have 20 points, each with its own X and Y, so they click on 20 and then okay in the first window.
    The next window will then take their answer and display X and Y text fields for as many points as they defined. However, I can't figure out any way to do this.
    Feel free to run the program, the problem lies in the method setTextFields(). Help please!
    import javax.swing.*;               //FOR SWING COMPONENT CLASSES
    import java.awt.*;                  //FOR CONTAINER CLASS
    import java.awt.event.*;            //FOR EVENT HANDLING
    public class RegressInput extends JFrame
        private JComboBox listJComboBox;        //COMBO BOX TO HOLD HOW MANY PAIRS OF DATA POINTS THE USER HAS TO ENTER
        private JButton answerButton;           //BUTTON TO CLICK AFTER SELECTING PAIRS OF DATA POINTS
        private JPanel textFieldTopPanel;       //TEXT FIELD TOP PANEL
        private JPanel textFieldBottomPanel;    //TEXT FIELD BOTTOM PANEL
        private JPanel textFieldPanel;           //TEXT FIELD PANEL   
        private CardLayout cardSelector;        //DECLARE CARD LAYOUT OBJECT   
        private JPanel cardDeck;                //DECLARE CARD PANEL OBJECT
        public RegressInput(String title)
            super(title);               //CALL SUPERCLASS CONSTRUCTOR
            //CREATE A CONTAINER
            Container container = getContentPane();
            //INSTANTIATE CARD LAYOUT OBJECT
            cardSelector = new CardLayout();
            //INSTANTIATE PANEL OBJECT
            cardDeck = new JPanel();
            //SET LAYOUT OF CARD DECK PANEL TO CARD LAYOUT
            cardDeck.setLayout(cardSelector);
            //DEFINE LABEL FOR FIRST CARD
            Label question = new Label("How many PAIRS of data would you like to enter?");
            //BUTTON TO SUBMIT NUMBER OF POINTS TO PLOT
            answerButton = new JButton("OK");
            listJComboBox = new JComboBox( getArray() );//USE getArray() METHOD TO SET ITEM LIST OF THE COMBO BOX
            listJComboBox.setMaximumRowCount(10);       //SETS THE VISIBLE NUMBER OF ITEMS TO THE USER
            Label xValues = new Label("X Values");      //LABEL FOR X values
            Label yValues = new Label("Y Values");      //LABEL FOR Y values
            //BUILD CARD DECK
            JPanel comboBoxCard = new JPanel();     //CREATE FIRST CARD
            comboBoxCard.add(question);             //ADD question LABEL TO FIRST CARD
            comboBoxCard.add(listJComboBox);        //ADD listJComboBox TO FIRST CARD
            comboBoxCard.add(answerButton);         //ADD answerButton TO FIRST CARD
            textFieldTopPanel = new JPanel();       //CREATE TOP PANEL OF SECOND CARD
            textFieldTopPanel.add(xValues);         //ADD xValues Label TO SECOND CARD
            textFieldTopPanel.add(yValues);         //ADD yValues Label TO SECOND CARD
            textFieldBottomPanel = new JPanel();    //CREATE BOTTOM PANEL OF SECOND CARD
            textFieldBottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,10));    //SET LAYOUT FOR BOTTOM PANEL
            textFieldPanel = new JPanel();          //CREATE PANEL FOR SECOND CARD
            textFieldPanel.setLayout(new BorderLayout(10, 10)); //SET LAYOUT FOR SECOND CARD
            textFieldPanel.add(textFieldTopPanel, "North"); //ADD textFieldTopPanel TO NORTH
            textFieldPanel.add(textFieldBottomPanel, "South");  //ADD textFieldBottomPanel TO SOUTH
            cardDeck.add(comboBoxCard, "Step 1");       //ADD FIRST CARD TO DECK
            cardDeck.add(textFieldPanel, "Step 2");     //ADD SECOND CARD TO DECK
            container.add(cardDeck);                    //ADD CARD DECK TO CONTAINER
            //DEFINE BUTTON HANDLER OBJECT
            ButtonHandler buttonHandler = new ButtonHandler();
            //ADD ACTION LISTENER FOR BUTTONS
            answerButton.addActionListener(new ButtonHandler());
        }//END RegressInput() CONSTRUCTOR
        //METHOD TO CREATE AND RETURN AN ARRAY OF VALUES FOR JComboBox
        private String[] getArray()
            //CREATE ARRAY TO HOLD 30 VALUES
            int numbers[] = new int[29];
            //CREATE int IN ORDER TO START THE ARRAY AT 2 INSTEAD OF 1
            int number = 2;
            //ASSIGN VALUES FROM 2 TO 30 TO numbers[] ARRAY
            for(int count=0; count < 29; ++count)
                numbers[count] = number;        //SETS EACH INDEX TO number
                number++;                       //INCREMENTS number
            }//END for LOOP
            //CREATE pairs[] ARRAY TO HOLD 30 STRINGS
            String pairs[] = new String[29];
            //ASSIGN VALUES 1 TO 30 IN STRING ARRAY FOR COMBO BOX
            for(int count = 0; count < 29; ++count)
                pairs[count] = "" + numbers[count];
            }//END for LOOP
            return pairs;//RETURNS pairs[] ARRAY FOR THE LIST ITEMS IN listJComboBox
        }//END getArray() METHOD8
        //RETURNS THE ITEM SELECTED BY THE USER FROM THE JComboBox
        private int getValue()
            //ASSIGNS STRING VALUE OF THE JComboBox TO A WRAPPER
            Integer v = new Integer((String) listJComboBox.getSelectedItem());
            //ASSIGNS WRAPPER VALUE TO int
            int value = v.intValue();
            //RETURN VALUE OF SELECTED ITEM
            return value;
        }//END getValue()
        private void setTextFields()
        {//HERE LIES THE PROBLEM! WHAT GOES IN THIS METHOD????
            for(int count = 0; count < (2 * getValue()); ++count)
        }//END setTextFields()
        //BUTTON EVENT HANDLER CLASS
        private class ButtonHandler implements ActionListener
         //PROCESS EVENT
            public void actionPerformed(ActionEvent e)
                //WHICH BUTTON CAUSED THE EVENT?
                if(e.getSource() == answerButton)
                    cardSelector.last(cardDeck);
                    cardDeck.setSize(600,600);
                }//END if STATEMENT
            }//END actionPerformed()
        }//END ButtonHandler CLASS
    }//END RegressInput CLASSHere is main:
    import javax.swing.JFrame;
    public class TestSharpStats
         public static void main(String[] args)
            //DEFINE FRAME OBJECT
            RegressInput window = new RegressInput("Hi");     //SETS TITLE BAR
            window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      //CLOSES WINDOW
            window.setSize(400, 600);    //SET FRAME SIZE
            window.setResizable(true);  //PREVENTS USER FROM RESIZING WINDOW
            window.setVisible(true);     //SETS window TO VISIBLE
        }//END main()
    }//END TestSharpStats CLASS

    muit-post: http://forum.java.sun.com/thread.jspa?messageID=4442652

  • How to customize the Product Item lines numbers incrementation in Orders?

    Hello everyone,
    We are using structured products in CRM 7.0 that are replicated from ECC SD. These products consist of a high level product to which are attached sub-level products (BOM in ECC SD).
    When we select a high-level product in a CRM sales transaction (order, quotation...), the system automatically does the BOM explosion, with the 2 levels structure, but it assigns an item line number of 10 to the first line and then increments by 1, which gives :
    10 "item line 01"
    11 "item line 02"
    12 "Item line 03";...etc
    This is not correct for us, because the user might have to insert manually new items in-between the items automatically added by SAP, so, we need the system to change this automatic numbers assignment : we would like tthat the numbers be 10, 20, 30...
    so that the user can insert items with numbers like 11, 12....21, 22.
    Where can the number incrementation be customized or is there a BADI for that?
    thanks
    Ludovic

    This is set in transaction type customazing. go to spro>crm>transactions>basic settings>define transaction types. Open your transaction type and underitem number section set desired values for:
    - Increment Item  for main items
    - IncrementSubItm  for subitems

  • Line Item increment nos. in S Order

    Dear Gurus,
    Ours is a Mechanical process industry, though most of the items are NORM items, many are BOMs (LUMF), here the main item is a Model no. and the sub items are the parts in it according to the customers' requirement. In a Sales Order if I enter a LUMF and let it explode and enter another material, system will automatically take a multiple of 10 as line number, ie., after 14 sys will give 20. But after you enter the BOM and letting it explode and change the sub items and then enter a new material, system will give line item number as +10 to the last sub item number,  ie., after say, 14 it will be 24.
    If you dont change the sub items the scenario is like this:
    10  BOM 
    11  Sub Item 01
    12  Sub Item 02
    13  Sub Item 03
    14  Sub Item 04
    15  Sub Item 05,    and then the next line item is given as:
    20  Material XYZ
    But if I do ANY changes to the sub items, the scenario is like this:
    10  BOM 
    11  Sub Item 01
    12  Sub Item 02     and when I enter the next item then the next line is given as:
    22 Material XYZ
    How to stop this and let all new entries to be generated at multiplications of 10? I mean, what ever the last sub item be, the next entry should start at the next multiple of 10, ie., 20, 30, 40, 50, . . . . . .
    Hope my question is clear. Kindly help me here, if possible.
    Thanks and regards.
    Venkat - Hyd

    Hi
    After removing or changing the line items (which is not supposed to be done, since it is a BOM material).....please check in the colum HLv Item(higher level item) next to quantity column...whether the value 10(main line item number) is existing or not. As long as it exists, these line items are to be considered as sub items and for the new line item in the sales order the item number increment should happen related to the previous main item (10). If there is no value in the HLv Item, then the system considers this subitem as a main item and it increments the next line item with 10 from this (originally sub item but considered as main item now) and hence it is shown as 22 (12+10).
    System makes the item number increment based on the previous line item number (main item or sub item).
    Please check your order and post the findings.
    Thanks,
    Ravi

Maybe you are looking for