Sequence should be rollback.

i want sequence should be rollback.
e.g i have created sequnce seq1 and insert into table tt as below
SQL> create sequence seq increment by 1 start with 1;
Sequence created.
SQL> create table tt(id number);
Table created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
SQL> commit;
Commit complete.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
5
6
6 rows selected.
SQL> rollback;
Rollback complete.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
7
8
6 rows selected.
here i want id should be 1,2,3,4,5,6
SQL>
i want sequence should be rollback.
e.g i have created sequnce seq1 and insert into table tt as below
SQL> create sequence seq increment by 1 start with 1;
Sequence created.
SQL> create table tt(id number);
Table created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
SQL> commit;
Commit complete.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
5
6
6 rows selected.
SQL> rollback;
Rollback complete.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> insert into tt values(seq.nextval);
1 row created.
SQL> select * from tt;
ID
1
2
3
4
7
8
6 rows selected.
here i want id should be 1,2,3,4,5,6
SQL>

Everytime you want a nextval from a sequence, you want that no other user is able to get the same value. This is only reached, when the sequence never rollback! If it would do so, it would mean, that as long you do not make a commit, other users see an old sequence-value and would get with nextval a sequencenumber you already have get. Therefore sequence-numbers never rollback. If you want another logic you have to implement your own "sequence"-logic (and be aware, that never two user�s can get the same number!).
regards
Anna

