Loading decimal  value to an infoobject of type char

I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
Is it because i tried to move a dec valu into a char field with a different length? If so  how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
Thanks in advance.

if u r using BI7.0
go to the datasource of the cube
in the general info tab of the datasource
there is a check box with PSA not typed
check it
if u check it all the values from the external source will be converted into character format irrespective of their data type

Similar Messages

  • Loading a decimal value to an infoobject of type char

    I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
    Is it because i tried to move a dec valu into a char field with a different length? If so  how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
    Thanks in advance.

    if u r using BI7.0
    go to the datasource of the cube
    in the general info tab of the datasource
    there is a check box with PSA not typed
    check it
    if u check it all the values from the external source will be converted into character format irrespective of their data type

  • How to load decimal values into a file using bcp in SQL Server 2000?

    Hi everyone,
    I'm trying to load data from a database table to a text file using bcp on SQL Server 2000. When I'm loading the decimal values, the values before the decimal are not being loaded into the file. How could I load the values before decimals?
    Here are the DDLs and DMLs of what I'm trying to run:
    CREATE TABLE [dbo].[Product_Sales](
    [Year_of_Sale] [smallint] NOT NULL,
    [Product_Type] [varchar](25) NOT NULL,
    [Product_Group] [varchar](25) NOT NULL,
    [Category_Type] [varchar](25) NOT NULL,
    [Category_Group] [varchar](10) NOT NULL,
    [Product_Count] [bigint] NOT NULL,
    [Product_Amount] [decimal](19, 2) NOT NULL,
    [Category_Count] [bigint] NOT NULL,
    [Category_Amount] [decimal](19, 2) NOT NULL,
    CONSTRAINT [PK_Product_Sales] PRIMARY KEY CLUSTERED
    [Year_of_Sale] ASC,
    [Product_Type] ASC,
    [Product_Group] ASC,
    [Category_Type] ASC,
    [Category_Group] ASC
    ) ON [PRIMARY]
    ) ON [PRIMARY]
    INSERT INTO [Yearly_Sales].[dbo].[Product_Sales]
    VALUES(2010, 'Online', 'Web', 'Cameras', 'Electronics', 547, 0.00, 0, 0.00)
    EXEC [master].[dbo].[xp_cmdshell] 'bcp "SELECT * FROM [Yearly_Sales].[dbo].[Product_Sales]" queryout D:\Yearly_Sales\Product_Sales.dat -c -T -S'
    And the output I see in the file is:
    2010 Online Web Cameras Electronics 547 .00 0 .00
    The values before decimals are being truncated.
    Thanks,
    Bangaaram
    Known is a DROP, Unknown is an OCEAN.

    You can modify the decimal column(s) in the table to varchar type before export. But it does not look good.
    alter table [dbo].[Product_Sales]
    Alter column [Product_Amount] varchar(20)
    alter table [dbo].[Product_Sales]
    Alter column [Category_Amount] varchar(20)
    Does that make any sense?
    Known is a DROP, Unknown is an OCEAN.
    Basically you modify the decimal column to a varchar type before you run the bcp command for export. You can modify your source table or you can modify them on the fly. It is just a workaround.
    Modifying the source wouldn't be a good idea. Never do that if you can't get your desired output.
    Known is a DROP, Unknown is an OCEAN.

  • Data type for decimal value

    I am making my own database table.which data type shuld I use to display decimal values.I used FLTP but its display is not very clear.
    My values are like1234.56
    Thanks

    assign decimal place while creating domine.
    as per ur req.....
    if it is usefulll.Plz Reward
    Regards
    Anbu

  • Wat should be data type for  negative and decimal values (eg: -1.2222)

    What should be data type for  negative and decimal values (eg: -1.2222)

    Hi
    U can use the data type DEC while creating the DOMAIN and in the domain u  have sign check box at the left corner of the screen, click that check box , u can assign negative values for the field which refers this domain.
    REWARD IF HELPFULL
    Anees.

  • BW Loading filter values taking too much time

    Hi
      Loading filter values of characteristics from Bex taking more time (annoying users), for example for sales document types when wants to select filter values to loads couple of around 30 it is taking more than 3-4 minutes.
      Infoobject -> Business explorer->Query Def. Filter Value Selection is "M" (values in master data table) is active. Please let me know any reasons for this performance problems? We are getting similar problems with almost all characteristics, we thought it is trying to read from info provider, though we indicated to read from master data table.
    Thanks
    Reddy

    One better way could be
    Infoobject -> Business explorer->Filter value Repr.At Query Execution = Dropdown box
    As you have only few entries, this may not annoy users.

  • Sqlload for decimal values

    Hi,
    I am having a problem.. the decimal values that I have on flat file is not upload to a table properly
    Table
    ==============================
    SQL> desc intfc_splitfactor
    Name Null? Type
    UDC_DIVISION VARCHAR2(50)
    DMDUNIT VARCHAR2(30)
    ITEM VARCHAR2(30)
    LOC VARCHAR2(10)
    EFFDATE DATE
    QTY NUMBER(20,5)
    SPLIT_FACTOR NUMBER(20,5)
    Control File
    ================
    LOAD DATA
    INTO TABLE scpodintfc.intfc_splitfactor
    APPEND
    TRAILING NULLCOLS
    UDC_DIVISION CHAR TERMINATED BY ",",
    DMDUNIT CHAR TERMINATED BY ",",
    ITEM CHAR TERMINATED BY ",",
    LOC CHAR TERMINATED BY ",",
    EFFDATE DATE 'MM/DD/YYYY' TERMINATED BY ",",
    QTY DECIMAL EXTERNAL TERMINATED BY ",",
    SPLIT_FACTOR DECIMAL EXTERNAL
    datafile
    ===============
    2,1103,110308PM,LO,07/02/2006,1026,0.25
    2,1103,110308PM,LO,07/30/2006,2916,0.5
    2,1103,110308PM,LO,08/27/2006,8007,0.4
    2,1103,110308PM,LO,10/01/2006,3750,0.297
    2,1103,110308PM,LO,10/29/2006,873,0
    2,1103,110308PM,LO,11/26/2006,349,0
    2,1103,110308PM,LO,12/31/2006,482,0.5
    2,1103,110308PM,LO,01/28/2007,539,0.4
    2,1103,110308PM,LO,02/25/2007,3906,0.5
    2,1103,110308PM,LO,04/01/2007,12148,0.4
    2,1103,110308PM,LO,04/29/2007,7574,0.4
    2,1103,110308PM,LO,05/27/2007,4536,0
    2,1103,110308PM,LO,07/01/2007,1763,0
    2,1114,11148PM,LO,07/02/2006,632,0
    ===================================
    after inserting
    ===================================
    select SPLIT_FACTOR from intfc_splitfactor
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    .00
    Can any one help to resolve this issue!!
    Thanks
    Indraneel

    You could restructure you control file to:
    LOAD DATA
    INTO TABLE scpodintfc.intfc_splitfactor
    APPEND
    fields termianted by ","
    TRAILING NULLCOLS
    UDC_DIVISION     CHAR,
    DMDUNIT          CHAR,
    ITEM          CHAR,
    LOC          CHAR,
    EFFDATE          DATE 'MM/DD/YYYY',
    QTY          DECIMAL EXTERNAL,
    SPLIT_FACTOR     DECIMAL EXTERNAL
    )

  • Storing decimal values

    We (like many organizations) are having rounding issues. I'm currently building out a warehouse for an organization and thought it would be fine to just set decimal columns to float. I'm working with some test data and loaded .02 into a table. When I did
    a select on the table the value came back as:
    .0199999995529652
    What? I mean that's effectively .02 but why not just store .02!?
    Is there a best practice data type I should be using to store decimal values?

    Money is what is causing the problems. Two decimal places isn't precise enough. I want to minimize the rounding problem by rounding only in one place; at the client.
    Money stores 4 decimal places.
    money and smallmoney (Transact-SQL)
    Hasn't be a problem for me in Datawarehouse-Projects.
    But of course it depends on how often you re-calculate against it, whether this is sufficient.
    Andreas Wolter | Microsoft Certified Master SQL Server
    Blog: www.insidesql.org/blogs/andreaswolter
    Web: www.andreas-wolter.com |
    www.SarpedonQualityLab.com

  • Issue in Decimal value round off

    Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types -  Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue -  Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below -  0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is -  0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.

    Hi All,  I have one scenario to read the source file . The file delimiter is '|' . The no of pipeline for each line is 17. So if a line containing more than 17 , send an error email. For this first i am printing tota pipeline in ecah line to afile called pipelinecount.txt . Then i will read this file and send each value to while loop /for loop , where it will get > 17 , it will exit the process and send an email.  But here in script i am getting error at while line. Could anyone help.   #! /bin/kshset -x SOURCE_DIR=/vp01/SrcFilessed 's/[^|]//g' /vp01/SrcFiles/Test.txt | awk '{ print length }'> /vp01/SrcFiles/pipelinecount.txtcd $SOURCE_DIRwhile line in `cat pipelinecount.txt`; do if [ $line -eq 17 ];thenecho "No issue in pipeline"exit 0;fiif [ $line -gt 17 ];thenecho "No of pipelines exceeded the expected. Please verify the source file." | mailx -s "WKFS Load: Failed" [email protected]

  • Re: Issue in Decimal value round off in DB2

    Hi All, It is happening only only when the decimal separator of source is ',' and behaving normally when decimal separator is '.'. Some how ..we casted the incoming field to TO_DECIMAL(IN_FIELD,2) ..in that case it is working fine.  Regards,Srinivas

    Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types -  Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue -  Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below -  0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is -  0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.

  • How do I convert an alpha character from a text string to its decimal value

    I am trying to find out the actual decimal value of a character in a string. So far the code below is as far as I got. I am able to get what I guess is a byte value.
    This is for a school assignment:
    The idea behind what I am trying to do is to design a hash function to store dictionary words into a bucket array hash table, without using the existing Hashtable.class
    so far this is what I can come up with to get some kind of value for each character in the string, however, what I am trying to get is the decimal value for each character.
    public static void main(String args[]){
         String word = "abcdefghijklmnopqrstuvwxyz";
         for (int i=0 ; i < word.length(); i++){
         System.out.print((word.substring(i,i+1)));
         System.out.print("\t : "+((word.substring(i,i+1))).getBytes());
    Thankyou for any replies.

    I'm not sure I completly understand your goal- what you mean by "decimal value", but, if you simply want to find the byte value of each character in a String, you would probably be better off using getBytes() in a way like this,
    byte [] bytes = string.getBytes();
    Then, if you need to map that to a charcter, you could use a for loop like
    for (int x = 0; x < bytes.length; x++) {
    table.put((char)bytes[x], bytes[x]);
    which assummes this bucket class of yours allows primitive data types like so (in Hashtable or HashMap, you would have to use a wrapper Object). I guess, my point reduces to, don't use substring and string search methods (like indexOf()), unless you have to because they are more expensive then just maping the array of bytes and chars, which seems to be what you are interested in doing.

  • ALV report - remove of decimal values

    Hi experts,
    In my ALV report, output table having decimal values, ex:90000.50, i want to display only 90000,
    can help any one inthis.
    Thanks in advance.
    Regards
    Rams

    Hi,
    for that particular field in Field catalog..
    <ur field cat>-decimals_out = 0.
    see this sample code.
    type-pools: slis.
    DATA: begin of itab6 occurs 0,
    chk type c,
    a type p decimals 2,
    b type p decimals 2,
    c type c,
    end of itab6.
    data: ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    wa_layout TYPE slis_layout_alv.
    itab6-a = '1.12'.
    itab6-b = '2.25'.
    itab6-c = '+'.
    append itab6.
    append itab6.
    append itab6.
    append itab6.
    ls_fieldcat-fieldname = 'A'.
    ls_fieldcat-seltext_m = 'A'.
    append ls_fieldcat.
    ls_fieldcat-fieldname = 'B'.
    ls_fieldcat-seltext_m = 'B'.
    ls_fieldcat-decimals_out = 0.  "this ll do
    append ls_fieldcat.
    ls_fieldcat-fieldname = 'C'.
    ls_fieldcat-seltext_m = 'C'.
    append ls_fieldcat.
    wa_layout-box_tabname = 'ITAB6'.
    wa_layout-box_fieldname = 'CHK'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    it_fieldcat = ls_fieldcat[]
    IS_LAYOUT = wa_layout
    TABLES
    t_outtab = itab6[].
    Cheers,
    jose.

  • How to print the value of a field of  type FLTP

    hi experts,
    pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format.
    thankyou.
    krishna

    Hi ,
    I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
    Define the variable as the 'packed' type and then u can able to define the decimal point...
    Cheers,
    SImha.

  • Decimal values are not flowing to Excise Invoice created in J1IIN

    Dear Sap Gurus,
    Please help me with the problem. After creation of invoice in VF01 when i am creaing outgoing excise invoice decimal values for BED, ECS and SEC. ECess( AT1) are not coming instead values are rounded of to nearest whole number.
    for ex.
    if invoice values are as below
    BED= 16
    ECS= 3.2
    HSC= 1.6
    when excise iinvoice is created values are changes as below
    BED= 16
    ECS= 3
    HSC= 2
    please give propeer solution
    reg.
    suresh

    Check in Logistics - General -> Tax on Goods Movements -> India -> Basic Settings -> Maintain Company Code Settings. 
    Also ensure that in V/06, for the respective excise condition types, rounding is not activated.
    thanks
    G. Lakshmipathi

  • Converting Time format to Decimal Value

    Dear All,
    How to convert time to decimal value for substraction of time and decimal value
    for eg l_time type tims
           l_dec type p.
    l_diff = l_time - l_dec
    Kindly let me know.
    Thanks in Advacne,
    Ranjan

    Hi,
    Try like this...
    PARAMETERS : tim TYPE tims,
                 y TYPE p.
    DATA : t TYPE string,
           t1 TYPE string,
           t2 TYPE string,
           t3 TYPE string.
    START-OF-SELECTION.
      t = tim(2).
      t  = t * 3600. " hours to second
      t1 = tim+2(2).
      t1 = t1 * 60.  " minutes to second
      t2 = tim+4(2).
      t3 = t + t1 + t2. " total time in second
      t3 = t3 - y.
    Regards
    Debarshi

Maybe you are looking for

  • Form in PDF

    I have a pdf form which was created using Adobe 4.0(may be planet pdf not sure). Anyway, I have a complex problrem. I have copied the old pdf file to a new pdf file as I need to increase the distance between the two fields. The fields are static fiel

  • C API  for JMS in LINUX

              Hi,           I have developed an appication using JMSCAPI in windows. Now i have to migrate           the code to linux C. pls help me in finding JMSCAPI for Linux .           Thanx and Regards           Venkat           

  • File explorer for lumia 720

    Why dont nokia provide file explorer in the lumia phones? Its too iritating to use a smartphone without evn knowing where or wht files are stored in your phone. Cant nokia design app to open n explore the internal+sd card files?

  • Regular Expressions (java.util.regex)

    I am developing using a product that must use java 1.2.2_05a but I want to use regular expressions, does anybody know where I can get of the package java.util.regex without having to download the whole java 1.4 release. Or does someone know of an alt

  • SAP help files

    Hi, I want to download SAP help files from sap.help.com. But from where I should download. Samriddhi Edited by: samriddhi das on Dec 15, 2008 12:51 PM