Painful error trying to convert to/from decimal minutes

So I have a timecard application and I am trying to design a popup window that allows a user to apply for additional pay.
The user supplies an hour time, minutes time and AM/PM (all from drop-downs). Then they supply a length of time in hours and minutes (two different fields) and a reason (also from drop-down).
I am using collections and that part appears to be working fine with one glitch: it only works if I put in a number of minutes divisible by 3. I anticipate that this is because I have to record the decimal time in another field, and for some reason the conversion I am using is dying. Oracle throws up an error "ORA-06502: PL/SQL: numeric or value error: character to number conversion error" if I try to use say 22 as the number of minutes.
In the background, I am trying to store these as three fields: the JOB_START_TIME (date), the JOB_END_TIME (date) and TASK_HRS (number 5,2).
Can someone help me look at my database write query and help me correct this?
declare
  v_tc       NUMBER   := :P12_TC_ID;
  tc_dy      VARCHAR2(12);
  tc_st      DATE;
  tc_ed      DATE;
  tc_shft    VARCHAR2(3);
  beg_dt     DATE;
  ed_dt      DATE;
  tsk_hrs    NUMBER   := 0;
  tsk_min    NUMBER   := 0;
  tsk_ttl    NUMBER   := 0;
  v_loc      NUMBER;
  v_pycd     VARCHAR2(8);
  v_jbcd     VARCHAR2(8);
begin
  select to_char(DATE_INDEX,'MM/DD/YYYY'), TC_START_TIME, TC_END_TIME, SHIFT
    into tc_dy, tc_st, tc_ed, tc_shft
    from TC where TC_ID = v_tc;
  for cu in (select TO_NUMBER(c001) u_id, c002 st_hrs, c003 st_min, c004 st_am,
             c005 ed_hrs, c006 ed_min, c007 ed_am,
             TO_NUMBER(c009) ttl_hrs, TO_NUMBER(c010) ttl_min,
             TO_NUMBER(c011) rsn_id
           FROM APEX_COLLECTIONS
           WHERE COLLECTION_NAME = 'SUPP_PAY_REQ') loop
    IF cu.u_id = 0 and cu.rsn_id > 0 THEN     -- new row
      select to_date(tc_dy||' '||cu.st_hrs||':'||cu.st_min||' '||cu.st_am,'MM/DD/YYYY HH:MI AM')
        into beg_dt from dual;
      IF beg_dt < tc_st THEN
        beg_dt   := beg_dt + 1;
      END IF;
      tsk_hrs    := cu.ttl_hrs;
      tsk_min    := ROUND(cu.ttl_min*10/6,2);
      tsk_ttl    := to_number(tsk_hrs||'.'||tsk_min);     <---  This is the problem line
      ed_dt      := beg_dt + tsk_ttl/24;
      select LOCATION_ID, PAY_CODE, OLD_CODE into v_loc, v_pycd, v_jbcd
        from OTHR_RATES where OTHR_RATE_ID = cu.rsn_id;
      INSERT INTO TC_OTHR_JOBS (OTHR_HRLY_JOB_ID, TC_ID,
           JOB_START_TIME, JOB_END_TIME, TASK_HRS, HRLY_RATE_ID, PAY_AMT,
           LOCATION_ID, PAY_CODE, OLD_CODE, JOB_COMMENTS, JOB_ENTRY_FLAG)
       VALUES (SEQ_TC_JOBS.nextval, v_tc,
           beg_dt, ed_dt, tsk_ttl, cu.rsn_id, 0,
           v_loc, v_pycd, v_jbcd, 'Submitted by Employee', 3);
    ------ existing row
    ELSIF cu.u_id > 0 THEN
      select to_date(tc_dy||' '||cu.st_hrs||':'||cu.st_min||' '||cu.st_am,'MM/DD/YYYY HH:MI AM')
        into beg_dt from dual;
      IF beg_dt < tc_st THEN
        beg_dt   := beg_dt + 1;
      END IF;
      tsk_hrs    := cu.ttl_hrs;
      tsk_min    := ROUND(cu.ttl_min*10/6,2);
      tsk_ttl    := to_number(tsk_hrs||'.'||tsk_min);     <---  This is the problem line
      ed_dt      := beg_dt + tsk_ttl/24;
      select LOCATION_ID, PAY_CODE, OLD_CODE into v_loc, v_pycd, v_jbcd
        from OTHR_RATES where OTHR_RATE_ID = cu.rsn_id;
      UPDATE TC_OTHR_JOBS SET JOB_START_TIME = beg_dt, JOB_END_TIME = ed_dt,
           TASK_HRS = tsk_ttl, HRLY_RATE_ID = cu.rsn_id,
           LOCATION_ID = v_loc, PAY_CODE = v_pycd, OLD_CODE = v_jbcd,
           JOB_COMMENTS = 'Submitted by Employee',
           JOB_ENTRY_FLAG = 3, PAY_AMT = 0
       WHERE OTHR_HRLY_JOB_ID = cu.u_id;
      UPDATE TC set PROCESS_FLAG = 30 where TC_ID = v_tc;
    END IF;
  end loop;
end;

Okay, got it. It turns out that you have to go one-way on your conversions or the decimal minutes get you hung up. Here's the corrected version that works:
declare
  v_tc       NUMBER   := :P12_TC_ID;
  tc_dy      VARCHAR2(12);
  tc_st      DATE;
  tc_ed      DATE;
  tc_shft    VARCHAR2(3);
  beg_dt     DATE;
  ed_dt      DATE;
  tsk_hrs    NUMBER   := 0;
  tsk_min    NUMBER   := 0;
  tsk_ttl    NUMBER   := 0;
  min_tst    NUMBER   := 0;
  v_loc      NUMBER;
  v_pycd     VARCHAR2(8);
  v_jbcd     VARCHAR2(8);
