How to create Unique Number.

I need to create a Unique Request Number for System.
how Can i create this in Oracle.
Regards,
Agrawal's

I have One table Says PRINT_MGMT_LOG & in this table there are more than 10 columns, so can i create SEQUENCE in this table or should i make a new table having one column to store these running number.
Which one will be better considering performance issues.

Similar Messages

  • HOW TO CREATE EXTERNAL NUMBER RANGE IN OM

    HI ALL
    HOW TO CREATE EXTERNAL NUMBER RANGE IN OM
    PLEASE GIVE ME SPOON FEEDING
    IT IS VERY URGENT FOR ME
    PLEASE PLEASE AND PLEASE
    REGARDS

    ok i understood u want the img path for maintaing
    positions ,jobs , Org units
    Path:IMG->Personnel Mgmt->OM->Basic Setting->Maintain Number ranges.
    IMG go to Personnel Management -> Organizational Management -> Basic Settings
    -> Maintain Number Ranges.
    Select subgroup $$O to maintain number range for Org Unit and click on Number range Maintenance. Then click on change Intervals. Now you can create both internal and external number range for Org Unit according to your requirement.
    Similarly for Position select subgroup $$S and follow the same process.
    Edited by: Sikindar on Feb 7, 2008 11:23 AM
    Edited by: Sikindar on Feb 7, 2008 11:28 AM

  • How to create  personal number

    Hello everybody  ,
    please tell  how to create  personal  number in  Tcode :-  PA40  please mention the steps

    hi sandeep,
    do the followings
    1.) go to PA40 check the customization ,,,if exists...then personal no will automatically be generated.
    2.)otherwise....go to PA40 ..it will have some screens ...fill the mandatory fields.....save it and personel no. will automatically geanerated
    thnxs n regards
    sachin
    njoy life

  • How to create a number ranges in QM notification?

    Hi Exprets
    How to create a number ranges in QM notification?
    Please help me...
    Ram

    Deat Thyagarajan,
    Notification type 01
    Notification cat   05
    Parameters
    Notification origin General Notification
    Catalog profile SAPISR
    Early no.allocation  06  Number range
    My Notification type 01, I am assined 06 number range. 06 number range have limit 1-100000.
    I have used upto 100000. Now how I can extend my number limit.
    Thanks for support...
    Ram

  • How to create a Number range?

    Hi,
    How to create a number range for a field to give our own number for a field?

    Hello,
    Go to transaction SNRO.
    Take a look at these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-13] and [http://help.sap.com/saphelp_nw04/helpdata/en/7b/6eb2aa7aed44ea92ebb969e03081fb/frameset.htm]
    Regards,

  • How to create REQUEST NUMBER for STANDARD TEXT (SO10)

    how to create REQUEST NUMBER for STANDARD TEXT ( t-cODE SO10)

    you can do this using program RSTXTRAN .
    Text key - object
    Text key - name
    Text key - ID
    Text key - language, then it will store under one transport that can be moved to other system.
    check out the following link.
    http://help.sap.com/saphelp_47x200/helpdata/en/f4/b4a1ed453611d189710000e8322d00/frameset.htm

  • How to create unique object for dynamically created jTextFields

    Hello to all forum members
    According to my requirement , i have created a number of jpanels(containing textfield,comboboxes etc) and added them to a jScrollPane.
    But my requirement is after adding the jPanels to the JScrollPanel, i want to add some logic to that jpanels; like
    1) i want to sort the panels according to some condition when a sort button is clicked
    2)and the text field which are in the panel should be sorted according to the integer value inside the text field.
    3) and after a buton clicked the value what are in the jText field should store in the data base etc.....
    For the above logic to apply i need the instance variable(i.e object reference ) should be difference, so that when i want to get a value from any component ( text from jtextfield ) i can get the value through its instance variable name.for example
    JTextField textField1=new JTextField("aaa");
    JTextField textField2=new JTextField("cccc");
    JTextField textField3=new JTextField("eee");then
    textField1.getText();
    textField2.getText();
    textField3.getText();But the problem is when i am creating the number of panels the name of the instance variables (of all the components i.e textfield ,panels)are same so i can't add the logic to any particular component.
    I have tried to solve this problem , but not getting any idea .Please help me to find out the solution. I hope i explained my problem clearly if not
    tell me i will explain it again.
    I have given here with the code in which i have created 100 jpanels , each jpanels consisting of 1label and 1text field but the instance variable for each component is same.
    Plese help me to solve this problem,Thanks in advance.
    import javax.swing.*;
    public class NestedPanels extends JFrame
      private static final int NO_OF_NESTED_PANELS = 100;
      public NestedPanels()
        super("Nested Panels");
        setSize(200, 200);
        JPanel mainPanel = new JPanel();
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
         for ( int i=1; i<=NO_OF_NESTED_PANELS; i++)
             mainPanel.add(createChildPanel(i));
         javax.swing.JScrollPane jScrollPane = new javax.swing.JScrollPane();
         jScrollPane.setViewportView(mainPanel);
        getContentPane().add(jScrollPane);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
      private JPanel createChildPanel(int intChildPanelNumber)
        JPanel childPanel = new JPanel();
        childPanel.setLayout(new BoxLayout(childPanel, BoxLayout.X_AXIS));
        childPanel.add(new JLabel("" + intChildPanelNumber));
        childPanel.add(new JTextField());
        return childPanel;
      public static void main(String[] argv)
        javax.swing.SwingUtilities.invokeLater(new Runnable()
          public void run()
            NestedPanels example = new NestedPanels();
    }Thanks & Regards
    Mahendra

    Hi to all forum members,
    Thanks for all your help.
    JayDS, as you have told i have tried with
    return Integer.valueOf( getText() ).compareTo( Integer.valueOf( mp.getText() ) );but it is giving
    java.lang .NumberFormatException.forInputString(unknown source)
    sorry i could not get what is SSCE?
    I am sending the code here with my requirement.
    My requirement is to sort the panels.
    i.e.
    when I will click on to the sortC1 button , the whole panels should be sorted according to the integer value inside the textfield1 (but here in my code it is sorting string wise,if u enter 1,2 ,1111111,3 ,222 the output should be 1,2,3, ,222 ,1111111 but it is actually giving the output as 1, 1111111,2,222,3 which is wrong )
    Arrays.sort(NestedPanelSorting); => this method is used for sorting
    return getText().compareTo(mp.getText());=> method is used for the text comparision in the example ( NestedPanelSorting.java)
    sortC2 also same.
    When I will click sortC3 ,the panel will be sorted according to the string values in the dropdown of combo boxes. Here how to access the instance of combobox to sort or the panel or through array of objects how can i sort?
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Arrays;
    import javax.swing.*;
    public class NestedPanelSorting extends JFrame
        private static final int NO_OF_NESTED_PANELS = 10;
        private MyPanel[] NestedPanelSorting = new MyPanel[NO_OF_NESTED_PANELS];
        //MyPanel[] is a array of MyPanel objects declared below
         private JPanel mainPanel;
        private JScrollPane jScrollPane;
         public NestedPanelSorting()
            super("Nested Panels Sorting");
            setSize(400, 200);
            mainPanel = new JPanel();
            mainPanel.setLayout(new BoxLayout(mainPanel,BoxLayout.Y_AXIS));
            //in the for loop below MyPanel(i) is called through NestedPanelSorting[i]
              for (int i = 0; i < NestedPanelSorting.length; i++)
                NestedPanelSorting[i] = new MyPanel(i);
                mainPanel.add(NestedPanelSorting);
    jScrollPane = new javax.swing.JScrollPane();
    jScrollPane.setViewportView(mainPanel);
    getContentPane().add(jScrollPane, BorderLayout.CENTER);
    JButton myBtn1 = new JButton("sortC1");
              JButton myBtn2 = new JButton("sortC2");
              JButton myBtn3 = new JButton("sortC3");
    getContentPane().add(myBtn1, BorderLayout.EAST);
    getContentPane().add(myBtn2, BorderLayout.WEST);
    getContentPane().add(myBtn3, BorderLayout.SOUTH);
              myBtn1.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent arg0)
    myButtonAction(arg0);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setVisible(true);
    private void myButtonAction(ActionEvent arg0)
              //this Array.sort() method is for sorting the array -
              // accordig to string value but i need to sort integer value wise
    Arrays.sort(NestedPanelSorting);
              mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel,
    BoxLayout.Y_AXIS));
    for (int i = 0; i < NestedPanelSorting.length; i++)
    mainPanel.add(NestedPanelSorting[i]);
    jScrollPane.setViewportView(mainPanel);
         public static void main(String[] argv)
    javax.swing.SwingUtilities.invokeLater(new Runnable()
    public void run()
    new NestedPanelSorting();
    //declaring of MyPanel class where textfield1,txtField2,comboBox1 are added
         class MyPanel extends JPanel implements Comparable<MyPanel>
    private int number;
    private JTextField txtField1;
              private JTextField txtField2;
    private JComboBox comboBox1;
    public MyPanel(int number)
                   super();
    this.number = number;
    setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    add(new JLabel(String.valueOf(number)));
    txtField1 = new JTextField();
    add(txtField1);
                   txtField2 = new JTextField();
    add(txtField2);
                   comboBox1=new JComboBox();
                   comboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ITEM  1 ", "ITEM  2 ", "ITEM  3 ", "ITEM  4 ","ITEM  5 " }));
                   add(comboBox1);
    public int getNumber()
    return number;
              public String getText()
                   if (txtField1.getText() == null)
    return "";
                   return txtField1.getText();
         public int compareTo(MyPanel mp)
              return getText().compareTo(mp.getText());
              //return Integer.valueOf( getText() ).compareTo( Integer.valueOf( mp.getText() ) );

  • How to create unique constraint in ODI

    Hi
    I have view at source side, I want to store source data to target interface table.
    For that I need to create UNIQUE constraint at source side to identify the unique records.
    I have composite primary key example as follow
    desc Test_V;
    orderID NUMBER,
    itemNumber NUMBER,
    productId NUMBER,
    quantity NUMBER,
    lot_number varchar2(80)
    where
    PRIMARY KEY (orderID, itemNumber,lot_number);
    Some times, lot_number can be null, So, I can't use lot_number in composite key (as per requirement)
    Please any body can help me on it
    Thanks
    Phani

    Hi
    Hope this may help
    http://mhimu.wordpress.com/2009/05/04/odi-incremental-update-and-surrogate-key-using-database-sequence/
    but some cases it is not working
    Thanks
    Phani

  • How to create Job number + Activity

    Hi All,
    I need to create Job nuber with activity for Forecast , In existing jobnumbers it shows some acton in List of actions.. How to create the Action
    Please explain me the use job number and Activty , action .. and how to create .
    Thanks in Advance,
    Regards,
    Chandu

    Chandu,
    1) I think the best book for basics of APO is Supply Chain management with SAP APO by Jörg Thomas Dickersbach . You have to have it
    http://books.google.co.in/books?id=5CA3y7_LY2MC&pg=PA167&lpg=PA167&dq=supplychainplanningAPOdickersbach&source=bl&ots=xuV5qbwq7V&sig=v1UmlBoA3v0T1zvdfOJYngFPaJI&hl=en&ei=9v8MTK2pCM-LkAWUyP3ZDw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CAkQ6AEwAA
    2). try sourcing the SAP SCM certification books
    3). Help.sap.com. I dont think you can find any material more detailed than this
    4). Access SDN and look for wiki and blogs
    5). GOOGLE!!! For instance thsi si something really really useful I found on Google for CIF:
    http://www.valconusa.com/uploads/Managing_SCM_APO_CIF_4x.pdf
    Happy learning!!
    Abhi

  • How to create unique index on a View

    Hi All,
    11.2.0.1
    How do I create an index on a view or any workaround that my view wont get duplicates?
    SQL> create unique index indx01 on db_backup_details_vw(id);
    create unique index indx01 on db_backup_details_vw(id)
    ERROR at line 1:
    ORA-01702: a view is not appropriate here
    Thanks a lot,
    Kinz

    I'm thinking of using a distinct clause here.
    if i get 5 duplicate rows in my selection set because of the join condition, can't i discard the remaining 4 using a distinct clause.
    Observe this
    SQL> select * from a;
    T1 T2
    1 4
    2 4
    3 4
    SQL> select * from b;
    T1 T2
    1 4
    2 5
    in both a,b t1 is the primary key. so we'll write a join on t2 (non PK).
    SQL> select b.t1,b.t2 from a,b where a.t2=b.t2;
    T1 T2
    1 4
    1 4 -- duplicates
    1 4
    Now create view with distinct clause
    create view ab as select distinct b.t1,b.t2 from a,b where a.t2=b.t2;
    SQL> select * from ab;
    T1 T2
    ---------- ---------- -- no duplicates
    1 4
    CSM

  • RE: How to Create Personal number in SAP HR

    Hi Guys,
    I am new to SAP HR and i want to Create Personnel number in HR, can any one guide me the procedure.
    I went to PA30 and entered some 8 digit number and typed in infotype 0105 and subtype 0001 and clicked on create button, but it returns a error saying personnel number is not yet assigned.
    can any one tell me how to create a personnel number and assign it to the user.
    Thanks,
    SSSS

    Hi..
    Priyanka..
    As I have checked that Number range for generating a new Employee ID is already created in my system. Gone to TCODE PA04 and check that the number range is already created as below:
    Number         From Num      To Num           Current Num              Ex
    01               00000001          00069999                                        Tick as right
    02               00070000          00079999       70295
    03               00080000          09000000                                        Tick as right
    04               99990001          99999999                                        Tick as right
    05               09000001          99990001                                        Tick as right
    But when i am trying to give the personnel no. for maintaining master data in pa30 for actions for new hiring its giving error saying "could not find interval for number range 07". Here i am getting confused that what no. range i have to take?  or which no. range i have to choose?  or create new no. range? Please help me out..
    regards,
    Surendra

  • How to create Unique Identifier and save it to identify user(device)

    I want to create unique identifier on iOS 5 and use it for identifying user (user device) every time app is started. I am able to create a unique identifier by following code 
    CFUUIDRef theUUID = CFUUIDCreate(NULL);
    CFStringRef string = CFUUIDCreateString(NULL, theUUID); CFRelease(theUUID);
    But unable to save it on user device so that particular identifier is not deleted even when app is uninstalled. I tried using SSKeychain approach but it gives Apple Mach-o Linker error.
    Please let me know the the way I can accomplish the same.
    Any help is appreciated.

    I want to create unique identifier on iOS 5 and use it for identifying user (user device) every time app is started. I am able to create a unique identifier by following code 
    CFUUIDRef theUUID = CFUUIDCreate(NULL);
    CFStringRef string = CFUUIDCreateString(NULL, theUUID); CFRelease(theUUID);
    But unable to save it on user device so that particular identifier is not deleted even when app is uninstalled. I tried using SSKeychain approach but it gives Apple Mach-o Linker error.
    Please let me know the the way I can accomplish the same.
    Any help is appreciated.

  • How to create unique sequence number

    Hello,
    I'm new to ODI and trying to learn. Below is the requirement. Please advise.
    I'm trying to load data from one database (oracle) to another database table (AS400). But when i load the data into AS400, I need to create a unique ID for each record and write this unique ID to one of the fields in AS400.
    I don't have any issues loading the data from oracle to AS400. But I'm unable to generate a unique ID for each record. Can any share your thoughts how to get this.
    Thanks for your help.

    Hi ,
    First, on the DB2/400 instance, create a table containing an Identity column:
    CREATE TABLE THE_IDENTITY_TAB
    (THE_IDENTITY_COL DECIMAL(31,0) GENERATED ALWAYS AS IDENTITY
    START WITH 1000,
    INCREMENT BY 1);
    Second, in the same DB2/400 instance, create a function that returns an incremented number from the Identity column:
    CREATE FUNCTION NEXT_IDENTITY_COL () RETURNS DECIMAL(31,0)
    LANGUAGE SQL
    MODIFIES SQL DATA
    BEGIN
    INSERT INTO THE_IDENTITY_TAB VALUES (DEFAULT);
    DELETE FROM THE_IDENTITY_TAB;
    RETURN (SELECT identity_val_local() FROM QSYS2.QSQPTABL);
    END
    Finally, in Designer, use the snpRef.getObjectName() substitution method to refer to the DB2/400 function in the interface's mapping for the appropriate field:
    <%=snpRef.getObjectName("L","NEXT_IDENTITY_COL","<LOGICAL_SCHEMA_NAME>","D")%>()
    Thanks,
    Sutirtha

  • How to create unique objects in class and store

    Hi, I have a class that opens a text file and reads in the
    lines. each line holds an ip address. i need to create x amount of
    objects, and each object is assigned a unique ip address from the file.
    and here i am stuck. the class reads in the file, then i think it should create an object for each line read in and assign that object the ip address. i want to store the objects in some sort of array or collection, and i guess each object will need a unique name, but i dont know how many objects until i read in the file and count the number of lines. can anyone give me any pointers as to how i should create/store the objects
    many thanx
    ness

    You could use your own object:
    public class Test {
      public class IPNumber {
        public int ip;
        public IPNumber(int ip) {
          this.ip = ip;
      public Test() {
        int numberOfIPs = 5; // this is your number of lines
        IPNumber[] ips = new IPNumber[numberOfIPs];
        for (int i = 0; i < numberOfIPs; i++) ips[i] = new IPNumber(i); // assign ip address from file
      public static void main(String args[]){
        new Test();
    }or you could store the ips as strings:
    public class Test {
      public Test() {
        final int numberOfIPs = 5; // this is your number of lines
        final java.util.ArrayList al = new java.util.ArrayList(numberOfIPs);
        for (int i = 0; i < numberOfIPs; i++) al.add(""+i); // assign ip address from file   
      public static void main(String args[]){
        new Test();
    }p.s Objects don't have names

  • How to create unique constraint on a col which has duplicate values

    Hi all,
    how can i create a unique constraint on a field which have duplicate vaules with no validate clause.
    My table name is "ACCT"
    Regards
    Message was edited by:
    53637

    Check out following
    SQL>DROP TABLE TEST;
    Table dropped.
    SQL>CREATE TABLE TEST
      2  (
      3     ID          NUMBER
      4    ,NAME        VARCHAR2(30)
      5    ,CITY        VARCHAR2(30)
      6  );
    Table created.
    SQL>INSERT INTO TEST VALUES(1,'Rajesh','Gurgaon');
    1 row created.
    SQL>INSERT INTO TEST VALUES(1,'Rajesh','Gurgaon');
    1 row created.
    SQL>INSERT INTO TEST VALUES(2,'Dinesh','Delhi');
    1 row created.
    SQL>INSERT INTO TEST VALUES(1,'Rajan','Pune');
    1 row created.
    SQL>INSERT INTO TEST VALUES(1,'Rajan','Pune');
    1 row created.
    SQL>COMMIT;
    Commit complete.
    SQL>ALTER TABLE test ADD CONSTRAINTS uk_on_test UNIQUE(ID,NAME,CITY) DEFERRABLE NOVALIDATE ;
    Table altered.
    SQL>ALTER TABLE test
      2  ENABLE NOVALIDATE CONSTRAINT uk_on_test;
    Table altered.
    SQL>INSERT INTO TEST VALUES(1,'Rajesh','Gurgaon');
    INSERT INTO TEST VALUES(1,'Rajesh','Gurgaon')
    ERROR at line 1:
    ORA-00001: unique constraint (AIP.UK_ON_TEST) violatedRegards
    Arun

Maybe you are looking for