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

Similar Messages

  • 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

  • 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.

  • Master data loading - Dimension Property value incorrect

    Hi,
    I have a dimension in BPC which has an attribute amount.
    When am trying to load the master data from BW, the number is truncated and displayed with a * if the number has more than 6 digits.
    If this is a problem with the delimited - comma - then it should not bring in the values even with one punctuation (e.g. 6,000) but strangely it's happening only for 6 digits or more.
    e.g. 19,605,500.00 -> *05500.00
    This is master data (estimate field) and is not used for calculations/planning.
    I tried the following but nothign worked.
    1) Removing commas using a script in the conversion file
        js:%external%.toString().replace(",","")
    2) Removing the delimiter in the transformation file and making comma as decimal point.
    DELIMITER =
    AMOUNTDECIMALPOINT = ,
    Let me know if you have any ideas to resolve this.
    Thanks,
    Vasu
    Thanks,
    Vasu

    Hi Vasu,
    The field in your BW is 17,2 which I am assuming is a decimal value of 17 digits long with 2 digits after the decimal point.  Your property of 40 characters should have plenty of room  to fit any value so something else is wrong. Can you please validate the transformation and conversion files with this data?
    I highly recommend validating the transformation and conversion files with the new external data.  In my experience most of the time when there is a problem in mapping the external data the transformation and/or conversion files do not validate successfully and they generate useful diagnostics.
    Regards,
    Leila Lappin

  • 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
    )

  • Assign master data attribute value to Time Infoobject in Transfer Rule Rout

    Hi Experts,
    I want to assign value for Time Infoobject ZTIME from a Master data Infoobject's attr.  The value for this ZTIME exists as an attr of Infooject ZMMM. I want to do at Transfer Structure level so that the assigned value can be used for another calculation in the update rule..
    Any help on the routine is highly appreciated.
    Thanks,
    DV

    Hi Edwin,
    After making the changes as u suggested, i tried to activate the transfer rule, but Iam getting the following eerror msg
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred in the program generation:
    Program / Template:   RSTMPL80
    Error code / Action: 6
    Row:        6,083
    Message:    Statement is not accessible.
    Procedure
    If the problem occurred during the data load or transport, activate the transfer rule.
    If the problem persists, search in the SAP note system under 'RSAR 245'.
    How can Iresolve this?/ Why is this happening??
    DV
    Any Help???
    null

  • 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.

  • Decimal  values for a field in ALV

    Hi,
    I created an ALV report.
    It has a field which will display the calculated value as '103,839,389'. This should be dispalyed as '103,839,389.00' with decimal value, I mean with 2 decimal places, how can this be achieved?
    Thanks,
    Kumar

    hi check this..
    use these in populating the fieldcat..
    it_fieldcat-decimalsfieldname = fieldname
    it_fieldcat-decimalstabname   = tabname
    it_fieldcat- decimals_out   = 2.
    regards,
    venkat

  • 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 convert a number to FLOAT with 9 decimal values.

    Hi all,
    I need to convert a number like '10.02' to a floating point number with 9 decimal values like '10.022111221'. I think that the right function is TO_BINARY_FLOAT, but how can I obtain 9 decimal values? If I use the following syntax:
    select TO_BINARY_FLOAT(num) from table
    I obtain a floating point values with a variable number of decimal numbers after the ".", instead I need 9 number after ".".
    Regards,
    Maurizio.

    Hi,
    the number I need to select is the result of a product, for example:
    select (Num_A * Num_B) from Table;
    Num_A has 2 decimal numbers, like 12.01 and Num_B could be: 12.111111111.
    Now, Num_A * Num_B = 653.999999994
    but I issue:
    select TO_BINARY_FLOAT(54.00 * 12.111111111) from Table
    I obtain:
    654, a rounded value, but I need 653.999999994.

  • Loading a default value to a text  field

    Hi All...
       I  have some input fields say account no.. , i want that these input fields should be loaded with default values. How can i specify default values to these input fields.
    Plz help...

    hi bichoo..
              all your input fields would be bound to different attributes..... for every attribute you have an option called default value... in the context... you can make use of that...
                   or
               in the wddoinit method, you  can pass teh values to these attributes dynamically using set_attribute method.
    ---regards,
       alex b justin

  • Rounding off to a variable value to 4 decimal values in sap script ouput

    Hi All,
    I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values!
    What is the formatting option need to be used & how!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    1.In layout just call that variable, where you need like:
    &variable(.4)&.
    Just see these:
    &symbol(Z)&  Omit Leading Zeros 
    &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value
    Regards,
    If helpful reward with points(Don't forget).

Maybe you are looking for

  • Payment Terms Changed

    the order  was entered with a payment term of 0.5% 45 net 60 however it billed at 2% 60 net 61. This is exactly showing in billing documents. I canu2019t see where anyone went in and changed the terms.  Can anyone help me to know Who and How the term

  • I don't have a sound from iTunes !!!!

    HI, Since the last upgrade, iTunes don't have a sound !! I mean there's no sound anymore from iTunes. Other softwares, as FCP or Audacity work proprely. What can i do to re-find a sound from Itunes ? (sorry from my english, i'm only french !)

  • SelectItems using custom list component and itemRenderer

    Hello, is it possible to do this without overriding selectedItems setters? I'm passing xml as the dataProvider for a custom list: here is the dataProvider XML: <color id="1" name="Red" color="0xFF0000" /> <color id="2" name="Blue" color="0x0000FF" />

  • Data save problem

    I created a from with 2 datablock view -- Non database block multi record block personnel -- Database block single record block I defined a crusor when_new_form_instance DECLARE            CURSOR chk      IS   select perscode,persname,commission,conv

  • Adding Contacts with Department Field

    Morning, I work in a school which uses split delivery for our students and staff, the students are hosted externally. What I would like to do is import the students into a address book so the staff can see their names. I have done this for around 50