Regarding DataType

Hi,
  I am designing a module pool. i have taken the variable in the DB table type as
  zmppmtr-wpfffm as QUAN(10)
  zmppmtr-wpfffm_calc as QUAN(10)
  and i have taken a dummy i/o field and declared that as WPFFFM TYPE I.
My problem is when i am calculating the zmppmtr-wpfffm_calc by giving the value zmppmtr-wpfffm less than wpfffm then it is giving a dump. i.e it is not accepting negative values... the dump is like follow ..
Short text
    Conversion error
Error analysis
    The program has been interrupted and cannot resume.
    Program "ZMPPMTRRD" attempted to display fields on screen 2000.
    An error occurred during the conversion of this data.
Can u kindly tellme the solution ...
Waiting for ur reply...
Regards
Srinath

HI,
To allow negative values on a screen you must enter something like this in the screenpainter for screen 2000:.
___________V
This will allow room for your negative sign.
Regards,
John.

Similar Messages

  • Regarding Datatypes

    Hi All,
    For my calculation purpose i'm using Charater datatype,
    So the issue here is, I'm getting *(asterik) for the first value in the internal table,
    I cannot use integer bcoz for some records there are no calculation, so for that it had to display space, but if we use integer we will get 0(zero).
    So please suggest wat is the  way to avoid * for the first record.
    Best Regards,
    Rohit

    Hi Rohit,
    Go with num.
    I am sure you are also refreshing the table before fetching the data into that.
    Type N is a text type, not a numeric data type (although its values are strings of digits), because the strings are not used for calculation purposes. Typical examples of type N fields are account and article numbers (provided they contain only digits), as well as the sub-fields of date and time fields.
    calculations involving packed numbers (type P) are programmed, and thus noticeably slower.
    Type F values range from /- 2.2250738585072014E-308 to 1.7976931348623157E308, as well as the number 0, with an accuracy of at least 15 decimal places.
    I Guess go for the Num data type.
    Please do have a look when using the data type if in case its large data dont go for packed .
    Mohinder

  • DropDownbyKey Problem with displayed values

    Hi all,
    I've got some strange behaviors with some dropDownbyKey. These DropDownbyKey are linked to enumerations.
    In our projects we use several DCs. 4 DCs have been developed separately.
    Since we refer in our master DCs to the 3 others DCs, dropdownbyKey of first DC displayed the key and not the description of the enumeration. It worked properly before.
    For the 3 others DCs there is no problem, description of the enumeration is displayed and not the key.
    This is really strange...moreover we made the following test: for a dropdown of master DC we refer to an enumeration included in one of the slave DC, this works properly. The description of the enumeration is displayed.
    May anobody helps me?
    Thanks a lot,
    Damien

    I also got this problem, one of my DC doesn't work with enumeration description.
    If you got something, please let me know.
    You can go to Regarding datatype, strange behavior
    for this problem.
    Thank you.
    William

  • Comparision between Multimaster replication and data guard

    Hi,
    I have some questions regarding Multimaster Replication and Data Guard. Like
    *1.)* I have a web site having database in oracle 10.2.0 and multimaster replication configured on it. But whenever i need to change the structure of the tables i
    need to stop replication. So my web site is unavailable but my first priority is availability. So will it be useful for me to configure data guard.
    *2.)* I have configured data guard for testing . My Database is Named as Gard and physical standby database is like stan.
    it is working fine.
    suppose my main database server get corrupted i have no option to start main database server. Now i left with only standby server how i can start standby server
    as database main server.
    *3.)* Is there any if main database stop working Standby database start working as main without dba intervention.
    Thanks
    Umesh
    Edited by: Umesh Sharma on Jan 14, 2009 4:17 AM

    Hi Umesh,
    first of all you should be aware that Dataguard and Replication are two completely different things.
    While the database where you replicate to is always up and open in read write mode, a physical standby can either be recovering or open in read only mode.
    1.) I think from what you are telling you probably should consider using dataguard with a logical standby database, but be aware that there will be some limitations regarding datatypes.
    2.) you can do a failover or a switchover, depending on your database version switchback may not be possible
    3.) have a look at dataguard broker, you can use it to automate the failover
    Best regards,
    PP

  • PLS-00487: Invalid reference to variable ' expression '

    oracle database 10G
    OS unix
    One of procedure is giving error PLS-00487: Invalid reference to variable '<expression>' while compilation in above database while it is compiling
    successfully in other database.
    Is there any database error?

    PLS-00487: Invalid reference to variable "string"
    Cause: A variable was referenced in a way that is inconsistent with its datatype. For example, a scalar variable might have been mistakenly referenced as a record, as follows: DECLARE CURSOR emp_cur IS SELECT empno, ename, sal FROM emp; emp_rec emp_cur%ROWTYPE; my_sal NUMBER(7,2); BEGIN ... total_sal := total_sal + my_sal.sal; -- invalid ...
    Action: Check the spelling of the variable name. Make sure the variable was declared properly and that the declaration and reference are consistent regarding datatype.
    Most probably the compiler "sees" some other type variable with the same name first which in the other database doesn't exist or is out of scope.
    Regards
    Etbin

  • Datasocket shared variable api

    I ran into the following the other day whilst debugging some code:
    We had a type mismatch when sending data however, when testing the DataSocket API did not return this error information, nut the Shared Variable API did.
    DS just returned default data with a change in the timestamp)
    This got me thinking:
    Is using Shared Variable API the way to go? Is it a better (more refined) API?
    Are there different reasons for using one over the other? (I do like that DS's refnum is not datatyped, which means that I have to provide the datatype on the read as opposed to the SV-API).  
    With respect to the type mismatch, I found that I could actually initialise the Variable with either datatype and it worked (only) for that datatype.
    It would only error when the other datatype was used.
    Does that mean the Variable does not know what its datatype actually is when a cluster is used?
    Cheers
    -JG
    Certified LabVIEW Architect * LabVIEW Champion

    charris wrote:
    I'm not sure I quite follow your question regarding datatypes. It looks like the error is being returned because a variable cannot contain a cluster. You can do arrays, but not clusters, so that's probably why the SV API is complaining about the type input.
    Hi Caleb
    My question was relating to the fact that if the variable is not initialized on one PC, and I try reading from it on another PC, specifying the datatype to read back, then I get an error using the SV API but no error from DataSocket.
    My use case was for a Cluster.
    I didn't check whether it was Cluster-specific or occurs for every datatype.
    I assumed Cluster-only as Clusters differ when setting up the Shared Variable.
    I.e. All standard datatypes are available in a drop-down, but you need to select Custom Control for a Cluster.
    So the last question was asking could I theoretically use any Cluster with a SV-Cluster as long it is the same when I do a Read and Write.
    I.e. When using the DS/SV-API the Shared Variable does not know (/have information on) what its datatype actually is when a Cluster is used - it relies on what datatype is used to initialize it? 
    Hope that makes sense.
    Cheers
    Jon
    Certified LabVIEW Architect * LabVIEW Champion

  • Plz help!  Multi-byte input method and JPasswordField in java 1.4

    Hello
    I got JTextField and JPasswordField in one dialog. I enter multi-byte text into text field, using Microsoft IME, switch focus into password text field without changing input method, and now all text entered in password text field appear in previous visited text field. This issue actual only in java 1.4 and disappear in java 1.5. Is anyone now what can i do to fix it in java 1.4? thanks!

    kajbj wrote:
    Stromberg wrote:
    VishalKothari wrote:
    Help me out regarding datatype of 'x' in the switch(x) statement. Is it only byte and char?any primitive typeNo, not boolean, double or float.oooops

  • Dynamic Checkbox in Grid..........

    Hi,
    i have 2 grid controls(grid1 & grid2). Grid2 values are displaying based on the selected values from grid1.Im getting the dynamic values in grid2.
    now i have to dynamicaly inculde a checkbox in grid2 .so that user can select any one from the grid2 values. how to inculde a dynamice checkbox in a grid?
    null

    Nainar,
    I did this class for active CheckBox in Grid using Brian's note. the CheckBox will attached to Grid and link to database.The only problem is when I clicked on
    CheckBox to change the value, got this error:
    JBO-27010: Attribute set with value true for Saturday in Terminal has invalid precision/scale
    Note:Saturday is a column of Terminal table.
    should be something regarding DataType
    import javax.swing.*;
    import java.awt.*;
    import oracle.dacf.control.swing.*;
    import javax.swing.table.*;
    // this class will customize a cell in GridControl as CheckBox(Dynamic)
    // To instantiate this class, add the following step in your applet
    // 0- add this class to your package.
    // 1- Get a reference to your GridControl, same as below:
    // JTable myTable = gridControl1.getTable();
    // 2- instantiate an object from this class. same as below
    // new myGridCheckBox(myTable,"SundayOpen");
    public class myGridCheckBox extends Object {
    public myGridCheckBox(JTable m_Table, String m_colName ) {
    CheckBoxControl checkBx = new CheckBoxControl();
    // get reference to a column
    TableColumn ActiveColumn = m_Table.getColumn(m_colName);
    // custom TableCellRenderer
    TableCellRenderer myTCR = new CheckCellRenderer();
    // forces this column to use the custom Cell Renderer
    ActiveColumn.setCellRenderer(myTCR);
    TableCellEditor myTCE = new DefaultCellEditor(checkBx);
    ActiveColumn.setCellEditor(myTCE);
    // inner class for custom CellRenderer (CheckBox)
    class CheckCellRenderer extends CheckBoxControl implements TableCellRenderer{
    public CheckCellRenderer()
    super();
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
    boolean hasFocus, int row, int column)
    setBackground(isSelected && hasFocus ? table.getSelectionBackground() : table.getBackground());
    setForeground(isSelected && hasFocus ? table.getSelectionForeground() : table.getForeground());
    setFont(table.getFont());
    setSelectionValue("Y");
    setDeselectionValue("N");
    setValue(value);
    return this;
    would appreciate to let me know if you solved the problem.
    Thanks
    Ali
    null

  • Regarding CLOB datatype handling in forms6i

    hi everybody,
    i created a table with two fields 1.sno number datatype
    2.pic BLOB datatype.
    i created a datablock based on the above table.At the same time i placed one button for file open dialog box and i am selecting jpg files and placing that into image item.
    what my doubt is if the table contains no data for the pic column, then i have to display the display image which shows the "NO PICTURE IS AVAILABLE".
    So for that i have to check when execute_query i want to check whether the pic column contains the data or not,
    HOW CAN I DO THAT..
    PLZ DO HELP ME IN THIS REGARD
    THANKS IN ADVANCE.
    BHASKAR

    hi everybody,
    i created a table with two fields 1.sno number datatype
    2.pic BLOB datatype.
    i created a datablock based on the above table.At the same time i placed one button for file open dialog box and i am selecting jpg files and placing that into image item.
    what my doubt is if the table contains no data for the pic column, then i have to display the display image which shows the "NO PICTURE IS AVAILABLE".
    So for that i have to check when execute_query i want to check whether the pic column contains the data or not,
    HOW CAN I DO THAT..
    PLZ DO HELP ME IN THIS REGARD
    THANKS IN ADVANCE.
    BHASKAR

  • Regarding CLOB datatype

    Hi,
    I have two databases with sids' R2SRVR5.WORLD and R2SRVR3.WORLD
    Now I have executed the follwoing in r2srvr5 database.
    create table kou_test_1
    roll integer,
    clob_data clob
    begin
    insert into kou_test_1(roll,clob_data) values (2,empty_clob());
    insert into kou_test_1(roll,clob_data) values (3,empty_clob());
    commit;
    end;
    declare
    v_clob clob := 'dfhgfjudhgjfhjdhgdhjghdjrjgjgjhfhjjgfyugfygfjgfjgfjgjygjyfgwfg
    gfjygfjygfjuyuiryugyubgryuwbgrjyubgrjgrjywgerjgrgw
    eukwgfuweyjyegfjgfjhrjujuhwruihri';
    begin
    update kou_test_1 set clob_data=v_clob where roll=3;
    commit;
    end;
    Now I have created a table in r2srvr3 database.
    create table kou_test_2
    roll integer,
    clob_data clob
    and also created a database link from r2srvr3 to r2srvr5.
    now when I am executing the following code it gives the error "ORA-22992: cannot use LOB locators selected from remote tables
    ORA-06512: at line 2"
    begin
    insert into kou_test_2(roll,clob_data)
    select roll,decode(roll,3,clob_data,empty_clob())
    from [email protected];
    commit;
    end;
    Now can any body provide me any solution of it except two separate inserts like
    begin
    insert into kou_test_2(roll,clob_data)
    select roll,clob_data
    from [email protected]
    where roll=3;
    commit;
    end;
    insert into kou_test_2(roll,clob_data)
    select roll,null
    from [email protected]
    where roll<>3;
    commit;
    end;
    Waiting for reply,
    Regards,
    Koushik

    Hi,
    I have two databases with sids' R2SRVR5.WORLD and R2SRVR3.WORLD
    Now I have executed the follwoing in r2srvr5 database.
    create table kou_test_1
    roll integer,
    clob_data clob
    begin
    insert into kou_test_1(roll,clob_data) values (2,empty_clob());
    insert into kou_test_1(roll,clob_data) values (3,empty_clob());
    commit;
    end;
    declare
    v_clob clob := 'dfhgfjudhgjfhjdhgdhjghdjrjgjgjhfhjjgfyugfygfjgfjgfjgjygjyfgwfg
    gfjygfjygfjuyuiryugyubgryuwbgrjyubgrjgrjywgerjgrgw
    eukwgfuweyjyegfjgfjhrjujuhwruihri';
    begin
    update kou_test_1 set clob_data=v_clob where roll=3;
    commit;
    end;
    Now I have created a table in r2srvr3 database.
    create table kou_test_2
    roll integer,
    clob_data clob
    and also created a database link from r2srvr3 to r2srvr5.
    now when I am executing the following code it gives the error "ORA-22992: cannot use LOB locators selected from remote tables
    ORA-06512: at line 2"
    begin
    insert into kou_test_2(roll,clob_data)
    select roll,decode(roll,3,clob_data,empty_clob())
    from [email protected];
    commit;
    end;
    Now can any body provide me any solution of it except two separate inserts like
    begin
    insert into kou_test_2(roll,clob_data)
    select roll,clob_data
    from [email protected]
    where roll=3;
    commit;
    end;
    insert into kou_test_2(roll,clob_data)
    select roll,null
    from [email protected]
    where roll<>3;
    commit;
    end;
    Waiting for reply,
    Regards,
    Koushik

  • Probelm regarding insert into long datatype column

    hi all ,
    in one of my table one column's datatype is long and i want to insert a value into this column but getting following error
    ora-1461 :- can bind a LONG value only for insert into a long column
    please help me
    any help appriciated

    Show us the code...?
    Looks like you are trying to insert into the wrong column.

  • Dataelement and Datatype regarding photo

    hi this is praveen we are connecting .net to sap  .
    .net people  give photo to us so we have option in se78 direct we can insert photo
    but in my requirement is i need datatype and dateelement and table to insert a photo
    can any one pls help me
    thanking you

    HI Praveen,
    Try using the Tcode OAER where we can have the document type - as color photos etc. pls cehck this
    OAER- Document type - HRIEMPFOTO, HRICOLORFOTO etc try searching as HRI* we can also do this way
    OR
    save the photo in BMP format before uploading it in SAP. it doesn't support gif or other format.
    go to se78.give the name of the photo in graphics->BMAP-> F4. it will ask for the path. select from the path and upload the photo.give the desired resulution. Resulation will decide the size of photo. try different combination in form u'll get the desired size.

  • Regarding reversing Siebel datastores-Column Datatypes multiplied by 4

    Hi,
    I am trying to reverse a table from Siebel. I am using no RKM. But for my surprise except number and date all other datatype values are getting multiplied by 4.
    For eg: Char(1) in db is reversed as Char(4)
    varchar2(100) in db is reversed as varchar2(400)
    It is Siebel based on Oracle db.
    Thanks,
    Vikram

    Hi,
    It is an issue with drivers. Database I am using is 11g and ODI standard comes with 10g drivers.
    Solution:
    1)Download ojdbc5.jar and ojdbc5_g.jar if your jdk is 1.5 and ojdbc6.jar and ojdbc6_g.jar if your jdk is 1.6.
    2)Replace ojdbc14.jar with these. Dont keep ojdbc14.jar in the ODI folder.
    3)Close all ODI applications and reopen.
    4)Go to topology and test any of the Physical topology, when a window pops up to test click on details and see whether the driver version is reflection as 11.<version>.
    Be sure of 3 dimensional matrix i.e. database, jdk and drivers.
    Hope this helps
    Thnks,
    Vikram

  • Clob DataType, NULL and ADO

    Hello,
    First, I'm french so my english isn't very good
    I have a problem with Oracle Clob DataType. When I try to put NULL value to
    CLOB DataType with ADO, changes aren't not made.
    rs.open "SELECT ....", adocn, adOpenKeyset, adLockOptimistic
    rs.Fields("ClobField") = Null ' In this case, the Update doesn't work
    rs.update
    rs.Close
    This code works if I try to write a value which is different than Null but
    not if is equal to Null. Instead of having Null, I have the old value
    (before changes), the update of the field doesn't work.

    I experience the same, did you find a solution to your problem?
    Kind regards,
    Roel de Bruyn

  • Difference between CHAR and VARCHAR2 datatype

    Difference between CHAR and VARCHAR2 datatype
    CHAR datatype
    If you have an employee name column with size 10; ename CHAR(10) and If a column value 'JOHN' is inserted, 6 empty spaces will be inserted to the right of the value. If this was a VARCHAR column; ename VARCHAR2(10). How would it handle the column value 'JOHN' ?

    The CHAR datatype stores fixed-length character strings, and Oracle compares CHAR values using blank-padded comparison semantics.
    Where as the VARCHAR2 datatype stores variable-length character strings, and Oracle compares VARCHAR2 values using nonpadded comparison semantics.
    This is important when comparing or joining on the columns having these datatypes;
    SQL*Plus: Release 10.2.0.1.0 - Production on Pzt Au 6 09:16:45 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn hr/hr
    Connected.
    SQL> set serveroutput on
    SQL> DECLARE
    2 last_name1 VARCHAR2(10) := 'TONGUC';
    3 last_name2 CHAR(10) := 'TONGUC';
    4 BEGIN
    5 IF last_name1 = last_name2 THEN
    6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
    || '-');
    7 ELSE
    8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
    ame2 || '-');
    9 END IF;
    10 END;
    11 /
    -TONGUC- is NOT equal to -TONGUC -
    PL/SQL procedure successfully completed.
    SQL> DECLARE
    2 last_name1 CHAR(6) := 'TONGUC';
    3 last_name2 CHAR(10) := 'TONGUC';
    4 BEGIN
    5 IF last_name1 = last_name2 THEN
    6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
    || '-');
    7 ELSE
    8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
    ame2 || '-');
    9 END IF;
    10 END;
    11 /
    -TONGUC- is equal to -TONGUC -
    PL/SQL procedure successfully completed.
    Also you may want to read related asktom thread - "Char Vs Varchar" http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1542606219593
    and http://tahitiviews.blogspot.com/2007/05/less-is-more-more-or-less.html
    Best regards.

