Increment a number without using sequence in Mapping

Hi,
Is there anyway to increment a number without using oracle sequence generator in OWB? I am using version 10.2.0.4.
Please let me know.
Thanks,
Siva

Perhaps it would help if you were more specific on what you wanted to do. I mean, there are many ways to generate sequences of numbers in Oracle. For example:
select level as seq_num from dual connect by level < 100;
to get the integers from 1 to 100. If you are dealing with order of rows within subsets of a query, take a look into analytic functions like rank().
But "Ways to increment a number"? Sure:
create function increment( x in number) returns number is begin if x is not null then return x+1; else return null; end if; end;
Now call your increment function!
Not sure what you are trying to accomplish, and can't help much without knowing.
Sorry.

Similar Messages

  • I have a iphone 4 with no SIM trey hole. Is there anyway i can get the serial number without using itunes?

    I have a iphone 4 with no SIM trey hole. Is there anyway i can get the serial number without using itunes? My iphone is disabled and will not connect to my computer because it is locked.

    Why do you need the serial number? You could get it if you'd ever synced it to that copy of iTunes before, but I'm guessing that's not the case.  You need to put the phone into recovery mode and restore it if it's disabled now. There really isn't any other choice.

  • Comenting code - style - how to keep coments where you want them - without using sequences

    Silly question maybe about style of commenting.
    Basically i like to use sequence boxes to keep comments on my diagram beside the bits of code that they refere to - otherwise when you use diagram cleanup (which i'm afraid i use all the time) they go anywhere.  This is good - except that i found especially when doing FPGA programming the sequence boxes reduce the amount of parralelism that can go on - since the 'box' needs to finish before any of the outputs can be used.  Is there some other method i should be using instead of sequence boxes to keep text beside elements - without enforcing that a set of elements are fixed in one place?
    Solved!
    Go to Solution.

    I usually use labels of structures (loops, cases, etc) and labels of diagram constants, etc. for comments. In newer versions, we also have wire labels.
    (see also)
    What is your LabVIEW version? Also the LabVIEW 2011 cleanup does a better job keeping diagram comments together with the related code compared to earlier version.
    LabVIEW Champion . Do more with less code and in less time .

  • How to find serial number without using macbook?

    What can be used to find serial number of my macbook outside of using my macbook?
    My computer was stolen and I do not have the box nor do I have it registered in iCloud, I know that iTunes holds my computer as an authorized user for my ID so I am sure somewhere it hold the serial number to identify that computer.
    I just need to know how to access that information so I may register it in my name so I can have Apple help me track it.

    You store purchase receipt, the box it came in, where you wrote that information down.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
      1. VUWER 1.5.4
      2. Sneaky ******* 0.2.0
      3. Undercover 4.7
      4. LoJack for Laptops Premium Mac
      5. STEM 2.1
      6. MacPhoneHome 3.5

  • Unwanted SMS without number (without using iMessage)

    hi all!
    A few months back, I began receiving spams (unwanted sms) on my phone, from websites and stuff, and I found out that they were coming through iMessage and that there was nothing to do about it.
    But it's been a few weeks now that I have been receiving sms that are not iMessages without a number (coming from an adult website that I had never heard of, honestly).
    In France you can report spam SMS but you have to give the number that texted you. In that case I can't even find it because it's only the name of the website (B*naughty not to mention) that appears, as if I had that number in my contacts, which I don't.
    So my problem si that I would like to report that spam but I am unable to find out the phone number they are texting me from.

    Again, SMS messages are a carrier feature. They have nothing to do with iMessages nor Apple. As as deggie said it is quite possible and common for a spammer to hide their phone number.
    This is again something you will need to try to work out with your carrier. No one here can help with this nor can Apple.
    Regards.

  • Delet applicant number without using PU90

    Hi Expert,
    I wrote an RFC function to create an applicant. I use BAPI_APPLICANT_CREATE.
    After, when I have an applicant number, I need to update some infotype.
    If during this update, I have an error, I need to delete the applicant number.
    It is possible with a function module or class ?
    Thanx
    Tony

    a class dealing with candidates is CL_HRRCF_CANDIDATE. may be you can find something there.
    or you could try to do it the database way:
    candidate is OTYPE NA in HRP1000
    There are relations in HRP1001:
    A/B 650 to CP
    A/B 651 to ND
    CP may refer to OTYPES P, US, BP and S
    The infotypes contayning candidates information are 51xx, tables HRP51xx, HRT51xx and maybe HRHAPxxx.
    And don't forget: some information (addresses etc.) are stored as business partner in tables BUPAxxxx.

  • How Generating Series Of Numbers Without  use Sequences

    i wana use insert table
    i use
    insert table_name (id)
    vaule (( SELECT ROWNUM N FROM dual CONNECT BY LEVEL <= 20))
    but error ORA-01427: single-row subquery returns more than one row

    ali_alkomi wrote:
    ORA-01427: single-row subquery returns more than one row
    insert into FISH_FAMILIES(SCIENCE_NAME,ARABIC_NAME,LATIN_NAME,IS_FAMILY)
    values ( (select distinct FAMILY from FISH_SPECIES) ,(select ARABIC_DESCRIPTION from FISH_SPECIES) ,(select LATIN_DESCRIPTION from FISH_SPECIES),(select distinct IS_FAMILY from FISH_SPECIES
    ))STOP POSTING YOUR SAME QUESTION ON DIFFERENT THREADS!
    how use insert more than query (select)
    If you continue posting the same on both threads, I will lock or delete one of them.

  • Generating a Primary Key WITHOUT using a Sequence Number

    Hi Everyone:
    I am trying to generate a primary key without using a sequence number or row count. What the user wants is the maximum value of the highest primary key already in the row set plus 1.
    For example, this is a Oracle Table (eg. named BatchSubmit) used to initiate batch job submission, and the primary key is an integer named "Runcard_Number". If there are 4 rows in this table and the Runcard_Numbers are 2, 6, 8 & 12, then the next generated Runcard_Number would be 13.
    I have looked throughout this forum and see how to generate numbers using a DBSequence, but the user does not want that. The numbers mean something to them, and they don't want them randomly assigned other than the max in the rowset plus 1. To do it in SQL it would be - select max(Runcard_Number) + 1 from BatchSubmit;
    I have been looking at using a hasnext loop and moving the maximum value to the new Runcard_Number, but I am very new to JHeadstart/JDev and I do not know where to put this. I am assuming the BatchSubmitImpl.java, but I'm not sure where to put it or which method to utilize
    I would appreciate any assistance.
    Mary
    U o Windsor

    Mary you're in luck, 'cause, I've been playing with the same thing, these days and found that..
    You can do that in two ways (that I know):
    - by calling a stored function that does max+1 (you can look it up in Dev's guide for Forms&4GLDevs 10g chapter 25.5 Invoking Stored Procedures and Functions)
    - by calling hardcoded or dinamicaly written statement, that does the same
    public Number callStatement(String stmt)
    Number id = new Number(0);
    Row idRow = getDBTransaction().createViewObjectFromQueryStmt(stmt).next();
    if(idRow != null)
    Object o = idRow.getAttribute(0);
    if(o != null)
    if(o instanceof Number)
    id = (Number)o;
    else
    throw new JboException("Conversion error!");
    return id;
    You should call it in
    protected void doDML(int operation, TransactionEvent transactionEvent)
    switch (operation)
    case DML_INSERT:
    // call here
    super.doDML(operation, transactionEvent);
    break;
    case DML_UPDATE:
    super.doDML(operation, transactionEvent);
    break;
    case DML_DELETE:
    super.doDML(operation, transactionEvent);
    break;
    Enjoy!
    S. Julijan

  • Want to use document number as the cheque number (without cheque management

    Dear All,
    During Automatic payment run - F110 I would like to use accounting document number as cheque number.
    Kindly suggest solution for the same.
    Thanks
    Prashant

    Hi Santosh,
    In this country Bank letters are issued as mode of payment. Unique sequence number is used to track the Bank letter. Since Accounting Document is Unique number I want to use the same.
    Kindly suggest the solution for capturing Accounting Document number instead of Cheque number.
    Or in other words I want to run F110 without maintaining cheque lot. Is it possible to make payment run without maintaining cheque lot number.
    Thanks
    Prashant

  • How to run a PLSQL mapping without using OWB Interface

    Hi there, does anybody know how to call a PL/SQL mapping <mapname.main> function without using OWB interface. We will have to create some other mechanism to call those generated mappings....
    Thanks in advance

    Hi Marcelo ,
    You can use the following code at the sql prompt to the run the mapping .
    DECLARE
    RetVal NUMBER;
    P_ENV WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    BEGIN
    RetVal := <Mapping Name>.MAIN(P_ENV) ;
    COMMIT;
    END;
    Regards,
    Shashin

  • Generate an unique number without sequence

    Hello,
    I need generate an unique number without sequence. I am using Oracle 11.2, here is the details. The column idSeq is unique withing one specific idType. I don't want a sequence for each idType.
    create table tb_test (idSeq number(5), idType number(5), addr varchar2(256));
    insert into tb_test
    (select case when idSeq is null then 1 else max(idSeq)+1 end, 3, 'Main street');
    I am having ORA-00937 : not a single-group group function error, any suggestion?
    Edited by: 939569 on 13-Feb-2013 11:21 AM

    Hi,
    939569 wrote:
    Hello,
    I need generate an unique number without sequence. Explain what you're trying to do, and why a sequence won't do it.
    I am using Oracle 11.2, here is the details. The column idSeq is unique withing one specific idType. I don't want a sequence for each idType.
    create table tb_test (idSeq number(5), idType number(5), addr varchar2(256));
    insert into tb_test
    (select case when idSeq is null then 1 else max(idSeq)+1 end, 3, 'Main street');
    I am having ORA-00937 : not a single-group group function error,Right. Since the sub-query is using an aggregate function (MAX), everything in the SELECT clause must be an aggregate, a group by expression, a constant, or something that depends entirely on them. In this example, the CASE expression depends on idSeq, which is not an aggregate, not a group by expression (there is no GROUP BY clause) and not a constant.
    Also, the sub-query must have a FROM clause. All queries and sub-queries in Oracle require a FROM clause.
    any suggestion?Use a sequence. The numbers won't be consecutive within each idType, but what does that matter? Chances are, no matter what you do, you won't be able to maintain consecutive numbers within each idType anyway.
    If you won't use a sequence, then you can try:
    INSERT INTO  tb_test (idSeq, idType, addr)
    SELECT  1 + NVL ( MAX (id_seq)
                  , 0
    ,       3
    ,     'Main street;
    FROM     tb_test
    WHERE   idType  = 3
    ;

  • How to increment the date using sequence?

    how to increment the date using sequence?
    01-jan-10
    02-jan-10
    30-jan-10

    794244 wrote:
    how to increment the date using sequence?
    01-jan-10
    02-jan-10
    30-jan-10This doesn't look like a task where a sequence is usefull.
    A sequence is a number generator that guarantees that multiple sessions will all get a different number.
    Even if the sequence is fetched for differnent users (=sessions) that the same time.
    This in turn means that the value returned by the sequence will depend on actions done in other sessions.
    Typical task: create a new unique primary key number. The number MUST be different in all sessions.
    In your case I guess that the same logic should work regardless of the session that executes it. So you need a "number generator" that works indepented from other session values. There are several ways to create such a numbered list.
    The basic idea is to create a select statement that simply returns as many rows as you need. And then use ROWNUM as the number generator. Examples how to do this have already been given. LEVEL works also in hierarchical queries.
    if my interpretation of your requirement is right, then all answers that really used a sequence seem to be wrong. Even if the output looks ok. At best they are just slow. To create new sequence values is a complex task and the database needs a little time for all the synchonization issues that come with it. At worst it will have gaps in the sequence because other sessions used the same value while the numbers were created.
    Edited by: Sven W. on Sep 20, 2010 2:08 PM

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Multi-Mapping in IDOC without using BPM ?

    Hi ,
    Please check ..
    Can below given blog can be used to achive Multi-mapping in IDOC without using BPM ?
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards
    PS

    Solved .. Thx every one .
    Approache Used :
    1. Created mapping  with Change signature on target Message type(idoc) with 1..N Occurence.
    2. Operation mapping with change Occurence on Target Operation(1..Unbounded) .
    3. Used same Operation mapping in Interface Determination with 0..unbounded(Multiplicity).

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

Maybe you are looking for

  • My iTunes won't sync and I can't download an app onto my iPhone 4S. It's been really bad since the update!

    Hi, Two problems here guys 1. My iTunes won't sync. Since the update to iTunes 11 it refuses to transfer purchaces from my iPhone 4S and won't put stuff from my phone into my iTunes library and I can't put anything on my phone through my laptop. Both

  • Lens correction Lightroom vs DxO Viewpoint

    Does anyone know if Lightroom's lens correction is any better than that of Viewpoint 2 (or 2.5)?  I am trying to decide whether I need Viewpoint to do lens correction on my Sony a5100 with the 16-50 kit lens.  The lens produces a lot of barreling dis

  • Unable to Select Pick

    For a reason unknown to me, I am no longer able to select a pick for an album. The shortcut results in a 'boink' sound, and the menu item is greyed out when I attempt to select a pick. Is there something I'm missing? Additionally, I'm not aware of an

  • Interactive PDF form auto-deleting field entries

    Hello all, so I created (using LiveCycle Designer) an interactive but static three-page form for our providers to complete by computer, then print and return to us by mail/fax. In some spaces, they would type in information and it would immediately d

  • Where can I download jcmon for a 640_EX2 kernel?

    Hi: I want to get jcmon to manage java processes of an ABAP+Java Netweaver 04 system. Our kernel is: jlaunch information kernel release                640 kernel make variant           640_EX2 DBMS client library compiled on                   SunOS 5