VT01N-Loading Sequence number functionality /BEV1/RPFLGNR in table VTTK.

Hi Gurus,
While creating shipment in VT01N, in the process screen, one field Sequence number: is showing by default Zero.
Loading Sequence Number in the Tour /BEV1/RPFLGNR in table VTTK.
Sequence number of the load in the tour.
When will this sequence number will take running numbers like 1, 2 .. and so on.
Could any body throw some light on this.
Thanks&Regards
Sreekanth

No response

Similar Messages

  • A sequence number error in a form

    I am currently creating a form with a sequence number in forms 10g
    <pre>
    table name: emp
    table desc: emp_id number,emp_name varchar2(20),emp_no number
    </pre>
    i have to generate the emp_id automatically.
    <pre>
    create sequence emp_seq
    minvalue 1
    start with 1
    increment by 1
    cache 20
    </pre>
    I use pre_insert trigger in block
    <pre>
    begin
    select emp_seq.nextval into :emp.emp_id from dual
    end
    </pre>
    problem;
    I can not insert a record because of sequence number in :emp.emp_id
    no compilation error but there is no automatic sequence number appeared in :emp.emp_id after run a form.
    It used to work before(fine with automatic sequence number in :emp.emp_id).
    it happens after I changed layout format and someone add more columns in emp table.
    eventhough i did not use sequence number in emp.emp_id
    in pre-insert-trigger
    <pre>
    begin
    select nvl(max(emp_id),0)+1
    into :emp.emp_id
    from emp;
    </pre>
    still can not show up any number in :emp.emp_id
    please help me out

    Thank you . It works now.
    would you mind explain to me; what I can not use automatic sequence number in emp.empid text field in pre-insert-trigger in my case
    is it trigger confliction in my forms?

  • MAX Function, Highest Sequence Number Needed

    Hi All,
    I need to find the current address for employees. The latest sequence number determines their current residences. Also they can't live on a street named "Pine" or "Oak," but I can take care of that in the WHERE command.
    If given this output:
    Last     First     Address             Seq_Number
    Smith     John     123 Work St     3
    Smith      John     45 Dope Ave.     5How Do I get this desired output?:
    Last     First     Address             Seq_Number
    Smith      John     45 Dope Ave.     5I know it's a Max function, but not sure to go about.
    As always thanks for any help.

    This is one method:
    SQL> WITH test_table AS
      2  (
      3          SELECT 'Smith' AS LAST, 'John' AS FIRST, '123 Work St' AS ADDRESS, 3 AS SEQ_NUMBER FROM DUAL UNION ALL
      4          SELECT 'Smith' AS LAST, 'John' AS FIRST, '45 Dope Ave.' AS ADDRESS, 5 AS SEQ_NUMBER FROM DUAL
      5  )
      6  SELECT  *
      7  FROM    test_table
      8  WHERE   (LAST,FIRST,SEQ_NUMBER) IN (SELECT LAST, FIRST, MAX(SEQ_NUMBER) FROM test_table GROUP BY LAST, FIRST)
      9  /
    LAST  FIRS ADDRESS      SEQ_NUMBER
    Smith John 45 Dope Ave.          5Another method (depending on duplicates it may or may not return the correct results):
    SQL> WITH test_table AS
      2  (
      3          SELECT 'Smith' AS LAST, 'John' AS FIRST, '123 Work St' AS ADDRESS, 3 AS SEQ_NUMBER FROM DUAL UNION ALL
      4          SELECT 'Smith' AS LAST, 'John' AS FIRST, '45 Dope Ave.' AS ADDRESS, 5 AS SEQ_NUMBER FROM DUAL
      5  )
      6  SELECT  DISTINCT
      7          LAST
      8  ,       FIRST
      9  ,       MAX(ADDRESS) KEEP (DENSE_RANK LAST ORDER BY SEQ_NUMBER) OVER (PARTITION BY LAST, FIRST) AS ADDRESS
    10  ,       MAX(SEQ_NUMBER) KEEP (DENSE_RANK LAST ORDER BY SEQ_NUMBER) OVER (PARTITION BY LAST, FIRST) AS SEQ_NUMBER
    11  FROM    test_table
    12  /
    LAST  FIRS ADDRESS      SEQ_NUMBER
    Smith John 45 Dope Ave.          5Edited by: Centinul on Nov 16, 2009 2:23 PM

  • Activate a field VTTK-/BEV1/RPFLGNR in screen VT01N

    Dear guru's,
    As per the client requirement i would like to activate the field /BEV1/RPFLGNR of VTTK table in VT01N  screen for entry.
    kindly help us in this regard.
    Regards,
    Abdul Rahim

    Dear guru's,
    As per the client requirement i would like to activate the field /BEV1/RPFLGNR of VTTK table in VT01N  screen for entry.
    kindly help us in this regard.
    Regards,
    Abdul Rahim

  • Load field in sqlldr with a sysdate and sequence number

    Hi
    LOAD DATA
    INFILE 'C:\testsequence.dat' "STR '\r\n'"
    REPLACE
    INTO TABLE testsequence
    FIELDS TERMINATED BY "" OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    SEQ EXPRESSION "to_char(sysdate,'YYYYMMDDHH24MISS')" ,
    DATA CHAR
    I want to concatenate a sequence number with SEQ example:
    20100216054415 + 500 from lets say sequence(500,1)
    How can I concatenate
    "to_char(sysdate,'YYYYMMDDHH24MISS')" and sequence(500,1)
    Your help is appreciated!!
    Mike

    Mike,
    Take at look at this example...
    ------  =====SQLPLUS=========
    sql>  create table t(
      2   id number,
      3   test_string varchar2(50));
    Table created.
    ---sequence starting with 50 increment by 1
    sql> create sequence test_seq
      2      start with 50
      3      increment by 1
      4  /
    Sequence created.
    =====SQL Loader control file....
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE T
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    id,
    test_string "to_char(sysdate,'YYYYMMDDHH24MISS') || test_seq.nextval"
    BEGINDATA
    100
    -- load it using...
    sqlldr uid/pwd@dbinstance control=test.ctl
    ====sqlplus
    sql> select * from t;
            ID TEST_STRING
           100 2010021619495250Post any issues you encounter/ any other questions you might have....

  • Batch rename with minimum numeber of digits in sequence number

    I'm pretty sure I remember this working how I wanted in previous versions of Bridge, but at least since cs4, it has not worked as I would like. I've tried searching for an answer or a setting that I'm missing, but have come back empty-handed.
    Here's my situation. Let's say I'm renaming 18 files. Each file has a sequence number. I want the sequence numeber for the first 9 to be one digit, and for the second nine to be 2 digits.
    i.e. image_1.jpg, image_2.jgp, image_3.jpg...image_10.jpg, image_11.jpg...
    The best way I've found that I can do this is to select all 18 images, and assign a 2-digit sequence number. Then, once that is complete, select the first 9 and repeat, but with a 1 digit number.
    In the past, I could select all 18 images, and choose a 1 digit number, and after 9, it would switch to 10, instead of going back to zero. Is there still a way to do that? I know it's only one extra step, but that one extra step is actually kind of two, because each time I have to reset tho starting number back to 1 or 10, and switch the setting from 2-digits to 1-digit and back again. And I usually have to rename multiple groups of files at once, so it does add up. Granted, much better than renaming one at a time, but not as convenient as I feel it could be, and as it once was.
    Am I missing something?
    Thanks,
    iLan

    While I certainly can understand the way in which computers work, I also understand that in a program as complex as any of the components in Adobe's Creative Suite, there is most certainly a way to override the computer's numerical logic so that it can remove the initial "0" from a 2-digit number. Granted, that may not be possible in the current version of Bridge, theoretically it is "Possible". And I'm quite sure it functioned that way in previous versions, although I really don't know which version I was using when it worked that way. Maybe cs2?
    As a developer, the whole reason for this question is to avoid having to create extra code in my applications to add an unnecessary "0" to digits 0-9 in any filenames of any files I want to load. Although it looks as though adobe changed the default behavior of the batch rename function, and removed (or in some peoples' minds improved) some functionality without an option to get it back.
    Unfortunately for me anyways...
    Thanks for the help,
    ilan

  • SQL loader sequence

    I am using SQL LOader and has used SEQUENCE Function to a column of the table in the control file
    That will create a new sequence number for each record.What I need is just one sequence number for each file. say 200 records. Records of particular file need to have same sequence number
    The next file will have another number...so on and so forth.
    Pls suggest if you have any idea on the same
    Thanks

    You've posted enough to know you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    I am using SQL LOader and has used SEQUENCE Function to a column of the table in the control file
    That will create a new sequence number for each record.What I need is just one sequence number for each file. say 200 records. Records of particular file need to have same sequence number
    The next file will have another number...so on and so forth.
    Pls suggest if you have any idea on the same
    >
    In 11g you could add a compound trigger on the table. Get the sequence value in the BEFORE statement section of the trigger and then use that value in the BEFORE ROW section of the trigger.

  • Please turn back sequence number to one in Batch rename

    In Bridge 2 the sequence number option has changed. It used to start automatically at 1 starting a new session. In the rare cases that there is one project in different sessions that needed to start with the following number of the last session I just needed to fill that number in.
    Unfortunately now it is the other way round. I'm used to sessions with a small number of photographs from the same session (I think that I'm not the only one in this).
    With the very useful and easy function batchrenaming set to date - text - sequence number the only thing I had to care about was the text, now I also have to fill in 1 as start number sadly enough, and this is in my opinion unnecessary time consuming :-(

    And so very, very easy to forget.
    This incrementing is a setting preferred by a minority of photographers, not the majority. It's quite handy if you shoot many, many cards worth of the same thing and load and rename whilst still shooting. Most photographers, i.e. those without assistants loading + naming images as they shoot, will do the opposite and when after a long day's shooting, having to remember to reset the sequence no. every time you rename some files is very easily overlooked and then a real pig to then redo correctly. Esp when tired.
    If it was an option fine, but as the default, duh!?

  • File sequence  number in a Flat file

    Hi,
    I am working on Idoc to file scenario wherein my output file will have a sequence number assigned to each level.
    there are 4 levels and hence 4 sequence number to be genearted and its values should also have the same sequence number.
    i am doing this just by using Counter function.
    But when i am getting  a multiple detail records, for each detail record(0040) level its keep incrementing.but it should have the same value what its level has.
    for ex:
    ALPHAMER AS2 E5 710 20114806124829 01.00   
    0000 00000000 20100102 V3.0 SORD CZ1
    0010 00000001 76767 123 100 WER Constant BNG 560011 RAJ WERR     560011    BTM   X EN RT
    0020 00000001 TYUIOP
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000002 8765 6532 200 45 10 WE 20 AG
    0040 00000003 8765 6532 200 45 10 WE 20 AG
    0040 00000004 8765 6532 200 45 10 WE 20 AG
    9999 99999999
    It has to be like this.
    ALPHAMER AS2 E5 710 20114806124829 01.00   
    0000 00000000 20100102 V3.0 SORD CZ1
    0010 00000001 76767 123 100 WER Constant BNG 560011 RAJ WERR     560011    BTM   X EN RT
    0020 00000001 TYUIOP
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    9999 99999999
    Can someone help me in achieving this.
    Regards

    Hi there,
    Just to try out from a different view, the following case could be implemented if the pre-requiisites are satisfied:
    Pre-requisites:
    1) The element that carries a primary factor, let us say, '8765' from your example.
    2) Functionally there is an element in your header item that relates the line items under it.
    My understanding of your example:
    1) Line items present for 00, 10, 40
    2) Line item 30 absent in the series
    Proposal:
    Map source field (the one that is arelating factor, here the one that carries '8765') -> INDEX (start by 0, increment by 1) -> multiply by one.
    INDEX standard function property: Donot Reset for every context;
    Srikanth Srinivasan
    Edited by: Srikanth Srinivasan on Jan 10, 2011 11:02 AM

  • Daily sequence number

    Hi,
    I need a clean solution for a daily sequence number (starts from 1 everyday). Clean in the sense that upon initial setup, I do not have to do anything and I can get my number everyday by just one jdbc call/query.
    Thank you in advance.

    What is the business justification for this requirement? Normally, you should just use a regular non-resetting sequence. If users want to see a "pretty" sequence number, simply generate something for them when you query the data using the row_number, rank, or dense_rank analytic functions. If users want to see sequences reset, they probably also want to see gap-free sequences, which is not something that you can ever guarantee in a scalable system where multiple users are allowed, though you can present gap-free sequences of values at query time.
    You can have a job that either drops and recreates the sequence every day or that goes through some logic to reset the sequence to 1 by changing the increment. This gets rather hairy, though, because the job will fail (or fail to run) on occasion and requires that no one be processing data at the time.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Sequence number in Trigger

    I'm trying to create an insert trigger that will do the following:
    1.) Grab the next sequence number from a sequence and use it as the value for the id_number column.
    2.) Grab the SYSDATE and use it as the value for the create_date column.
    I'm using Oracle 8.1.6 on HP-UX. Here's my syntax, so far:
    CREATE OR REPLACE TRIGGER tI_GRANT_TEST_CHILD before INSERT on GRANT_TEST_CHILD for each row
    declare curDate DATE;
    declare idNumber NUMBER;
    begin
         SELECT SYSDATE into curDate FROM DUAL;
         SELECT GRANT_TEST_SEQ.NEXTVAL into idNumber FROM DUAL;
         :new.CREATE_DATE := curDate;
         :new.ID_NUMBER := idNumber;
    end;
    I'm pretty new to Oracle, so I've probably got a syntax error. The trigger worked fine when I just had the create date functionality; but, I can't get the sequence stuff to work.
    Also, anyone know any good links for Oracle syntax standards?
    Thanks for the help.

    I don't see anything wrong with the syntax in your example, but the trigger can be simplified to:
    create or replace trigger ti_grant_test_child
    before insert on grant_test_child
    for each row
    begin
      select grant_test_seq.nextval
        into :new.id_number
        from dual;
      :new.create_date := sysdate;
    end;
    /You can type SHOW ERRORS after compiling in SQL*Plus to see the actual errors.

  • 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

  • File name generation with sequence number

    Hi All,
    My scenario is, File to File.  I need to generate the filenames at the target side like File1.xml, File2.xml..File9999.xml for each file triggered from source system. The interface tiggesrs multiple times in a day.
    For example, for the first time, 5 files triggered, need to generate File1.xml,File2.xml..File5.xml. After some time the interface might trigger with 10 files, then need to generate files as File6.xml,File7.xml....File15.xml . Once the file count reaches 9999 then need to generate the files from  1 (File1.xml)again.
    Could you please suggest me the possible solutions. For this any Lookups required?
    Regards,
    Praveen Kumar

    Hi Praveen,
    Case 1: If a field in source data carries the information regarding the sequence.
                 You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a  Ztable  to store the sequence number , a function module to fetch the number , and then use a UDF  in which you will implement the  RFC call logic.Then the same process ....      assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • Sequence number/counter in File name using FTP

    Hi
    I have to add sequence number in the file name. How can i do that? everytime file generates it should pick up the latest file number.
    Example File1 File2 File3. 1,2 and 3 are the sequnce number.
    Regards

    Hi ria,
             You can do this by dynamic file creation. Use this following code and cretate an UDF. The map the required file format to the target header structure as below;
    UDF
    sequence number:
    IDENTIFIER is the parameter
    Import com.bp.xi.util.*;
    Code:
    return ServiceUtil.getSequenceValue( IDENTIFIER, container, false );
    Dynamic file:
    Key & Value is the parameter
    Code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get( StreamTransformationConstants.DYNAMIC_CONFIGURATION );
    DynamicConfigurationKey confkey = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",  Key );
    conf.put( confkey, Value );
    return "";     
    Input parameter "Key" is given a constant value"FileName"
    Second parameter "Value" is the file pattern
    Mapping
    Constant(File)concat function sequence numberUDF ==> Dynami File udf ==>target header record.
    In the receiver communication channel check the adapter specific function, filename
    points if useful
    regards,
    Murugavel

  • 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,

Maybe you are looking for

  • Can I have multiple files on a single time capsule?

    On a time capsule, can partition different backups for different files, i.e. different computers.

  • Create a view based on a public synonym

    Hi I'm trying to create a view based on a public synonym, but getting "ORA-01031: insufficient privileges" error. When i retrieve records from the same public synonym, i could able to do so. But when i try to create a view based on that synonym, it i

  • Server 2008 SP2 will not install Windows Updates

    I receive this error: Installation Failure: Windows failed to install the following update with error 0x8000ffff: Security Update for Windows Server 2008 (KB2653956). Installation Failure: Windows failed to install the following update with error 0x8

  • How to remove/remap keyboard shortcut mapping in firefox ?

    I have a text editor that uses CTRL-SHIFT+P for macro playback and pressing the sequence in my text editor is always launching an instance of firefox. How can I remove/remap this kb shortcut in firefox ?

  • Safari Web Content

    I am running the following Maverick - 10.9.2, with Safari Version 7.0.2 (9537.74.9) This build of Safari seems to be incredibly slow, not only when it opens but when you open multiple tabs, the iMac stops reponding, unable to use any applications unt