Maybe you are looking for

  • ADC to DVI and DVI to VGA on my G5

    I have a G5 with an ATI 9600 video card that has both DVI and ADC outputs.  I cannot find am ADC to VGA adapter, but I was wondering if I could use and ADC to DVI adapter and then connect that to a DVI to VGA adapter and use a 2nd VGA monitor on my M

  • Problem Installing XP Pro on Virtual PC

    I'm trying to install XP Professional on iMac G4 2 Ghz. When I run Virtual PC I get the message "OS not found Install an OS on this hard drive" When I go to capture the CD, the option is grey and unavailable.  I tried the workaround of going to virtu

  • Idvd having trouble with QT movie

    Hi everybody, So I've exported my FCP 6 project using : Quicktime movie Setting: Current Settings Include: Audio & Video Make movie self contained is checked It plays fine in QT, there is plenty of space on my G5, but idvd for some reason is playing

  • Customizations for Alert Message in Lead Distribution

    Hi, Experts We have an issue here as When lead is distributed 'Manually' to other 'Employee Responsible' it should send an alert  to the same employee. Tried resolution in following ways: with Action profile , but here unable to select the 'Partner F

  • String to SY-UNAME

    hi all, I'm new to Java WD. As my scenario, i implement GetSAPUser() then i already get a USER NAME. Firstly, i convert the user name to String. After that, i want to call bapi which imports SY-UNAME to SAP. In other word, from userName(type String)