Similar Messages

  • Sequence should always start with 1

    Hello,
    i am using a sequence in a Mapping. But by starting the mapping the second or 3rd time the sequence did not begin with the value 1 but with the last value + 1 of the sequence in the 1st mapping.
    Is it possible to use a sequence so that it always begins with the value 1 everytime you start the mapping?
    Regards,
    vinzi

    I'm not sure I quite understood what you want, lemme get this straight:
    U have a sequence named SEQUENCE and you use it in 3 different mappings. When you finish run the first, you want it to restart counting?
    If so, then, I'm afraid you'll have to re-deploy the sequence. But you don't have to do it in Control Center.
    You may create a stored procedure that creates the sequence using 'EXECUTE IMMEDIATE' facility. Then, use it as a pre mapping process. It would be something like:
    -- This one you'd use in the pre-mapping process
    create or replace procedure Create_seq as
    begin
    execute immediate 'create sequence bla bla bla bla';
    end;
    -- This one you'd use in the post-mapping process
    create or replace procedure drop_seq as
    begin
    execute immediate 'drop sequence bla bla bla bla';
    end;
    Then, using this procedures in each mapping you want to use the same sequence. That should be enough.
    Good luck

  • Sequence should start with 000001 how?

    I need to create a sequence which starts with 000001 i used this query to create
    CREATE SEQUENCE sundayINCREMENT BY 1
    MINVALUE 000001
    MAXVALUE 999999
    START WITH 000001
    But the sequence is stating with 1 not 000001.

    That will be because the number "000001" and "1" are exactly the same thing.
    Oracle won't store the extra 0's, because it would be a pointless waste of space!
    If you're wanting to display the column containing the sequence number in a particular format, why not store the sequence as a number, and then format it whenever it is viewed eg:
    select to_char(1, 'fm099999') from dual;
    000001

  • Which access sequence of Partner determination should be used?

    Now my company is upgraded from CRM 2.0c to CRM 5.0 HR1. I found the different result about partner determination on business activity (via transaction code: CIC0) between two version.
    <b>On CRM 2.0C</b>
    <b><u>Tcode: CIC0</u></b>
    Enter sold-to party code: 5300001 as activity partner, Contact person:244 on 'BP searching' workspace. Then on 'Maintain Business Transaction' workspace will display  5300001 as activity partner and 244 as Contact person.
    <b><u>Configuration:</u></b>
    Partner Function: 00000015 Contact person (CRM) using Access sequence 0002
    Access sequence 0002 from activity partner
    Dialog seq:10 has partner origin COM_PARTNER_A Preceding document and mark 'Determine in incorrect source partner'.
    Dialog seq:20 has partner origin CRM_PARTNER_D General business partner model and have origin details; Partner Function category '0006 Activity partner' and Usage 'CRM'.
    <b>CIC0 of CRM 5.0 HR1</b>
    <u>Tcode: CIC0</u>
    Enter sold-to party code: 5300001 as activity partner, Contact person:244 on 'BP searching' workspace. Then on 'Maintain Business Transaction' workspace will display  5300001 as activity partner and 66 as Contact person (66 is the first contact person of sold-to party master record:5300001).
    <b><u>Configation:</u></b>
    Partner Function: 00000015 Contact person (CRM) using Access sequence 0002
    Access sequence 0002 from activity partner
    Dialog seq:10 has partner origin COM_PARTNER_A Preceding document and mark 'Allow Incorrect Source'.
    Dialog seq:20 has partner origin CRM_PARTNER_D DO NOT USE - General business partner model and have details on the source; Partner Function category '0006 Activity partner' and Usage 'CRM'.
    Dialog seq:30 has partner origin CRM_PARTNER_C Business Partner Relationship and have details on the source; Partner Function category '0006 Activity partner' and Usage 'CRM'.
    Please suggest me which access sequence should be used for getting the correct contact person (result same as CRM 2.0C).
    Thanks you so much for support.

    Hi,
    to you receive the same result also in CRMD_ORDER, or only in CIC0. Please keep in mind that there is a difference! In CIC0 no pop-ups for selecting partners is executed, so the first contact person is taken (note 487734 gives a modification. Also the partner function of ICAGENT is necessary within CIC0.
    From the view of CRMD_ORDER the following access sequence should be used:
    10     COM_PARTNER_A Preceding Document
    20     CRM_PARTNER_A BP Relationships By Sales Organization  + Wait Flag + Partner Function category '0006 Activity partner' and Usage 'CRM'.
    30     CRM_PARTNER_C Business Partner Relationships + Partner Function category '0006 Activity partner' and Usage 'CRM'.
    Hope that this information is helpful!
    Regards, Gerhard

  • Rollback Issue in BPEL

    Hi All,
    I am facing issue with Txn rollback in BPEL while using fault policies.My BPEL polls JMS Q and  invokes 2 databases and 1 jms adapter in a sequential manner. I want if any invocation fails , the preceding successful invocations should be rollbacked and txn should be retried as per the source jms q retry settings .I have worked on it using 2 approaches-
    1. Without using Fault Policy- I created a catchall and added a throw activity with rollback fault in it. So if any invocation fails, the rollback and retry is working fine as per the source Q retry settings.
    2.With Fault Policy- I created a fault policy and fault binding(composite/reference level).Also I created a catchall and added a throw activity with rollback fault in it.When any invocation fails, the fault policy is called, and the Ora:retry action executes and retry calling the failed adapter as per the retry configuration set in the policy file. If after all retries, still invocation fails, then transaction goes to CatchAll block.Here is the problem.The transaction is not getting rollbacked and does not even retry as per the JMS Q retry configuration.
    My agenda is to have a process, where in if any invocation fails, that should be retried as per fault policy retry configuration.If still invocation is faulted after all retries, the preceding invocations should be rollbacked and the message should be rollbacked to source jms Q. Again bpel should be instantiated with new transaction. Each instance should itself retry as per fault policy retry configuration.It should keep on retrying(creating new instances) till source Q jms retry limit is achieved.
    Please help..
    Thanks
    Rishu

    Hi Ananth,
    Thanks for your reply.
    I am using fault policies for Error handling in all my interfaces instead of handling the faults using the catch block.So the same approach I need to follow in this interface as well , where I am facing the issue. In my affected interface, I have 3 invocations in sequence manner and want that If any invocation fails, the earlier successful transactions should be rollbacked.So when I am using fault policy, the failed invocation is getting retried as per the fault policy retry , but it is not rollbacking the earlier 2 successful invocations, which it should do to have an effective error handling. Same is getting accomplished by using Catch and throwing rollback error from there. I am ok even if Q retry should not get executed but I need to rollback the previous successfully executed invocations.Could you please let me know how to handle this scenario using fault policy..May be I am skipping something then..
    Thanks and Regards,
    Rishu Sharma

  • Sequence in forms

    I want to use oracle sequence in form to increment column Id of table.
    How to use it in form so that sequence should not increase in case of rollback.

    Hello,
    There is no way to do that.
    When you select the Sequence.NEXTVAL, it is increased, even if you issue a rollback after.
    Francois

  • WebLogicJtaTransactionManager rollback issue

    Hi All,
    I have some problem using WebLogicJtaTransactionManager. My problem is although there is an exception, the transaction cannot rollback.
    I'm using hibernate + spring and weblogic as the application server.
    this is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:jee="http://www.springframework.org/schema/jee"      
         xsi:schemaLocation="
              http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
              http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
              http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
              http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">               
         <jee:jndi-lookup id="dataSource" jndi-name="localDS" />
         <jee:jndi-lookup id="myNetsDataSource" jndi-name="myNetsDS" />
         <bean id="sessionFactory"
              class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" destroy-method="destroy">
              <property name="dataSource" ref="dataSource" />
              <property name="configurationClass">
                   <value>org.hibernate.cfg.AnnotationConfiguration</value>
              </property>
              <property name="configLocations">
                   <list>
                        <value>/WEB-INF/hibernate.cfg.xml</value>
                   </list>
              </property>
              <property name="hibernateProperties">
                   <props>
                        <prop key="hibernate.connection.driver_class">${hibernate.connection.driver_class}</prop>
                        <prop key="hibernate.dialect">${hibernate.dialect}</prop>
                        <prop key="hibernate.current_session_context_class">${hibernate.current_session_context_class}</prop>
                        <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
                        <prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
                   </props>
              </property>
         </bean>
         <bean id="myNetsSessionFactory"
              class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" destroy-method="destroy">
              <property name="dataSource" ref="myNetsDataSource" />
              <property name="configurationClass">
                   <value>org.hibernate.cfg.AnnotationConfiguration</value>
              </property>
              <property name="configLocations">
                   <list>
                        <value>/WEB-INF/myNets-hibernate.cfg.xml</value>
                   </list>
              </property>
              <property name="hibernateProperties">
                   <props>
                        <prop key="hibernate.connection.driver_class">${hibernate.connection.driver_class}</prop>
                        <prop key="hibernate.dialect">${hibernate.dialect}</prop>
                        <prop key="hibernate.current_session_context_class">${hibernate.current_session_context_class}</prop>
                        <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
                        <prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
                   </props>
              </property>
         </bean>     
         <bean id="txManager"
              class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
              <property name="transactionManagerName"
    value="javax.transaction.TransactionManager"/>
         </bean>
         <aop:config>
              <aop:pointcut
                   expression="execution(* com.kiosk.commonlib.service.*.*(..))"
                   id="ats" />
              <aop:advisor advice-ref="txAdvice" pointcut-ref="ats" />
         </aop:config>
              <tx:advice id="txAdvice" transaction-manager="txManager">
              <tx:attributes>
                   <tx:method name="save*" propagation="REQUIRED" />
                   <tx:method name="delete*" propagation="REQUIRED" />
                   <tx:method name="remove*" propagation="REQUIRED" />
                   <tx:method name="update*" propagation="REQUIRED" />
                   <tx:method name="log*" propagation="REQUIRED" />
                   <tx:method name="get*" propagation="REQUIRED"
                        read-only="true" />
                   <tx:method name="list*" propagation="REQUIRED"
                        read-only="true" />
              </tx:attributes>
              </tx:advice>
    </beans>
    I created two datasource (localDS and myNetsDS) in weblogic server, both access to different database. is there something wrong with my txmanager configuration?
    Thanks

    Hi Ananth,
    Thanks for your reply.
    I am using fault policies for Error handling in all my interfaces instead of handling the faults using the catch block.So the same approach I need to follow in this interface as well , where I am facing the issue. In my affected interface, I have 3 invocations in sequence manner and want that If any invocation fails, the earlier successful transactions should be rollbacked.So when I am using fault policy, the failed invocation is getting retried as per the fault policy retry , but it is not rollbacking the earlier 2 successful invocations, which it should do to have an effective error handling. Same is getting accomplished by using Catch and throwing rollback error from there. I am ok even if Q retry should not get executed but I need to rollback the previous successfully executed invocations.Could you please let me know how to handle this scenario using fault policy..May be I am skipping something then..
    Thanks and Regards,
    Rishu Sharma

  • Problem using secondary database, sequence (and custom tuple binding)

    I get an exception when I try to open a Sequence to a database that has a custom tuple binding and a secondary database. I have a guess what the issue is (below), but it boils down to my custom tuple-binding being invoked when opening the sequence. Here is the exception:
    java.lang.IndexOutOfBoundsException
    at com.sleepycat.bind.tuple.TupleInput.readUnsignedInt(TupleInput.java:4
    14)
    at com.sleepycat.bind.tuple.TupleInput.readInt(TupleInput.java:233)
    at COM.shopsidekick.db.community.Shop_URLTupleBinding.entryToObject(Shop
    _URLTupleBinding.java:72)
    at com.sleepycat.bind.tuple.TupleBinding.entryToObject(TupleBinding.java
    :73)
    at COM.tagster.db.community.SecondaryURLKeyCreator.createSecondaryKey(Se
    condaryURLKeyCreator.java:38)
    at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.
    java:546)
    at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.ja
    va:42)
    at com.sleepycat.je.Database.notifyTriggers(Database.java:1343)
    at com.sleepycat.je.Cursor.putInternal(Cursor.java:770)
    at com.sleepycat.je.Cursor.putNoOverwrite(Cursor.java:352)
    at com.sleepycat.je.Sequence.<init>(Sequence.java:139)
    at com.sleepycat.je.Database.openSequence(Database.java:332)
    Here is my code:
    // URL ID DB
    DatabaseConfig urlDBConfig = new DatabaseConfig();
    urlDBConfig.setAllowCreate(true);
    urlDBConfig.setReadOnly(false);
    urlDBConfig.setTransactional(true);
    urlDBConfig.setSortedDuplicates(false); // No sorted duplicates (can't have them with a secondary DB)
    mURLDatabase = mDBEnv.openDatabase(txn, "URLDatabase", urlDBConfig);
    // Reverse URL lookup DB table
    SecondaryConfig secondaryURLDBConfig = new SecondaryConfig();
    secondaryURLDBConfig.setAllowCreate(true);
    secondaryURLDBConfig.setReadOnly(false);
    secondaryURLDBConfig.setTransactional(true);
    TupleBinding urlTupleBinding = DataHelper.instance().createURLTupleBinding();
    SecondaryURLKeyCreator secondaryURLKeyCreator = new SecondaryURLKeyCreator(urlTupleBinding);
    secondaryURLDBConfig.setKeyCreator(secondaryURLKeyCreator);
    mReverseLookpupURLDatabase = mDBEnv.openSecondaryDatabase(txn, "SecondaryURLDatabase", mURLDatabase, secondaryURLDBConfig);
    // Open the URL ID sequence
    SequenceConfig urlIDSequenceConfig = new SequenceConfig();
    urlIDSequenceConfig.setAllowCreate(true);
    urlIDSequenceConfig.setInitialValue(1);
    mURLSequence = mURLDatabase.openSequence(txn, new DatabaseEntry(URLID_SEQUENCE_NAME.getBytes("UTF-8")), urlIDSequenceConfig);
    My secondary key creator class looks like this:
    public class SecondaryURLKeyCreator implements SecondaryKeyCreator {
    // Member variables
    private TupleBinding mTupleBinding; // The tuple binding
    * Constructor.
    public SecondaryURLKeyCreator(TupleBinding iTupleBinding) {
    mTupleBinding = iTupleBinding;
    * Create the secondary key.
    public boolean createSecondaryKey(SecondaryDatabase iSecDB, DatabaseEntry iKeyEntry, DatabaseEntry iDataEntry, DatabaseEntry oResultEntry) {
    try {
    URLData urlData = (URLData)mTupleBinding.entryToObject(iDataEntry);
    String URL = urlData.getURL();
    oResultEntry.setData(URL.getBytes("UTF-8"));
    catch (IOException willNeverOccur) {
    // Success
    return(true);
    I think I understand what is going on, and I only noticed it now because I added more fields to my custom data (and tuple binding):
    com.sleepycat.je.Sequence.java line 139 (version 3.2.44) does this:
    status = cursor.putNoOverwrite(key, makeData());
    makeData creates a byte array of size MAX_DATA_SIZE (50 bytes) -- which has nothing to do with my custom data.
    The trigger causes an call to SecondaryDatable.updateSecondary(...) to the secondary DB.
    updateSecondary calls createSecondaryKey in my SecondaryKeyCreator, which calls entityToObject() in my tuple-binding, which calls TupleInput.readString(), etc to match my custom data. Since what is being read goes for more than the byte array of size 50, I get the exception.
    I didn't notice before because my custom tuple binding used to read fewer that 50 bytes.
    I think the problem is that my tuple binding is being invoked at all at this point -- opening a sequence -- since there is no data on which it can act.

    Hi,
    It looks like you're making a common mistake with sequences which is to store the sequence itself in a database that is also used for application data. The sequence should normally be stored in separate database to prevent configuration conflicts and actual data conflicts between the sequence record and the application records.
    I suggest that you create another database whose only purpose is to hold the sequence record. This database will contain only a single record -- the sequence. If you have more than one sequence, storing all sequences in the same database makes sense and is safe.
    The database used for storing sequences should not normally have any associated secondary databases and should not be configured for duplicates.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to get sequence value on click of button in OAF Page

    Hi all,
    I have a requirement to get a field called Bankrefernece number populated with sequence value on click of apply button ; i mean inserting new record in database for new transaction.
    Sequence Value should be something like this:
    Example
    No     Transfer Date     Bank Reference Number
    (DDMMYY_999)
    1     24-Oct-2010     241010_001
    2     24-Oct-2010     241010_002
    3     25-Oct-2010     251010_001
    means every day sequence should start with the date initials.
    Kindly give your valuable input.
    Thanks
    Sims
    Edited by: sims on Jan 4, 2011 11:22 PM

    sims wrote:
    Hi Anil,
    Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
    Thnx for ur suggestion
    SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • How do I start, stop and restart a sequence with a periodic input?

    Hi,
    I have written some code that will monitor my com port (rs-232) continuously for an ASCII character (in this case a 'P'). When the P is received, I want a sequence structure to start working. The P will only appear once for a short while, but the sequence should carry on running until it finishes all the frames. On the next time a P appears on my monitor, I want to either stop the sequence structure regardless of which frame its in and restart the sequence from the beginning again or to run the sequence from the start again if it has already completed all the frames.
    What sort of structure do I need to do this, are there any examples?
    James

    James,
    Indiana is correct, my take on this is similiar.
    If you have a 3 element sequence structure for example which runs if 'P' is returned from your COMs thread, you will need to query a variable in each element of the sequence in order to suspend execution of the next/remaining elements in the sequence if this event occurs. You can do this by reading the variable that your COMs thread sets using a case structure in each element of your sequence. In order to re-run your sequence if 'P' is returned during the execution you can simply set the suspend variable and ensure the code is in a while loop to recall the code.
    See the attached example code/screen shot:
    This is however not an elegant solution and the best way would probably be using the events structure and a user event to queue the P events. This is available in 6.1 but I believe its the professional package. See also my implementation using this method, again attached below:
    Hope this helps,
    Kind Regards
    Steven Bird
    Applications Engineer
    National Instruments
    Attachments:
    Example.JPG ‏194 KB

  • Creation of sequence in etext template

    Hi All,
    I am creating a custom etext template for a invoice payment which will be forwarded to bank.
    The file will be generated for each invoice payment made one at a time.
    So, I have a requirement where in need to generate a sequence number in of the fields of the extext template. When the first file is send to bank, the sequence should be 1, for the second run the sequence should display 2 and so on.
    Here we cannot use the <RESET AT LEVEL> as RECORD or LEVEL as we need to control the sequence outside the etext template and in the database. So, I believe we should use PERIODIC_SEQUENCE that controls the value in database level.
    My question is how to achieve the relation between the database value and the etext template value.
    ex:
    <DEFINE SEQUENCE> allrecordsequence
    <RESET AT LEVEL> PERIODIC_SEQUENCE
    <INCREMENT BASIS> /outboundtransaction/paymentsequence[sequencename=allrecordsequence]/lastvalue + 1
    <END DEFINE SEQUENCE> allrecordsequence
    In the etext template
    sequence(allrecordsequence)
    The value in the etext template is always generation as 1, as the database record paymentsequence/lastvalue is null.
    Here is the user guide notes:
    Reset at Level
    The reset at level subcommand defines where the sequence resets its starting number. It is a mandatory subcommand. For example, to number the payments in a batch, define the reset at level as Batch. To continue numbering across batches, define the reset level as RequestHeader.
    In some cases the sequence is reset outside the template. For example, a periodic sequence may be defined to reset by date. In these cases, the PERIODIC_SEQUENCE keyword is used for the reset at level. The system saves the last sequence number used for a payment file to the database. Outside events control resetting the sequence in the database. For the next payment file run, the sequence number is extracted from the database for the start at number (see start at subcommand).
    But the sequence value in the database is not getting incremented.
    Appreciate an early response as it is really urgent.
    Thank you in advance.

    I have developed the solution using the below approach-
    Requirement - ( My requirement was a little different to what was mentioned above)
         To generate a sequence number in the e-text template of a invoice payment file.
         In a day when the first file is send to the bank, the sequence should be 1, for the second file the sequence should be 2.
         For the next day run the sequence value should be reset to 1.
    Approach 1) Use the IBY_FD_EXTRACT_EXT_PUB hook and Use sequence in the e-text template.
    GET_INS_EXT_AGG procedure is called once only for the payment instruction.
    It will add XML data element under OutboundPaymentInstruction tag.
    Add a new XML tag with the successful count of the formatted payments in a day.
    SQL query.
    SELECT COUNT (1)
    INTO v_payment_count
    FROM iby_payments_all a
    WHERE UPPER (a.org_name) = <org_name>
    AND UPPER (a.payment_profile_sys_name) =
    'profile system name'
    AND TRUNC (a.creation_date) = TRUNC (SYSDATE)
    AND a.payment_service_request_id <
    (SELECT MAX (b.payment_service_request_id)
    FROM iby_payments_all b);
    In the e-text template use the sequence number
    <DEFINE SEQUENCE>     RecordSeq1
    <RESET AT LEVEL>     OutboundPaymentInstruction
    <INCREMENT BASIS>     LEVEL
    <START AT>          1
    <END DEFINE SEQUENCE >     RecordSeq1
    While referring to the sequence use :- SSPN_PAYMENT_COUNT + SEQUENCE_NUMBER(RecordSeq1)
    to get the latest count of payment files.
    Approach 2) Using payment system
    <DEFINE SEQUENCE>      RecordsSeq1
    <RESET AT LEVEL>      PERIODIC_SEQUENCE
    <INCREMENT BASIS>      LEVEL
    <START AT> /PaymentSequence[SequenceName=’RecordsSeq1’]/LastValue + 1
    <END DEFINE SEQUENCE > RecordsSeq1
    By using a PERIODIC_SEQUENCE it will periodically generate the numbers.
    SEQUENCE_NUMBER(RecordsSeq1) is used to generate the number.
    I believe we need to have a payment system defined and associate the same to a Payment Process Profile.
    Only then can it have association with the last sequence number in the database.
    Please correct me if the Approach#2 set up is incorrect.
    Since Payment system was not necessary for the payment profile that we have used I have used approach 1
    Approach 2 can be used as a guideline :)

  • Purpose of Access sequence in text determination procedure?

    Dear all,
    I can get my text id's at sales document header/item level by simply assigning my defined text id to the text determination procedure.
    now, what is the need for having an access sequence where a text abject and text id is maintained??
    Thanks and regards
    KV

    Hi,
    Define Access Sequences For Determining Texts
    In this IMG activity, you define the access sequences which the SAP System uses to determine the texts for a text object.
    Afterwards, you specify an access sequence for the text search in the determination procedure for every text type.
    You only define access sequences for sales and distribution documents, not for customer master records.
    With an access sequence, you define the sequence and the requirements of the search used by the SAP System to find a text.
    This allows you, for example, to have the system check whether a text exists in the customer language. If this is not the case, then a text in the sales organisation language can be searched for. If this is also unsuccessful, you can have the system carry out the search using English as the fixed value.
    To do this, you make the following specifications for every access sequence:
    acc. no (access number)
    With the access number, you define the sequence in which the text objects of an access sequence should be read. The element with the lowest access number is read first. If an appropriate text is found, the search is ended. Otherwise, the SAP System checks the element with the next number up.
    Text object
    Here, you define which text objects should be checked by the SAP System for an access sequence.
    In the standard SAP R/3 System, for example, in the access sequence 0001 for the text object sales document header is defined, that the SAP System first searches for a form header text in the preceding document (text object VBBK) and afterwards for a sales note in the customer master record (text object KNVV).
    ID (text type)
    Here, you define which text type is to be read from the specified text object.
    It is recommended to select the same text type for the text to be copied. For example, the text for the form header in the customer master record (text type 0001) should be copied into the text for form header of a sales document (text type 0001).
    kapil

  • Additional Batch Sequences for Acrobat 9 Pro

    In my downloaded version of Acrobat 9 Pro, there are only a few batch sequences.
    The last time I bought Acrobat on a CD was version 5, and many additional batch sequences came on the CD.  By "additional" I mean that they were not automatically installed when Acrobat was installed, but they could be installed manually.  One could simply copy the additional batch sequences from the CD into the Acrobat installation, after which all of them would be available via the Acrobat interface.
    Is the same true with a CD version of Acrobat 9 -- i.e., has the Acrobat 9 CD additional batch sequences that can be copied into the Acrobat installation?
    If so, is it possible for a user of the downloaded version of Acrobat 9 Pro to obtain those additional batch sequences?
    On my Acrobat 5 CD, the additional batch sequences were in --
    (optical drive letter):\Batch\Sequences
    In my Acrobat 9 Pro installation (under Windows XP Pro), one would copy additional batch sequences to --
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Sequences\ENU
    In both Acrobat 5 and Acrobat 9, it appears that the names of all batch sequence files end in the extension .sequ
    I would particularly like to obtain the "List all Bookmarks" batch sequence.  I copied that sequence from the Acrobat 5 CD to the Acrobat 9 installation, and it "sort-of" works.  The main problem is that its list of bookmarks is limited to one page, regardless of the number of bookmarks.  Any bookmarks that would be listed on pages 2, 3 etc. of the list of bookmarks are not listed at all.
    Is it possible for me to download or otherwise obtain the Acrobat 9 "List all Bookmarks" batch sequence?
    Thanks!

    Thank you, try67, for that insight.
    Here is the "List all Bookmarks" batch sequence from the Acrobat 5 CD:
    /* List all Bookmarks */
    /* Recursively work through bookmark tree  */
    function PrintBookmarks(bm, nLevel)
        if (nLevel != 0) { // don't print the root
            bmReport.absIndent=bmTab*(nLevel-1);
            bmReport.writeText(util.printf("%s",bm.name));
        if (bm.children != null)
              for (var i = 0; i < bm.children.length; i++)
                PrintBookmarks(bm.children[i], nLevel + 1);                          
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText(this.title);
    bmReport.writeText(" ");
    bmReport.size = 1.5;
    bmReport.writeText("Listing of Bookmarks");
    bmReport.writeText(" ");
    bmReport.size = 1;
    PrintBookmarks(this.bookmarkRoot, 0);
    global.bmRep = bmReport;  // make global
    global.wrtDoc = app.setInterval(
        'try {'
        +'       reportDoc = global.bmRep.open("Listing of Bookmarks");'
        +'       console.println("Executed Report.open");'
        +'       app.clearInterval(global.wrtDoc);'
        +'       delete global.wrtDoc;'
        +'       console.println("Executed App.clearInterval");'
        +'       reportDoc.info.title = "Bookmark Listings";'
        +'       reportDoc.info.Author = "A. C. Robat";'
        +'} catch (e) {console.println("Waiting...: " + e);}'
        , 100);
    I am not a programmer, and so would be grateful if you would advise how that sequence should be modified to incorporate your suggestion.
    Thanks!

  • Concatenate elements with same name in sequence

    version 9.2
    I have a clob column containing xml - unregistered
    Some of the old xml has multiple <notes> elements and the new xml has one <notes> element. I have made a view that successfully extracts the xml from the column and it works great, but when I have multiple <notes> elements the view fails since I am using extractvalue(). I need to select the <notes> tags concatenated into one column in sequence when I have multiples. I am guessing the sequence should be as they appear in the xml document from top to bottom since there is no sequence attribute. I know how to use xmlsequence and xmltable to get the individual <notes> tags but they are not concatenated. Is there a magic xmlsequence/concatenation function that will do what I want here?
    -- old xml
    <Accident>
       <Case>
          <TRACS_Case_Number Value="7777777"/>
          <Notes>V-1 AND V-2 N/B TRANSIT RD (ST 78\) SLOWING TO MERGE INTO TRAFFIC.  V-3 N/B TRANSIT RD. </Notes>
          <Notes>STRIKES V-2 IN REAR AND PUSHES V-2 INTO V-1 STRIKING V-1 IN REAR WITH FRONT OF V-2 .  </Notes>
          <Notes>NO INJURIES.</Notes>
       </Case>
    </Accident>-- new xml
    <Accident>
       <Case>
          <TRACS_Case_Number Value="7777777"/>
          <Notes>V-1 AND V-2 N/B TRANSIT RD (ST 78) SLOWING TO MERGE INTO TRAFFIC.  V-3 N/B TRANSIT RD. STRIKES V-2 IN REAR AND PUSHES V-2 INTO V-1 STRIKING V-1 IN REAR WITH FRONT OF V-2 .  NO INJURIES.</Notes>
       </Case>
    </Accident>I am also trying to register this xml to improve performance. However, when I see things like this in the xml I wonder what will happen when I try to register this xml. The DTD, I have no XSD, currently only supports one <notes> tag. Do I have to clean up all the xml in column to match the current DTD before registering? I could also use a good, EASY, example of how to register a schema.
    Thanks...

    You can use the string aggregation technique to concatenate the Notes element.
    sql> WITH xmltable AS
      2    (SELECT xmltype('<Accident>
      3     <Case>
      4        <TRACS_Case_Number Value="7777777"/>
      5        <Notes>V-1 AND V-2 N/B TRANSIT RD (ST 78\) SLOWING TO MERGE INTO TRAFFIC.  V-3 N/B TRANSIT RD. </Notes>
      6        <Notes>STRIKES V-2 IN REAR AND PUSHES V-2 INTO V-1 STRIKING V-1 IN REAR WITH FRONT OF V-2 .  </Notes>
      7        <Notes>NO INJURIES.</Notes>
      8     </Case>
      9  </Accident>') xmlcol
    10     FROM dual)
    11  SELECT SUBSTR(replace(MAX(sys_connect_by_path(notes,   ':')),':',' '),   2) Notes
    12  FROM
    13    (SELECT extractvalue(t.column_value,    '/Notes/text()') notes,
    14       rownum rn
    15     FROM xmltable xt,
    16       TABLE(xmlsequence(EXTRACT(xmlcol,    'Accident/Case/Notes'))) t)
    17  CONNECT BY PRIOR rn = rn -1 START WITH rn = 1;
    NOTES
    V-1 AND V-2 N/B TRANSIT RD (ST 78\) SLOWING TO MERGE INTO TRAFFIC.  V-3 N/B TRANSIT RD.  STRIKES V-2 IN REAR AND PUSHES
    G V-1 IN REAR WITH FRONT OF V-2 .       NO INJURIES.

  • LR3 Web Gallery Sequence Numbering bug?

    Anyone else getting this problem with sequence numbering in the web HTML templates? Basically, as you jump through photos the photo number is always stuck on #1, never changes when you go to the next photo - should go 1, 2, 3, 4, 5...
    I just sent a bug report but, wondering if anyone else found a fix for this yet.
    This is in LR3 on Mac - really trying to do this on TTG Highslide gallery but, same problem occurs in default Lightroom HTML gallery.
    Thanks.
    ******BUG******
    Concise problem statement:
    Steps to reproduce bug:
    1. Go to Web Module
    2. Choose default HTML Gallery
    3. Under Image Info set Caption to Sequence
    Results:
    Sequence caption always shows 1/total images.
    i.e. 1/10,  1/10,  1/10,  1/10
    Expected results:
    Sequence should increment current image number / total images as you click through images.
    i.e. 1/10, 2/10, 3/10, 4/10

    Yeah, still have the numbering problem using the Image Info sequence outputs.
    But, if you use the standard Lightroom Flash Gallery it has it's own sequence numbering output (that does not use Image Info captions)  and it does work correctly. These show up as 1/9, 2/9, 3/9 etc. on each photo down by the back/next buttons.
    Also, the Cell Numbering does work when using the Lightroom HTML Gallery - though, those numbers only appear on the index page not on individual photos.
    But, haven't seen a good work-around yet for sequence numbering in Image Info area. Only option there seems to be typing numbers manually into the caption. Or, if you need the caption for other info maybe use one of the IPTC fields like Headline to type in your numbers. You can then do a Custom Setting in web module to have those text fields show up with your photos.
    Really hoping we will see a LR 3.1 sometime soon with a fix - should be an easy correction for Adobe.

Maybe you are looking for

  • Problem with performance in flash player 11.4.402.287

    Hi, We found the problem in 11.4.402.287 flash player. IN Debug version, Flex application works fine but in standard version we experience  problems with performance. This happens only in 11.4.402 version for Firefox. In another browsers and Flash pl

  • Photo import issues LR2 EOS 5D MK2

    using Windows XP SP3 Lightroom Vers. 2.4 Camera: Canon EOS 5D MKII images: RAW and S-RAW Since I have this camera I do have issues that not all pictures will be imported into my Lightroom library. This happens during import from Hardware. In fact I h

  • Wierd window box all the way around my 16:9 footage

    Hey, Editing my feature using Final Cut Pro 5.1. When I export a sequence ot Quicktime I get this window like boarder all around. Why is this and how can I fix this? Footage is 16:9. Chris

  • Is window to window navigation is possible in a single web component int..?

    Hi Experts,                   I have developed a scenario in that i have stuck that is window to window navigation which is developed in a single web component interface is possible or not.If not possible why,If yes how can we achieve that send some

  • HP Scanjet 4850 don't work with Mavericks

    After installing of Mavericks HP Scanjet 4850 don't work. Is there anybody who can help me?