begin
  select to_char(DATE_INDEX,'MM/DD/YYYY'), TC_START_TIME, TC_END_TIME, SHIFT
    into tc_dy, tc_st, tc_ed, tc_shft
    from TC where TC_ID = v_tc;
  for cu in (select TO_NUMBER(c001) u_id, c002 st_hrs, c003 st_min, c004 st_am,
             c005 ed_hrs, c006 ed_min, c007 ed_am,
             TO_NUMBER(c009) ttl_hrs, TO_NUMBER(c010) ttl_min,
             TO_NUMBER(c011) rsn_id
           FROM APEX_COLLECTIONS
           WHERE COLLECTION_NAME = 'SUPP_PAY_REQ') loop
    IF cu.u_id = 0 and cu.rsn_id > 0 THEN     -- new row
      select to_date(tc_dy||' '||cu.st_hrs||':'||cu.st_min||' '||cu.st_am,'MM/DD/YYYY HH:MI AM')
        into beg_dt from dual;
      IF beg_dt < tc_st THEN
        beg_dt   := beg_dt + 1;
      END IF;
      tsk_hrs    := cu.ttl_hrs;
      min_tst    := (tsk_hrs*60 + to_number(cu.ttl_min))/60;
      ed_dt      := beg_dt + min_tst/24;
      select LOCATION_ID, PAY_CODE, OLD_CODE into v_loc, v_pycd, v_jbcd
        from OTHR_RATES where OTHR_RATE_ID = cu.rsn_id;
      INSERT INTO TC_OTHR_JOBS (OTHR_HRLY_JOB_ID, TC_ID,
           JOB_START_TIME, JOB_END_TIME, TASK_HRS, HRLY_RATE_ID, PAY_AMT,
           LOCATION_ID, PAY_CODE, OLD_CODE, JOB_COMMENTS, JOB_ENTRY_FLAG)
       VALUES (SEQ_TC_JOBS.nextval, v_tc,
           beg_dt, ed_dt, min_tst, cu.rsn_id, 0,
           v_loc, v_pycd, v_jbcd, 'Submitted by Employee', 3);
      UPDATE TC set PROCESS_FLAG = 30 where TC_ID = v_tc;
    ------ existing row
    ELSIF cu.u_id > 0 THEN
      select to_date(tc_dy||' '||cu.st_hrs||':'||cu.st_min||' '||cu.st_am,'MM/DD/YYYY HH:MI AM')
        into beg_dt from dual;
      IF beg_dt < tc_st THEN
        beg_dt   := beg_dt + 1;
      END IF;
      tsk_hrs    := cu.ttl_hrs;
      min_tst    := (tsk_hrs*60 + to_number(cu.ttl_min))/60;
      ed_dt      := beg_dt + min_tst/24;
      select LOCATION_ID, PAY_CODE, OLD_CODE into v_loc, v_pycd, v_jbcd
        from OTHR_RATES where OTHR_RATE_ID = cu.rsn_id;
      UPDATE TC_OTHR_JOBS SET JOB_START_TIME = beg_dt, JOB_END_TIME = ed_dt,
           TASK_HRS = min_tst, HRLY_RATE_ID = cu.rsn_id,
           LOCATION_ID = v_loc, PAY_CODE = v_pycd, OLD_CODE = v_jbcd,
           JOB_COMMENTS = 'Submitted by Employee',
           JOB_ENTRY_FLAG = 3, PAY_AMT = 0
       WHERE OTHR_HRLY_JOB_ID = cu.u_id;
      UPDATE TC set PROCESS_FLAG = 30 where TC_ID = v_tc;
    END IF;
  end loop;
end;

