Sequence number in a Order

Hi,
Can any body explain me regarding Sequence number in an assignement tab page of a Production Order.
Under what circumstannces it is used and How?
Regards,
Prasad

SAP help for this issue
Seq. number order
Number that can be assigned to production orders or planned orders at the level of the task list header and is therefore valid for all the operations in an order.
Use
The sequence number serves:
To sort the orders for the display on the planning table and
To form a dispatching sequence using the sort key.

Similar Messages

  • Sequence number in process order

    Hi,
    Kindly brief about usage of sequence number, which is in process order with example. Is this can be used for capacity leveling. If so how that can be done.
    If one sequence number is assigned to multiple process orders means double entries, then what is the impact during capacity leveling based sequence number.
    Is number range is maintained any where in SPRO for sequence number. If so where? Is there any possibility to maintain number range for sequence number if required?
    Thanks & Regards,
    N. Laxman

    1.Seq. number in an order
    Number that can be assigned to production orders or planned orders at the level of the task list header and is therefore valid for all the operations in an order.
    The sequence number is used to  sort the orders for the display on the planning table and to
    form a dispatching sequence using the sort key.
    3.

  • Capacity Leveling in CM25 by Sequence Number in Planned Order

    Hello Gurus,
    I am having an issue with dispatching planned orders using tabular form.  We have to use the tabular form in order to be able to have our program select all planned orders.
    I have been testing and testing this trying to get it to work.  We have sequence numbers defined for our planned orders in the PLAF-SEQNR field.  When entering CM25, we are wanting to dispatch all of our planned orders at once and have them dispatched in the correct order by sequence number.  I have the Strategy Profile defined for Finite Scheduling, Plan. direction forwards, and no closing of gaps.  and I have my Dispatch Sequence layout key defined to only use the Sequence Number in the Planned Orders.
    We need to use the tabular form so we can select all planned orders.  I set up the requirements grouping to only include planned orders that are not yet dispatched.
    When I use the graphical form instead of tabular and I manually highlight all of the planned orders and dispatch then they are all in the correct order with all of the gaps are closed...which is what i want.
    However, I need to be able to do this using the tablular form.  No matter how I try to set up the strategy profile, it doesnt seem to work using tabular form.  They are dispatched according to start date with gaps in between the orders.
    Any help is greatly appreciated.
    I also have the following defined in Strategy Profile for Dispatching Control:
    Sort operation to be dispatched
    Consider operation sequence in the order
    Midpoint scheduling
    Thank you.
    Edited by: Kevin Gorman on Jan 14, 2009 8:19 PM
    Edited by: Kevin Gorman on Jan 15, 2009 3:26 AM

    Hi Vishal,
    I hope the below link will provide you need full information:
    http://help.sap.com/saphelp_470/helpdata/en/8a/a5a7674adc11d189740000e8322d00/content.htm
    Hope it clears your doubt.
    Regards,
    Madhu.G

  • Sequence Number in XI Mapping

    Hi All,
    I have scenario where a sequence number when mapping is done. Consider the example:
    In the source message I have one header and 10 line items in the message. The line item in the target message has a field called sequence number. When i map the source message to the target message each of the target line items hould have a sequence number in the order 1, 2, 3..10.
    How can this be done? Is there a feature in XI which lets us have a global variable which can be incremented for each line item or a java class which can generate new sequence number for each line item or something.
    I'm using message mapping. Java mapping is not used.
    Could you please help me?
    Thanks,
    Sandeep

    Hi Sandeep,
    u can follow these steps to generate a sequence no using global container.
    -> define a global variable by clicking the JAVA_SECTION_TOOLTIP icon on the design tab of source message type of ur message mapping.
    enter the following in the GlobalVariables Section
    Integer counter =0;
    -> define a user defined function (<b>SeqGen</b> let's say)
    write the following code in it.
    Integer seq = 0;
    GlobalContainer globalContainer = container.getGlobalContainer();
    a = globalContainer.getParameter("counter");
    seq = globalContainer.getParameter("counter");
    seq = seq + 1;
    globalContainer.setParameter("counter",seq);
    return a;
    now use this user defined function (SeqGen)in all ur mappings to the sequence no of ur line items.
    Hope this helps.
    Anil

  • Update sequence number in PLAF table.

    Hi
    There is a requirement where I have to update sequence number for Planned Order in ECC.
    Sequence Data is stored in PLAF-SEQNR field [Seq. number order].
    BAPI_PLANNEDORDER_CHANGE did not work for me. There are only 27 field which i think we can edit (ie field in import parameters BAPIPLAF_I2).
    So can someone help me to find a way to update PLAF-SEQNR.
    Thanks
    Bhavesh

    Use an Enhancement Spot

  • CM25 Sequence Number Maintenance View

    Dear guru ,
    i enter sequence number operation in the specific view of CM25.
    In the sequence number maintenance view the production orders are sorted in order of production order number.
    I want that production orders are sorted in this view in order of  sequence number operation.
    How can i do this ?
    Thanks in advance.

    I assume that you want to display the sequence number of each order in the mid and lower graphic panel, is that ?? And be able to sort order based in this field ?
    Try this
    Customizing
    Production Planning
    Capacity Leveling - Transaction: OPD0 : Overall profile
    Go to list Profile: SAPSFCI001
    Goto Profile for list variant: SAPSFCD001
    Check also the profile for evaluation;
    Subprofile for displayed fields: SAPSFCF0
    Subprofile for sort criteria: SAPSFCS0
    make the required changes, adding Sequence as field
    I would suggest to create a complete set of new Z profiles.
    Regards

  • Next Sequence number - Urgent help

    I have to pass in a sequence number in my method.
    The sequence number is the order an attribute should appear in relative to other attributes in this Address object.
    Can anyone help in how i am to do this.....i am confused!!
    Ta
    Sammy

    Sorry if i confused you.
    I have an object which contains attributes that are dislayed. On the UI the user can add an attribute to that object.
    Eg: Address object, it has attributes, line1, line2, town, postcode. The user can add an attribute called county to the object.
    My address object contains a parmeter called sequecene. So when the attribte is added, it should be added to the next sequence- so for teh example above it would be sequence no 5. So i think i need to work out the maximum sequence number of the contained attributes in the object.......but not sure how to do this.
    Any help would be appreicated.
    Thanks
    Sammy

  • Sequence of Steps in Order type Creation

    Can any let me know how a new order type can be created in SAP and the sequence of steps.

    If you are referring to the Production order types following are the steps -
    SPRO>Production>Shop Floor Control>Master Data>Order-->
    Define Order Types
    Define order type-dependent parameters
    Define status profile
    Define selection profiles
    Define number ranges for orders
    Define number ranges for confirmations
    Define number ranges for reservations
    Define number ranges for operations
    Define number ranges for capacity requirements
    Hope the above will help you.

  • Sequence Number does not allowed here

    Hi,
    I am inserting rows in a table called membership with seqence number membership_id.nextval. But i am getting error like
    "Sequence number not allowed here"
    Before i inserted about 3852 rows in that table
    Here is the statement i am using
    INSERT INTO MEMBERSHIP (membership_id,ACTIVIST_ID,G_N_ID,ROLE_ID,
    REGION_ID,START_dATE,END_DATE,STATUS,state_id)
    SELECT membership_id.nextval,a.activist_id,G.g_n_id,R.ROLE_ID,
    '',mwlgmemship.start_date,'','Active',''
    FROM activist a,
    role r,
    group_network g,
    final.mwlgmemship mwlgmemship,final.mwlgmem mwlgmem
    WHERE
    a.first_name=mwlgmem.fname and a.last_name=mwlgmem.lname and a.c_zip_code=mwlgmem.czip and
    a.c_country=mwlgmem.country and mwlgmem.person_id=mwlgmemship.person_id and
    to_char(mwlgmemship.grno)=g.g_n_reference and mwlgmemship.role_id=r.role_id order by r.role_id
    I could not understand the problem, please help me
    I am selecting the other fields from other tables.
    Thanks
    Srinivas

    Restrictions on Sequence Values You cannot use CURRVAL and NEXTVAL in the following constructs:
    A subquery in a DELETE, SELECT, or UPDATE statement
    A query of a view or of a materialized view
    A SELECT statement with the DISTINCT operator
    A SELECT statement with a GROUP BY clause or ORDER BY clause
    A SELECT statement that is combined with another SELECT statement with the UNION, INTERSECT, or MINUS set operator
    The WHERE clause of a SELECT statement
    The DEFAULT value of a column in a CREATE TABLE or ALTER TABLE statement
    The condition of a CHECK constraintAbove text is from the sql reference manual.
    HTH
    Regards
    Raj

  • Sequence Number in PLD_Sales Quotation

    Hi,All
    I want to show sequence number in PLD. My Problem is  i can't use LineNum() because in some rows in matrix
    that no price, i  will not show data in PLD.
    Now,if i use LineNum() when i print preview in column system will skip record that no have price and the sequence number is not  proper.
    How to manage for get number order ascending sequence ?
    Please help me in this regard,
    Venkatesh.R

    Hi .....
    Try to be as specific as possible ...
    1 .- I created a formula field - assigned to it in MY CASE THE FIELD F_174 --
    This formula has the status field for the lines are visible or not ..
    2 .- I have left as "invisible" field  LineNum()
    3 .- I created a new formula field - IN TURN THIS AREA IS F_175 --
    The second field contains the following formula ColSum(F_174)
    This field is the field position LineNum() (replaces)
    4 .- All areas covered are bound to repeat F_174 (to appear when it meets the condition of the formula)
    With all these steps allowed me to see so correlative lines, even when there are lines that are not visible to not meet the condition.
    I hope it will help
    Best regards,

  • Enq: TX - row lock contention in forms 10g sequency number generation

    Iam Getting the Deadlock issue in oracle formdeveloper 10g database is 11g Acutually in our small Hospital organization using different forms generating entrying labrequest form finally save time
    one sequency number will generated i have give procedure below every save criteria form using below procedure some time iam getting lock iam using blocksession query i have find out some
    OSUSER
    MACHINE
    TERMINAL
    PROGRAM
    SQL_ID
    LOGON_TIME
    BLOCKING_SESSION_STATUS
    BLOCKING_SESSION
    EVENT
    user423
    UMCCDOM\LEVEL4-MICU
    LEVEL4-MICU
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 11:34:41 AM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 11:32:50 AM
    VALID
    186
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    22/09/2013 2:49:47 PM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 7:00:22 AM
    VALID
    186
    enq: TX - row lock contention
    user290
    UMCCDOM\LEVEL2-N
    LEVEL2-N
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 10:28:06 AM
    VALID
    277
    enq: TX - row lock contention
    lock are happen after open the code i have find out used FOR UPDATE in procedure please tell me any alternative for this every labrequest form saving time using this procedure for generating prefix sequence number multiple user using with different systems
    PROCEDURE   Gsp_GenSeqNum (I_SvPrefixCd IN VARCHAR2,I_SvUserName IN VARCHAR2,
                              O_SvSeqNum OUT VARCHAR2) IS
    --This Procedure generates the sequence number
    --by retrieving the prefix based on the code
    --supllied to the procedure.
      CURSOR  crSeqGenerator IS
             SELECT Gsn_prefix_last_num, Gsn_prefix_year
                FROM G_SEQUENCE_NUMBER
             WHERE Gsn_prefix_Cd = I_SvPrefixCd
                   AND Gsn_prefix_year = TO_CHAR(SYSDATE,'YYYY')
      FOR UPDATE OF Gsn_prefix_last_num;
      udSeqNum        G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udNextSeqNum    G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udYear          G_SEQUENCE_NUMBER.Gsn_Prefix_year%TYPE;
      udPrefix        G_SEQUENCE_PREFIX.Gsp_Prefix_Value%TYPE;
    BEGIN
      SELECT Gsp_Prefix_Value
      INTO udPrefix
      FROM G_SEQUENCE_PREFIX
      WHERE Gsp_Prefix_Cd = I_SvPrefixCd;
      OPEN crSeqGenerator;
      FETCH crSeqGenerator
       INTO udSeqNum,
            udYear;
      IF crSeqGenerator%FOUND THEN
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum     := udPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                                   ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      ELSE
    INSERT INTO G_SEQUENCE_NUMBER VALUES(I_SvPrefixCd,TO_CHAR(SYSDATE,'YYYY'),0,I_SvUserName,SYSDATE);
         udSeqNum      :=0;
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum:=UdPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                             ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      END IF;
      UPDATE G_SEQUENCE_NUMBER
         SET Gsn_Prefix_last_num=udNextSeqNum
       WHERE Gsn_Prefix_Cd = I_SvPrefixCd
         AND Gsn_Prefix_year=TO_CHAR(SYSDATE,'YYYY');
      CLOSE crSeqGenerator;
    END Gsp_GenSeqNum;
    Thanks
    subbu

    This application is inbuit with some modules VB (cath ,cardio)and oracle forms for required sequence number generation different time used this procedure whereever required the sequence Prefix generation.If i replace the procedure sequene to oracle standard sequency if the user cannot save the form unnessary sequency generated order is missing from sequence.

  • Generating Sequence Number

    Hi,
    I have created a Query form. I had displayed the sequence number of the record displayed by selecting rownum from the table.
    Now I have added a order by clause in the query. So the rownum is not displayed in the order.
    I have created a small procedure to generate the sequence number.
    I would like to know from which trigger I should call this procedure.
    procedure resequence is
    v_cursor_record number;
    v_position number;
    begin
    v_cursor_record := to_number(:system.cursor_record);
    v_position := v_cursor_record;
    loop
    :detail.item := v_position;
    v_position := v_position + 1;
    exit when :system.last_record = 'TRUE';
    Next_record;
    end loop;
    go_record(v_cursor_record);
    end;

    Thanks for your reply. I have tried this method.It assigns value only for the first record in the block. As the post query trigger is not passing the control to other items ,though more than 10 records are fetched the sequence is generated only for the first record.
    Any other method to achieve this?

  • Need SQL statement to generate a sequence number in the output rows

    Hi folks. I need to create an SQL statement that generates a sequence number column in the output rows (records) such that the first returned row has this column set to 1, second returned row has the column set to 2, etc.
    For example, consider the query:
    SELECT income from employees WHERE income != 20000 ORDER BY income;
    If employees.income contains 60,000, 20,000, 35,000, and 19,000 for respective rows, the output would be this:
    19,000
    35,000
    60,000
    I would like the SQL to also return a sequence number that is computed across the returned rows, resulting in two output columns:
    1 19,000
    2 35,000
    3 60,000
    Is there a simple SQL function that generates the sequence number, in order, and only for the returned rows? Or is there another way?
    I'm stumped. Any help is appreciated! Thanks!
    - Jack Cochrane

    Hi,
    Welcome to the forum!
    Use ROWNUM, like (example):
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select rownum, first_name from (select e.first_name from employees e where e.first_name like 'J%' order by e.first_name);
        ROWNUM FIRST_NAME
             1 Jack
             2 James
             3 James
             4 Janette
             5 Jason
             6 Jean
             7 Jennifer
             8 Jennifer
             9 John
            10 John
            11 John
            12 Jonathon
            13 Jose Manuel
            14 Joshua
            15 Julia
            16 Julia
    16 rows selected
    SQL> But rememeber if you want to be sure of unique numbers in certain field is better to use sequences and use seq_name.nextval each time you need.
    Regards,

  • MT940 format on Statement Number/Sequence Number

    Hi Expert,
    I have the following EBS source file, which has 2 sequence numbers:
    As you can read that the section of :28C is the section of Statement Number/Sequence Number.  According to MT940 standard, as follows:
    This field contains the sequential number of the statement, optionally followed by the sequence number of the message within that statement when more than one message is sent for one statement.   The statement number should be reset to 1 on 1 January of each year.
    The sequence number always starts with 001. When several messages are sent to convey information about a single statement, the first message must contain '/001' in Sequence Number.
    One SWIFT message may contain up to 2000 characters.
    My source file's Statement Number/Sequence Number is correct, which caontains 1 statment (00006) and 2 sequence number which are: 00001 and 00002.  But during EBS upload using FF_5, system only managed upload first portion of the source file, and when come to second portion, 00006/00002, it always says ERROR: EBS (00006) already exist.
    But, based on MT940 standard, it should be OK.
    Therefore, does anyone have any idea why SAP FF_5 cannot handle the EBS source file upload?  Any further settings / configuration in order to hanlde Statement Number/Sequence Number?
    Thanks in advance
    sbmel

    Hello,
    I have encountered the same issue on MT940 with statement number/sequence number in field 28C.
    Our bank sends us MT940 into 17 separate files with sequence number for the same statement number (i.e. 13040/0001, 13040/0002..... and so on) while following the rule as below
    intermediate closing balance must have code :62M:
    and intermediate opening balance must have code :60M:
    finalclosing balance must have code :62F:
    and initial opening balance must have code :60F:
    However, the upload of first file in FF_5 terminated with error FV151 Termination in statement no.acct .... ; closing record 62F missing and subsequent files are with FV150 missing beginning record 60F.
    Would you please share your expertise on how you managed to make FF_5 accept these MT940 files with sequence number?
    Thanks in advance for your help on this.
    Regards
    Taro

  • Sequence number for group of values in column

    I need to create a sequnece number in a column starting from 5 and incremented by 5, based on values presenet in first column. If the value in first column changes then the sequence should start again with 5 and increment by 5.
    for example: I want to generate the following output
    Cat_code     Seq_No
    1001          5
    1001          10
    1001          15
    1001          20
    2001          5
    2001          10
    2001          15
    3001          5
    3001          10
    4001          5
    4001          10
    4001          15
    4001          20
    5001          5
    6001          5
    7001          5
    7001          10
    7001          15
    7001          20
    7001          25
    So if the cat_code changes, the sequence number should again start from 5 and should be generate sequence number until the cat_code changes again.
    any help apreciated.
    Thanks
    Rahul

    Hi, Rahul,
    You can use the analytic ROW_NUMEBR function to generate the numbers, like this:
    SELECT       cat_code
    ,       5 * ROW_NUMBER () OVER ( PARTITION BY  cat_code
                                     ORDER BY        NULL
                         )       AS seq_no
    FROM       table_x
    ORDER BY  cat_code
    ,            seq_no
    ;You must use an analytic ORDER BY clause when you call ROW_NUMBER. If you don't really care about the order, then you can ORDER BY a constant, but you still need the analytic ORDER BY clause.

Maybe you are looking for

  • [SOLVED] Can't get rid of a wine-polluted text file icon [KDE]

    Hello folks, For some reason, my KDE system likes to use a Wine program based icon for all text files when I'm using a Faenza theme. The problem occurs only for my user (not root) so I think this is an user-specific issue. I've already checked .local

  • AIAB Error is showing profit center line item 001 not filled

    Dear All, In Asset Account while posting AIAB t.code  system is showing error Balancing field "Profit center" in line item 001 not filled. Message no. GL2201 Diagnosis. The profit center marked as balancing is not filled with any value in line item 0

  • When downloading the new version of itunes, why do i get a message saying there is a problem with the windows installer package?

    When trying to download the newest version of itunes, when running the installation package, a message pops up that says "There is a problem with this Windows installer package...please contact your support personnel or package vendor." Also, the sam

  • Disappointment?

    Hello. I have some Family I would like to Video Chat to (because I don't see them often) but they have PCs and use MSN Messenger. I downloaded MSN Messenger for MAC but this doesn't support video or audio between a MAC and a PC (as far as I can tell)

  • Interesting Confusion

    SELECT STATUS , TO_DATE(CNT_ALL.PERIOD,'MM-RRRR') , CNT_ALL.SALES_CAT, CNT_ALL.DOM_EXP, CNT_ALL.REGION, CNT_ALL.CURR, CNT_ALL.PRODUCT, SUM(TRIPS_CREATED)TRIPS_CREATED , SUM(TRIPS_DISPATCHED)TRIPS_DISPATCHED, TRUNC((SUM(TRIPS_DISPATCHED)/(CASE WHEN SU