Similar Messages

  • Error trying to convert .mov to H.264 (mp4) for vimeo upload

    Hi.
    I have a 25 minute long sequence which is 1920x1080. I already exported a .mov file (49 GB) with out changing any settings and it plays back perfect.
    I want to upload this to vimeo as high quality as possible. They suggest H.264 (mp4) and a whole string of other optimal settings. When I exported from FCP with their requested settings the result was a glitchy/pixelated mess which I would be embarrassed to show. I have seen a lot of high quality movies on vimeo, so i know it's possible to have it look better.
    I tried next to use a variety of conversion programs to convert the .mov file to H.264/mp4. mpegstreamclip and Emicsoft MTS converter both gave me problems. I also tried to "save as" from quicktime and also ran into quality problems.
    I just tried using Compressor, and after 3 hours got this error:
    <log tms="322005617.336" tmt="03/16/2011 15:00:17.336" pid="1309" msg="QuickTiime Transcode, rendering in YUV 8 bit 422"/>
    <log tms="322014690.338" tmt="03/16/2011 17:31:30.338" pid="1309" msg="Time for QuickTime transcode: 9072.86 seconds. status = -2125"/>
    <log tms="322014690.433" tmt="03/16/2011 17:31:30.433" pid="1309" msg="Done _processRequest for job target: file://localhost/Users/ufoliver2/Desktop/THEPIXELSUTRAFULLPOWER-H.264.mov"/>
    <mrk tms="322014690.459" tmt="03/16/2011 17:31:30.459" pid="1309" kind="end" what="service-request" req-id="78FD1610-98B0-479B-9951-9B24656E0CF2:1" msg="Processing service request error: QuickTime could not access a file. Offset too big."></mrk>
    What could be the problem?
    THANKS!
    Oliver

    if the movie you exported is self-contained, not a reference movie it is not referencing your original files. Try putting it on the external, and render to the external too. I hope the Lacie is a 7200 drive and firewire, NOT usb.
    For testing purposes you could use quicktime pro and cut out a small 30 second or 1 minute section, and see if compressor will process that - then do your whole movie

  • Why do I continue to receive an error msg when converting files from pdf to Word?

    Why do I continue to receive an error msg when converting pdf files to Word?

    HI tatamene,
    I'm sorry that you're having trouble converting a document.  For starters, have you verified that your account is active? (You can check by logging in to www.adobe.com and checking under My Subscriptions and Services). Aside from that, I'll need a little more info to get to the bottom of your problem.
    Are you trying to convert the file from within Reader, or directly via the ExportPDF website?
    What operating system and browser are you using?
    How large is the file that you're trying to convert? (There's a file-size limit of 100 MB.)
    Is the computer that you're using networked?
    Do other files convert without error?
    I look forward to hearing back from you.
    Best,
    Sara

  • Error trying to convert planned order to production order

    Hello Experts,
    In MD04, I am trying to convert a Planned order to a production order. The error message is "Planned Order is not to be converted". The details of the message is
    "You tried to convert a planned order in which the conversion indicator has not been set. Set the conversion indicator (detail screen, make-to-stock production) in the planned order 100147670."
    Is there something in setup I need to do to have this conversion indicator automatically set ?
    Also, system is not even allowing me to set the conversion indicator in the Md12 screen.
    Please help.
    Thanks,
    Raman

    Brahmaji
    How to activate the BOM for release? I am able to create a production order for the material with no problems.
    The strategy is set to 10. Also, order type for conversion is set to PP01 in OPPQ. The plant special status for material is A-Active.
    Prasobh, what is meant by Planned Order type. How to check it.
    The system is not even allowing me to delete the planned order using MD12.
    Please help.
    Thanks
    Raman

  • Error trying to convert float to expanded form for a check application

    I am writing a program to generate a check, but when it tries to parse the Float (netpay) into a String in expanded form (e.g. 1.23 becomes 1 dollar and twenty-three cents) it throws weird arrayOutOfBounds exceptions
    * Check.java
    * Created on January 23, 2008, 9:55 AM
    package payrollapplication;
    public class Check extends javax.swing.JFrame {
    public Employee emp;
    String expanded;
    /** Creates new form Check */
    boolean debug = true;
    public Check() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    date = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    name = new javax.swing.JLabel();
    amtexpanded = new javax.swing.JLabel();
    amtnum = new javax.swing.JLabel();
    empid = new javax.swing.JLabel();
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("EMP Name Here");
    setAlwaysOnTop(true);
    setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
    setResizable(false);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowActivated(java.awt.event.WindowEvent evt) {
    formWindowActivated(evt);
    date.setText("DATE");
    jPanel1.setBackground(new java.awt.Color(102, 102, 0));
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 429, Short.MAX_VALUE)
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 62, Short.MAX_VALUE)
    name.setText("NAME");
    amtexpanded.setText("AMT EXPANDED");
    amtnum.setText("AMT #");
    empid.setText("EMPID");
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(10, 10, 10)
    .addComponent(amtexpanded, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE))
    .addComponent(name, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addComponent(amtnum, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(date, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
    .addComponent(empid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
    .addContainerGap())
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(14, 14, 14)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(date)
    .addComponent(name))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(amtnum)
    .addComponent(amtexpanded, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(empid)
    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void formWindowActivated(java.awt.event.WindowEvent evt) {                                    
    initDisplay(); //Computes the expanded form of the number and fills the windows with information
    amtexpanded.setText(expanded);
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Check().setVisible(true);
    public void initDisplay() {
    try {
    amtnum.setText("$"+emp.netpay); //Fill in the net pay
    name.setText(""+emp.fname+" "+emp.mname+" "+emp.lname+" "+emp.suffix); //Fill in the name
    System.out.println("NOT YET IMPLEMENTED");
    expanded = "";
    //begin to compute the expanded form
    //determine the length of the left side of the decimal
    expanded = emp.netpay+"";
    String[] split = expanded.split(".");
    int length = split[0].length();
    //Now we compute the first half of the number
    int wholeLength = split[0].length();
    char[] arr = split[0].toCharArray(); //create the character array
    expanded = ""; //Clear it
    if(length == 3) {
    System.out.println("Length of 3, working...");
    //Assume we are starting at the one thousands
    //Since 0 is 1, we need to test for 3 for 1,000s not 4
    switch(arr[3]) {
    case '1': expanded = "One Thousand ";
    case '2': expanded = "Two Thousand ";
    case '3': expanded = "Three Thousand ";
    case '4': expanded = "Four Thousand ";
    case '5': expanded = "Five Thousand ";
    case '6': expanded = "Six Thousand ";
    case '7': expanded = "Seven Thousand ";
    case '8': expanded = "Eight Thousand ";
    case '9': expanded = "Nine Thousand ";
    switch(arr[2]) {
    case '1': expanded = expanded + "One-Hundred ";
    case '2': expanded = expanded + "Two-Hundred ";
    case '3': expanded = expanded + "Three-Hundred ";
    case '4': expanded = expanded + "Four-Hundred ";
    case '5': expanded = expanded + "Five-Hundred ";
    case '6': expanded = expanded + "Six-Hundred ";
    case '7': expanded = expanded + "Seven-Hundred ";
    case '8': expanded = expanded + "Eight-Hundred ";
    case '9': expanded = expanded + "Nine-Hundred ";
    switch(arr[1]) {
    case '0': {
    switch(arr[0]) {
    case '0': expanded = expanded + "";
    case '1': expanded = expanded + "and One";
    case '2': expanded = expanded + "and Two";
    case '3': expanded = expanded + "and Three";
    case '4': expanded = expanded + "and Four";
    case '5': expanded = expanded + "and Five";
    case '6': expanded = expanded + "and Six";
    case '7': expanded = expanded + "and Seven";
    case '8': expanded = expanded + "and Eight";
    case '9': expanded = expanded + "and Nine";
    case '1': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Ten";
    case '1': expanded = expanded + "and Eleven";
    case '2': expanded = expanded + "and Twelve";
    case '3': expanded = expanded + "and Thirteen";
    case '4': expanded = expanded + "and Fourteen";
    case '5': expanded = expanded + "and Fifteen";
    case '6': expanded = expanded + "and Sixteen";
    case '7': expanded = expanded + "and Seventeen";
    case '8': expanded = expanded + "and Eighteen";
    case '9': expanded = expanded + "and Nineteen";
    case '2': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Twenty";
    case '1': expanded = expanded + "and Twenty-One";
    case '2': expanded = expanded + "and Twenty-Two";
    case '3': expanded = expanded + "and Twenty-Three";
    case '4': expanded = expanded + "and Twenty-Four";
    case '5': expanded = expanded + "and Twenty-Five";
    case '6': expanded = expanded + "and Twenty-Six";
    case '7': expanded = expanded + "and Twenty-Seven";
    case '8': expanded = expanded + "and Twenty-Eight";
    case '9': expanded = expanded + "and Twenty-Nine";
    case'3': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Thirty";
    case '1': expanded = expanded + "and Thirty-One";
    case '2': expanded = expanded + "and Thirty-Two";
    case '3': expanded = expanded + "and Thirty-Three";
    case '4': expanded = expanded + "and Thirty-Four";
    case '5': expanded = expanded + "and Thirty-Five";
    case '6': expanded = expanded + "and Thirty-Six";
    case '7': expanded = expanded + "and Thirty-Seven";
    case '8': expanded = expanded + "and Thirty-Eight";
    case '9': expanded = expanded + "and Thirty-Nine";
    case '4': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Fourty";
    case '1': expanded = expanded + "and Fourty-One";
    case '2': expanded = expanded + "and Fourty-Two";
    case '3': expanded = expanded + "and Fourty-Three";
    case '4': expanded = expanded + "and Fourty-Four";
    case '5': expanded = expanded + "and Fourty-Five";
    case '6': expanded = expanded + "and Fourty-Six";
    case '7': expanded = expanded + "and Fourty-Seven";
    case '8': expanded = expanded + "and Fourty-Eight";
    case '9': expanded = expanded + "and Fourty-Nine";
    case '5': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Fifty";
    case '1': expanded = expanded + "and Fifty-One";
    case '2': expanded = expanded + "and Fifty-Two";
    case '3': expanded = expanded + "and Fifty-Three";
    case '4': expanded = expanded + "and Fifty-Four";
    case '5': expanded = expanded + "and Fifty-Five";
    case '6': expanded = expanded + "and Fifty-Six";
    case '7': expanded = expanded + "and Fifty-Seven";
    case '8': expanded = expanded + "and Fifty-Eight";
    case '9': expanded = expanded + "and Fifty-Nine";
    case '6': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Sixty";
    case '1': expanded = expanded + "and Sixty-One";
    case '2': expanded = expanded + "and Sixty-Two";
    case '3': expanded = expanded + "and Sixty-Three";
    case '4': expanded = expanded + "and Sixty-Four";
    case '5': expanded = expanded + "and Sixty-Five";
    case '6': expanded = expanded + "and Sixty-Six";
    case '7': expanded = expanded + "and Sixty-Seven";
    case '8': expanded = expanded + "and Sixty-Eight";
    case '9': expanded = expanded + "and Sixty-Nine";
    case '7': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Seventy";
    case '1': expanded = expanded + "and Seventy-One";
    case '2': expanded = expanded + "and Seventy-Two";
    case '3': expanded = expanded + "and Seventy-Three";
    case '4': expanded = expanded + "and Seventy-Four";
    case '5': expanded = expanded + "and Seventy-Five";
    case '6': expanded = expanded + "and Seventy-Six";
    case '7': expanded = expanded + "and Seventy-Seven";
    case '8': expanded = expanded + "and Seventy-Eight";
    case '9': expanded = expanded + "and Seventy-Nine";
    case '8': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Eighty";
    case '1': expanded = expanded + "and Eighty-One";
    case '2': expanded = expanded + "and Eighty-Two";
    case '3': expanded = expanded + "and Eighty-Three";
    case '4': expanded = expanded + "and Eighty-Four";
    case '5': expanded = expanded + "and Eighty-Five";
    case '6': expanded = expanded + "and Eighty-Six";
    case '7': expanded = expanded + "and Eigthy-Seven";
    case '8': expanded = expanded + "and Eighty-Eight";
    case '9': expanded = expanded + "and Eighty-Nine";
    case '9': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Ninety";
    case '1': expanded = expanded + "and Ninety-One";
    case '2': expanded = expanded + "and Ninety-Two";
    case '3': expanded = expanded + "and Ninety-Three";
    case '4': expanded = expanded + "and Ninety-Four";
    case '5': expanded = expanded + "and Ninety-Five";
    case '6': expanded = expanded + "and Ninety-Six";
    case '7': expanded = expanded + "and Ninety-Seven";
    case '8': expanded = expanded + "and Ninety-Eight";
    case '9': expanded = expanded + "and Ninety-Nine";
    //Now we move down the length, 2, 1 ,
    if(length == 2) {
    System.out.println("length of 2, working...");
    switch(arr[2]) {
    case '1': expanded = expanded + "One-Hundred ";
    case '2': expanded = expanded + "Two-Hundred ";
    case '3': expanded = expanded + "Three-Hundred ";
    case '4': expanded = expanded + "Four-Hundred ";
    case '5': expanded = expanded + "Five-Hundred ";
    case '6': expanded = expanded + "Six-Hundred ";
    case '7': expanded = expanded + "Seven-Hundred ";
    case '8': expanded = expanded + "Eight-Hundred ";
    case '9': expanded = expanded + "Nine-Hundred ";
    switch(arr[1]) {
    case '0': {
    switch(arr[0]) {
    case '0': expanded = expanded + "";
    case '1': expanded = expanded + "and One";
    case '2': expanded = expanded + "and Two";
    case '3': expanded = expanded + "and Three";
    case '4': expanded = expanded + "and Four";
    case '5': expanded = expanded + "and Five";
    case '6': expanded = expanded + "and Six";
    case '7': expanded = expanded + "and Seven";
    case '8': expanded = expanded + "and Eight";
    case '9': expanded = expanded + "and Nine";
    case '1': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Ten";
    case '1': expanded = expanded + "and Eleven";
    case '2': expanded = expanded + "and Twelve";
    case '3': expanded = expanded + "and Thirteen";
    case '4': expanded = expanded + "and Fourteen";
    case '5': expanded = expanded + "and Fifteen";
    case '6': expanded = expanded + "and Sixteen";
    case '7': expanded = expanded + "and Seventeen";
    case '8': expanded = expanded + "and Eighteen";
    case '9': expanded = expanded + "and Nineteen";
    case '2': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Twenty";
    case '1': expanded = expanded + "and Twenty-One";
    case '2': expanded = expanded + "and Twenty-Two";
    case '3': expanded = expanded + "and Twenty-Three";
    case '4': expanded = expanded + "and Twenty-Four";
    case '5': expanded = expanded + "and Twenty-Five";
    case '6': expanded = expanded + "and Twenty-Six";
    case '7': expanded = expanded + "and Twenty-Seven";
    case '8': expanded = expanded + "and Twenty-Eight";
    case '9': expanded = expanded + "and Twenty-Nine";
    case'3': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Thirty";
    case '1': expanded = expanded + "and Thirty-One";
    case '2': expanded = expanded + "and Thirty-Two";
    case '3': expanded = expanded + "and Thirty-Three";
    case '4': expanded = expanded + "and Thirty-Four";
    case '5': expanded = expanded + "and Thirty-Five";
    case '6': expanded = expanded + "and Thirty-Six";
    case '7': expanded = expanded + "and Thirty-Seven";
    case '8': expanded = expanded + "and Thirty-Eight";
    case '9': expanded = expanded + "and Thirty-Nine";
    case '4': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Fourty";
    case '1': expanded = expanded + "and Fourty-One";
    case '2': expanded = expanded + "and Fourty-Two";
    case '3': expanded = expanded + "and Fourty-Three";
    case '4': expanded = expanded + "and Fourty-Four";
    case '5': expanded = expanded + "and Fourty-Five";
    case '6': expanded = expanded + "and Fourty-Six";
    case '7': expanded = expanded + "and Fourty-Seven";
    case '8': expanded = expanded + "and Fourty-Eight";
    case '9': expanded = expanded + "and Fourty-Nine";
    case '5': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Fifty";
    case '1': expanded = expanded + "and Fifty-One";
    case '2': expanded = expanded + "and Fifty-Two";
    case '3': expanded = expanded + "and Fifty-Three";
    case '4': expanded = expanded + "and Fifty-Four";
    case '5': expanded = expanded + "and Fifty-Five";
    case '6': expanded = expanded + "and Fifty-Six";
    case '7': expanded = expanded + "and Fifty-Seven";
    case '8': expanded = expanded + "and Fifty-Eight";
    case '9': expanded = expanded + "and Fifty-Nine";
    case '6': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Sixty";
    case '1': expanded = expanded + "and Sixty-One";
    case '2': expanded = expanded + "and Sixty-Two";
    case '3': expanded = expanded + "and Sixty-Three";
    case '4': expanded = expanded + "and Sixty-Four";
    case '5': expanded = expanded + "and Sixty-Five";
    case '6': expanded = expanded + "and Sixty-Six";
    case '7': expanded = expanded + "and Sixty-Seven";
    case '8': expanded = expanded + "and Sixty-Eight";
    case '9': expanded = expanded + "and Sixty-Nine";
    case '7': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Seventy";
    case '1': expanded = expanded + "and Seventy-One";
    case '2': expanded = expanded + "and Seventy-Two";
    case '3': expanded = expanded + "and Seventy-Three";
    case '4': expanded = expanded + "and Seventy-Four";
    case '5': expanded = expanded + "and Seventy-Five";
    case '6': expanded = expanded + "and Seventy-Six";
    case '7': expanded = expanded + "and Seventy-Seven";
    case '8': expanded = expanded + "and Seventy-Eight";
    case '9': expanded = expanded + "and Seventy-Nine";
    case '8': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Eighty";
    case '1': expanded = expanded + "and Eighty-One";
    case '2': expanded = expanded + "and Eighty-Two";
    case '3': expanded = expanded + "and Eighty-Three";
    case '4': expanded = expanded + "and Eighty-Four";
    case '5': expanded = expanded + "and Eighty-Five";
    case '6': expanded = expanded + "and Eighty-Six";
    case '7': expanded = expanded + "and Eigthy-Seven";
    case '8': expanded = expanded + "and Eighty-Eight";
    case '9': expanded = expanded + "and Eighty-Nine";
    case '9': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Ninety";
    case '1': expanded = expanded + "and Ninety-One";
    case '2': expanded = expanded + "and Ninety-Two";
    case '3': expanded = expanded + "and Ninety-Three";
    case '4': expanded = expanded + "and Ninety-Four";
    case '5': expanded = expanded + "and Ninety-Five";
    case '6': expanded = expanded + "and Ninety-Six";
    case '7': expanded = expanded + "and Ninety-Seven";
    case '8': expanded = expanded + "and Ninety-Eight";
    case '9': expanded = expanded + "and Ninety-Nine";
    if(length == 1) {
    System.out.println("Length of 1 working....");
    switch(arr[1]) {
    case '0': {
    switch(arr[0]) {
    case '0': expanded = expanded + "";
    case '1': expanded = expanded + "and One";
    case '2': expanded = expanded + "and Two";
    case '3': expanded = expanded + "and Three";
    case '4': expanded = expanded + "and Four";
    case '5': expanded = expanded + "and Five";
    case '6': expanded = expanded + "and Six";
    case '7': expanded = expanded + "and Seven";
    case '8': expanded = expanded + "and Eight";
    case '9': expanded = expanded + "and Nine";
    case '1': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Ten";
    case '1': expanded = expanded + "and Eleven";
    case '2': expanded = expanded + "and Twelve";
    case '3': expanded = expanded + "and Thirteen";
    case '4': expanded = expanded + "and Fourteen";
    case '5': expanded = expanded + "and Fifteen";
    case '6': expanded = expanded + "and Sixteen";
    case '7': expanded = expanded + "and Seventeen";
    case '8': expanded = expanded + "and Eighteen";
    case '9': expanded = expanded + "and Nineteen";
    case '2': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Twenty";
    case '1': expanded = expanded + "and Twenty-One";
    case '2': expanded = expanded + "and Twenty-Two";
    case '3': expanded = expanded + "and Twenty-Three";
    case '4': expanded = expanded + "and Twenty-Four";
    case '5': expanded = expanded + "and Twenty-Five";
    case '6': expanded = expanded + "and Twenty-Six";
    case '7': expanded = expanded + "and Twenty-Seven";
    case '8': expanded = expanded + "and Twenty-Eight";
    case '9': expanded = expanded + "and Twenty-Nine";
    case'3': {
    switch(arr[0]) {
    case '0': expanded = expanded + "and Thirty";
    case '1': exp

    if(length == 3) {
    System.out.println("Length of 3, working...");
    //Assume we are starting at the one thousands
    //Since 0 is 1, we need to test for 3 for 1,000s not 4
    switch(arr[3]) {Arrays in Java start at index zero, so if the length of an array is 3, then the valid indices are 0,1 and 2.
    You also can make the whole thing much cleaner with using the way things are phrased in English - you say "one million, one hundred and fifty thousand, two hundred and seventy six pounds, thirty seven pence", so if you write a routine which converts an integer between 0 (inclusive) and 1000 (exclusive), and call that for the millions, thousands, units and cents in turn. You also might want to use localized strings in an array instead of coding everything as a sequence of switch statements.

  • RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic itab

    Hi guys,
    I'm trying to do this
    INSERT (l_nametab) FROM TABLE <dynamic_table>.
    where:
    DATA: l_nametab TYPE TABNAME VALUE 'PA0002'.
    FIELD-SYMBOLS: <dynamic_table> TYPE STANDARD TABLE.
    DATA: dy_table2 type ref to data.
    CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
    ASSIGN dy_table2->* TO <dynamic_table>
    ... but I received this runtime error:
    DBIF_RSQL_INTERNAL_ERROR
    Internal error when accessing a table.
    The current ABAP/4 program terminated due to
    an internal error in the database interface.
    An internal error in the database interface occurred during access to
    the data of table "PA0002 ".
    The situation points to an internal error in the SAP software
    or to an incorrect status of the respective work process.
    For further analysis the SAP system log should be examined
    (transaction SM21).
    For a precise analysis of the error, you should supply
    documents with as many details as possible.
    Does anybody know how can it be solved?
    I'll really apreciate it.
    Thanks and Regards.

    Hi Max,
    How can I upload this data if I'm reading the info from an Input File.
    The FM HR_INFOTYPE_OPERATION is useless because the UNAME fild doesn't remain into the record. They really need these field.
    The main idea of these program is to read the Input File Line, wich can belong to any infotype.
    I'm already reading the Infotype data from the input file and I need to transfer it to the PAXXXX table.
    Next, a little explanation of it:
    This program is to INSERT DATA INTO HR TABLES...
    The FM HR_INFOTYPE_OPERATION is useless in this process...
    Only with INSERT dbtab it has to be done!!!
    1.- Read HR data from an input file. The data type of the file lines is PRELP.
    2.- Get the input file data into an internal table (TYPE PRELP) using the ABAP Method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD.
    3.- Get the DDic. Table Name using CONCATENATE 'PA' wa_file-infty INTO l_nametab.
    4.- Get the DDic.Struct.Name using CONCATENATE 'P' wa_file-infty INTO l_nametype.
    5.- Assign values with the same code:
      FIELD-SYMBOLS: <dyn_table> type standard table,
                     <dyn_wa>,
                     <dyn_field>.
      FIELD-SYMBOLS: <dyn_table2> type standard table,
                     <dyn_wa2>,
                     <dyn_field2>.
      DATA: dy_table2 type ref to data,
            dy_line2  type ref to data.
      DATA: dy_table type ref to data,
            dy_line  type ref to data,
                CREATE DATA dy_table TYPE STANDARD TABLE OF (l_nametype).
                ASSIGN dy_table->* TO <dyn_table>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line LIKE LINE OF <dyn_table>.
                ASSIGN dy_line->* TO <dyn_wa>.
                CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
                ASSIGN dy_table2->* TO <dyn_table2>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line2 LIKE LINE OF <dyn_table2>.
                ASSIGN dy_line2->* TO <dyn_wa2>.
    6.- Convert the Input File Line from PRELP type to PNNNN type with the ABAP method
          CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN            EXPORTING        PRELP  = wa_file
                                                                                    IMPORTING        PNNNN  = <dyn_wa>.
    7.- As <dyn_wa2> and <dyn_table2> are of PANNNN Data Type, there is an structure with the MANDT field to be assigned to it:
    " Type Definition
    TYPES: BEGIN OF type_mandt,
              mandt TYPE MANDT,
           END OF type_mandt.
    " Structure Definition
    DATA: wa_mandt TYPE type_mandt.
    " Structure value assignation
    wa_mandt-mandt = sy-mandt.
    8.- Assign corresponding values and INSERT INTO dbtab
              MOVE-CORRESPONDING <dyn_wa> TO <dyn_wa2>. "XXXX
              MOVE-CORRESPONDING wa_mandt TO <dyn_wa2>.
              APPEND <dyn_wa2> TO <dyn_table2>.
             INSERT (l_nametab) FROM TABLE <dyn_table2> ACCEPTING DUPLICATE KEYS.
    9.- In these code line, the menctioned runtime error appears.
    I hope it can be solved...
    Thanks and regards...

  • Error trying to import users from NT Domain Auth source

    Hi all,We cannot login to the portal using Auth source after NT administrator changed administrative password.We are trying to run NT Domain auth source in 5.0.3. Getting following error. It was working before. Any clue?? Thanks for any help.
    5/10/05 12:06:30- Starting to run operations (1 total) for job 'NT User Import Job - Run Once (2)'. Will stop on errors. (PID=3596) 5/10/05 12:06:48- *** Job Operation #1 of 1: Authentication source (for synching users and groups) 'BWSC' [Run as owner 'Administrator'] 5/10/05 12:06:48- Creating the Everyone In Auth Source group (if one doesn't already exist). 5/10/05 12:06:48- Need to create an Everyone Group for this auth source. 5/10/05 12:06:48- Error IDispatch error #16132 (0x80044104): SQL Execute Error (0x80004005): DELETE FROM PTOBJECTSECURITY WHERE OBJECTID=? AND CLASSID=?
    ADO Error: count = 1, return code = 0x80004005
    Unspecified error (SQL State (null)) 5/10/05 12:06:48- *** Job Operation #1 failed: Error IDispatch error #16132 (0x80044104): SQL Execute Error (0x80004005): DELETE FROM PTOBJECTSECURITY WHERE OBJECTID=? AND CLASSID=?
    ADO Error: count = 1, return code = 0x80004005
    Unspecified error (SQL State (null)) (0x4) 5/10/05 12:06:48- Done with job operations. 5/10/05 12:06:48- Error IDispatch error #16132 (0x80044104): SQL Execute Error (0x80004005): DELETE FROM PTOBJECTSECURITY WHERE OBJECTID=? AND CLASSID=?
    ADO Error: count = 1, return code = 0x80004005
    Unspecified error (SQL State (null))

    Yes. Other instrinsic jobs are failed too. Does this related to Job Dispatcher service? Thank you for your help.

  • More trouble trying to convert catalog from PSE 8 to PSE 9.

    I am on a PC platform using the XP operating system.   I am currently using PSE 8 and have just installed PSE 9.  I have over 85,000 photos in my catalog, so would really like to have the catalog conversion work.   What I've done so far is in PSE 8 reconnected, repaired, and optimized.   When I try to convert the catalog in PSE 9, I get an error message that I need to try to repair the catalog in the original program.   I've tried to backup the catalog to a hard drive and that fails as well.   Any suggestions would be appreciated..............

    Are you still facing this issue ? Try turning off the Auto Analyzer in preferences and also turn OFF the sync engine.

  • "Save As failed to process this document. No file was created." Error trying to convert pdf to word document

    Hi - I have a pdf created from indesign as a print quality pdf. The client now wanted to text in an editable format so they can reuse the content for a new years event.
    I get an error message "Save As failed to process this document. No file was created."
    Can anyone help out here?  There are a lot of graphics in it and it is horizontal - could any of this be an issue?
    Thanks
    Nikola

    Totally agree. Saving the pdf as a word file gives it the look of a word file, until corrections have to be made. The text flow will be, so to say, "strange". Reusing that file in Indesign ...
    We always save as rtf, send that one back and relink it afterwards (as long as the styles stay the same, only smaller corrections have to be made.

  • Error trying to download cs5 from Trial S/W page

    I need to download CS 5 Design Standard. I lost the original media during a cross-country move, but I still have the serial numbers. I tried downloading from the Trial Software page, but when I click on ANY of the links, I get the following:
    Access Denied
      You don't have permission to access "http://trials2.adobe.com/AdobeProducts/DSGN/CS5/osx10/DesignStandard_CS5_LS1.dmg?" on this server.
    Reference #18.6dc23d17.1371841992.9e1028f  
    Help?

    if you follow all 7 steps, you can dl a trial here: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
    and activate with your serial number.
    if you have a dl problem, you didn't follow all 7 steps. typically, a failure to meticulously follow steps 1,2 and/or 3 is the problem.

  • Error trying to get project from RoboSource

    Help! We have been down from source control for over two weeks since moving to RoboHelp 8 and WIndows 7 and I haven't been successful getting assistance from Adobe support.
    Here is the deal. We upgraded to Windows 7 - and no Virginia RoboSource apparently does not work in Windows 7 according to support staff.
    So, we installed RoboHelp and the RoboSource client on a virtual machine running Windows Server 2003. We have been unable to perform a get of an entire project since. So, we thought perhaps it was a problem with our RoboSource server so we had our IT department create a new instance of RoboSource server although they were unable to move our data over. I did have the projects locally so I did a check in of the entire project. Hid that project on my machine and attempted to perform a get of the entire project.
    I received the following error after some of the files were downloaded onto my machine.
    RoboSource Error
    A network error has occurred. The full error text was 'An established connection was aborted by the software in your host machine.'
    I appreciate any ideas you have. We are starting to look at other options for help since we are holding development up.
    NIta

    Hi, ndhelp.
    I am using RoboSource Control successfully on a desktop and laptop, which are both Windows 7 machines (32-bit) so I don't know why it would not work for you. I wonder if there is some virus checker or firewall blocking port 8039, which is the default port for RSC?
    John Daigle
    Adobe Certified RoboHelp and Captivate Instructor
    Evergreen, Colorado
    http://www.showmethedemo.com

  • Crystal Report error trying to retrieve data from a user table

    Hi,
    I'm making crystal report application with VS 2005 and I need to retrieve data form a user table. I'm using Pull method, I configure the connection and parameters by code.
    I think that the problem could be the @ that is used to identify these tables. Please, if some body had this problem before and have a solution, please let me know asap.
    Thanks

    Hi Andrea,
    I had the same problem today. I upgraded from Crystal Version 8 to 11 and the problem was solved. Maybe it is too late for you, but I wanted to post the solution if anybody else has the same problem.
    Regards
    Guillermo

  • Installed photoshop elements tried to convert catalog from version 10 i lost all albums from version

    i installed version 11 of photoshop elements i attempted to restore catalog from version 10 when i did this i lost all my albums from version 10 i only have one album in version 11

    Moved to Photoshop Elements

  • Convert varchar to decimal - arithmetic overflow

    I'm using SQL Server 2014 and I'm trying to convert data from a staging table over to a production table. I seem to be getting an Arithmetic overflow error converting varchar to numeric on the decimal conversion. I'm sure I've overlooked something with the
    syntax of the CONVERT.
    This is the staging table:
    CREATE TABLE [dbo].[staging_table](
    [TimeIndex] [varchar](100) NULL,
    [Cluster] [varchar](100) NULL,
    [AvgMem] [varchar](100) NULL,
    [AvgCPU] [varchar](100) NULL,
    [TotalMemory] [varchar](100) NULL,
    [TotalCPU] [varchar](100) NULL,
    [Datacenter] [varchar](100) NULL,
    [vCenter] [varchar](100) NULL
    ) ON [PRIMARY]
    This is the prod table I'm moving it to:
    CREATE TABLE [dbo].[Clusters](
    [ClusterID] [int] IDENTITY(1,1) NOT NULL,
    [ClusterName] [varchar](25) NULL,
    [DatacenterName] [varchar](25) NULL,
    [TimeIndex] [datetime] NULL,
    [AvgCPU] [decimal](5, 2) NULL,
    [AvgMem] [decimal](5, 2) NULL,
    [TotalCPU] [decimal](8, 2) NULL,
    [TotalMem] [decimal](8, 2) NULL,
    [vCenterID] [int] NULL,
    CONSTRAINT [PK_Clusters_1] PRIMARY KEY CLUSTERED
    [ClusterID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    and here's an example INSERT INTO statement throwing the error:
    INSERT INTO [dbo].[Clusters] (ClusterName,DatacenterName,TimeIndex,AvgCPU,AvgMem,TotalCPU,TotalMem,vCenterID)
    SELECT SUBSTRING(Cluster,1,25) AS ClusterName,
    SUBSTRING(Datacenter,1,25) AS DatacenterName,
    CONVERT(datetime,TimeIndex,103) AS TimeIndex,
    CONVERT(decimal(5,2),AvgCPU) AS AvgCPU,
    CONVERT(decimal(5,2),AvgMem) AS AvgMem,
    CONVERT(decimal(8,2),TotalCPU) AS TotalCPU,
    CONVERT(decimal(8,2),TotalMemory) AS TotalMem,
    '3' FROM [dbo].[staging_table]
    Sample data is 0.00 to 100.00 in fields AvgCPU and AvgMem, and TotalCPU and TotalMem usually goes up to about 7 digits with no decimal (eg. 7543253) but could be 8 and although I've never seen a decimal I wouldn't rule it out so decided to account for it.
    I assume it's something I've overlooked with the syntax but any ideas would help.
    Thanks
    Adam

    The problem is your precision and scale you are assigning to your decimals.
    decimal(5,2) = this is a total of 5 digits, 3 digits for the whole number and 2 for the fractional.
    decimal(8,2) = this is a total of 8 digits, 6 digits for the whole number and 2 for the fractional. 
    So converting a varchar of 7 or 8 digits for TotalCPU or TotalMem will give you an error because your definition will actually only allow for 6 digits of storage. You could test this by doing decimal(8,0) or decimal(10,2) both which will allow for up to
    8 whole numbers.
    If you are worried about space Sql Server will allocate a set number of bytes for ranges based on the precision (first number in the parenthesis). See this page which explains in detail how much space each range takes up and also further details on
    decimal and numerics.
    -Igor

  • Converting Webutil from 10g to 6i.

    hi,
    I'm trying to convert webutil from 10g to 6i. Coz i need to give some facility of FTP.
    i'm able to change all the packages. But few packages like JAVA*, are not able to compile. it is giving error, some JNI. How to resolve this?
    Regards,
    Subir

    I will assume your application is deployed in a browser and not client/server in order to form my comments.
    Rather than trying to get WebUtil working in 6i, it would probably be simpler to just do what WebUtil does and write your own java bean. You can use the WebUtil code as an example. The important thing to remember is that WebUtil was designed with JDK 1.3.1.x and Forms 6i is based on 1.2 and older therefore you cannot just simply copy the WebUtil code and expect it to compile.
    If you have access to Metalink, here are two notes which explain how it can be done.
    Metalink Article ID 117340.1 How to Display Images in Webforms from the Client PC (Uploading Files)
    Metalink Article ID 116129.1 How to Upload and Save Data From/To a Local Client File Using Web Deployed Forms
    Best suggestion..... upgrade! ;)

Maybe you are looking for

  • Itunes 9.0.2 crashes immediately upon start-up

    Ever since I downloaded the latest Snow Leopard update (10.6.2), I can't open Itunes -- it immediately crashes upon start-up and I will get the following error message. Any idea what the problem is and what I can do? Process: iTunes [165] Path: /Appl

  • What happened to itunes report a problem support?

    Can someone tell me why Apple changed the easy report a problem off itunes receipts?  Is this a new change that will last or is there something down?  It took me forever to figure out how to send an email or a message to report a problem - this is to

  • SETUP tables steps required

    <Moderator Message: Please search before posting. You can find a lot of information related to this issue searching the forums, the blogs and of course the online help.> Hi friends, I want do purchase extraction using LO cockpit extraction before doi

  • Choosing more than 10 recipients for sms

    Can anybody tell me how to add more than 10people to a sms?  If this is not possible then what have apple been playing at? I have had various handsets ovr the past numerous years and have not had this issue before, if thisnis big problem is there any

  • HT201364 how do I upgrade to the OS X Maverics?

    How do I ugrade to the OS X Maverics?