Exponential value in flat file

Hi,
In the flat file, exponential values come along with the numeric values. Data type defined for objects are "CURR-Currency field,stored as DEC".
While preview the data in infopackage, shows an error "Error 4 when loading external data". While checking the flat file data found some Exponential values also contained in the file instead of numeric values. i.e. "1.20068e006", "1.20E06" or "-2.27374e-013"
Since these are very few in whole flat file, we can not apply the conversion formula globally. Could you please tell me how to tackle this problem?
Points will be surely rewarded for good suggestions.
Thanks,
SAM

Hello SAM,
How r u ?
I believe there is no easy solution for this. We have some loads from Oracle DataBase with the Exponential values, both in the Oracle and in BW it shows Exponential Values. Only If we transfer the data to Excel we could see the proper values, otherwise not. In ur case that is not possible as u said earlier.
May be this could be made possible with some ABAP Code, lets wait for some Inputs !
Best Regards....
Sankar Kumar
+91 98403 47141
CongraZzzzzz Dinesh ! on 10000 points. Great Job.

Similar Messages

  • Change InfoObject value in flat file for Hierarchy load

    Hi Guys,
    I am loading hierarchy for an infoobject from flat file. I have the field InfoObject (IOBJNM) whose value needs to be changed before loading into the hierarchy. Can somebody tell me how can I do that through formula or routine.
    The InfoObject loads 0HIER_NODE and a leaf infoobject values from flat file.
    The hierarchy transfer rules does not contain IOBJNM field., though the Hier Structure under Transfer Structure tab contains IOBJNM.
    In transfer structure I see only NodeName, Date From, Date To, and eaf infoobject.
    Any help would be appreciated.

    Hi,
          Try using the IDOC method while loading the hierarchy and make sure you have this IOBJNM in the external charactersitics for the Infoobect to which you are loading this hier.
    Thanks,
                Peter

  • Dynamic Header Values in Flat File Destination

    Hi,
    I have to put 'T' or 'P' as part of a header in a flat file destination. The header is sourced via a work table which defines what the header looks like. One of the columns should contain 'T' for test or 'P' for production. When the package is executed in
    the test environment, 'T' should appear as part of the header. When the package is executed in the production environment, 'P' should appear as part of the header.
    Any ideas on how to achieve this is very much welcome.
    Thanks,
    AJ

    Package parameter indicating the environment and a DerivedColumn transform that generates a column with T or P depending on the parameter value.

  • Outputting data to a flat file

    Hi. Sorry if this is really a simple question, but I am new to PL/SQL and SQL.
    I need to select all the fields from a table and output it to a flat file. Can you tell me how to do this, ie give me a sample code.
    Thanks.

    Hey CD,
    Theres Nothing more simple than outputting values in to a flat file from PL/SQL.
    1-Open a cursor containing your field values.
    2- Use the UTL_FILE package from Oracle to output the results....
    Like so:
    PROCEDURE PROC_PROCEDURE()
    IS
    -- declare variables!
    var_FileHandle UTL_FILE.FILE_TYPE; -- file handle
    var_Values VARCHAR2(4000); -- record layout
    -- declare cursors
    CURSOR cur_cursor IS
    SELECT *
    FROM table
    WHERE {conditions}
    -- declare cursor variables
    varcur_cursor cur_cursor%ROWTYPE;
    BEGIN
    -- Open File to write...
    var_FileHandle := UTL_FILE.FOPEN(ExportFilePath, FileName, 'w', 8191);
    -- Select records...
    FOR varcur_cursor IN cur_cursor LOOP
    -- Build INSERT statements...
    var_Values := varcur_cursor.FIELDNAME1
    | |varcur_cursor.FIELDNAME2
    | | ...more fields....
    -- Insert Values into flat file...
    UTL_FILE.PUT_LINE(var_FileHandle, var_Values);
    END LOOP;
    -- Close text file...
    UTL_FILE.FCLOSE(var_FileHandle);
    END PROC_PROCEDURE;
    Hope this helps!
    Mg.

  • Short dump while reading a currency field from Flat file into internal tabl

    Hi,
    I am getting a short dump........saying number conversion dump (while reading a currency value into field in internal table from a fixed lenght flat file).........
    Do I need to use a string variable to get the value from flat file or how ??
    Please suggest.

    Santosh,
    Thanks for your inputs,
    But my internal table type is of DEC (5,2) , I am getting that... it needs to be of type 'C'. Can you suggest.
    Ex :
    MOVE wa_temp-infile_string+106(8)  TO wa_item-QT_PERCENT
    This didnt work
    so i tried moving into a seperate variable
    MOVE wa_temp-infile_string+106(8)  TO v_percent.
    and then write to
    WRITE v_percent to  wa_item-QT_PERCENT.

  • Upload Currency Vlaues using Flat File.

    Hi All,
    I need a clarification in Loading the Currency Values through flat files. The flat file is created with the similar table structure as that of TCURR.
    But there is a problem that am facing.
    In SPRO there is an screen to maintain the Exchange rates. After doing the flat file upload in AWB under the source system tab, i checked in SPRO Exchange rates screen to see if the values for Indirect Quotation and Direct Quotations are populated. But it is always populating the exchange value only in Direct Quotation and not in indirect quotation.
    Apart from that i am not able to navigate in that screen as am getting an error message in the Exchange rate screen as :"MAnintain conversion factors for <FROM>/<TO> currency.
    Please let me know how to do a flat file upload of currency values and also on the Indirect/Direct Quot mapping.
    Sajan.M

    Hi Sajan,
    The Steps that you followed is correct but only thing is you have to maintain Exchange Rate Type with use of T-code : RRC1 .
    Maintain the Flatfile same as the table.
    Note : Exchange Rate Type should be the existing one.
    In the Source system, right click the concern source system and choose the transfer exchange rate...and specify your flat file.we can load it from the local or application server.
    But be carefull sometimes it will delete the existing data in the table.
    Regards,
    Suresh

  • How to load Material from Flat File and convert to SAP Format

    Hi
              I am loading 0Material values from Flat File for mapping purpose. The format of Material in Flat File is "7704132". Within the system, i need to compare the value with 0Material values from the incoming data and update corresponding 0Material in records. for this purpose, I created dummy materials taking 0Material as template and trying to load data. I am getting invalid error- Version '7704132' is not valid RSDMD No194. Can anyone please let me know how to over come this issue. Should I include any routine in the data source or rules level. I am in BI 7.0.
    Thanks.

    Hi,
    Use the FM CONVERSION_EXIT_ALPHA_INPUT to convert the value into Internal format .Use this FM in the Transformations (field mapping).
    Search the forum with CONVERSION_EXIT_ALPHA_INPUT for more information on this.
    Regards,
    Anil Kumar Sharma .P

  • How to Map Idoc-Orders05 Qualifier permitted values to a flat file Str

    Hi All,
    My scenario is IDoc-xi-flat file. I have a problem in mapping the respective qualifier value in IDoc to the flat file structure. I am using the function fix values in Message Mapping. Suggest how should the target field should look like to map to the qualifier.
    Thanks
    Gowri K.

    hi,
    can you tell a little bit more on what are you trying to achive?
    do you only need one qualifier in file or all or what?
    can you use the same structure as in IDOC ?
    be a little more precise
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Flat file should have source field name and value

    Hi Friends
    I have a scenario of Idoc to Flat file , where in the target structure the field name and value should be present, generally only the value is available in a flat file.The target structure is as below:
    for e.g RECTYPE is the Field Name and A is the value.
    RECTYPE,A
    DATEH,20111101
    TIMEH,173125
    RECTYPE,B
    ORDNUM,4500054536
    ORDITM,150
    SUPDAT,20090218
    PLNQTY,000000006
    MATNR,14B300
    BATCH,5697
    PLANT,3026
    DELIVTYPE,PO
    SUPPLIER,0000023305
    SUPNAME,Deutsche BP AG
    SUPADRS,Erkelenzer Strasse 20
    SUPCITY,Monchengladbach
    SUPPOST,41179
    SUPCOUN,DE
    TRUCK_NBR,7589
    BOND_FLG,X
    STG_LOC,PLCL
    LINE_ACTION,CRE
    RECTYPE,B
    ORDNUM,4500056721
    ORDITM,10
    SUPDAT,20090218
    PLNQTY,000000013
    MATNR,116703
    BATCH,6589
    PLANT,3026
    DELIVTYPE,PO
    SUPPLIER,0000023380
    SUPNAME,DOW Belgium NV
    SUPADRS,Havenlaan 7
    SUPCITY,Tessenderlo
    SUPPOST,3980
    SUPCOUN,BE
    TRUCK_NBR,7589
    BOND_FLG,X
    STG_LOC,PLCL
    LINE_ACTION,CHG
    RECTYPE,X
    DATEH,20111101
    TIMEH,173125
    RECORDS,3

    Hi,
         NameA.addHeaderLine
    Specify whether the text file will have a header line with column names. The following values are permitted:
    ■       0 u2013 No header line
    ■       1 u2013 Header line with column names from the XML document
    ■       2 u2013 As for 1, followed by a blank line
    ■       3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
    ■       4 u2013 As for 3, followed by a blank line
    This specification is only permitted if exactly one structure is defined.
    regards,
    ganesh.

  • SQL Loader-How to insert -ve & date values from flat text file into coloumn

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide.

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide. Try something like
    someDate    DATE 'DDMMYYYY'
    someNumber1      "TO_NUMBER ('s99999999.00')"
    someNumber2      "TO_NUMBER ('99999999.00s')"Good luck,
    Eric Kamradt

  • How to convert flat file to XMl without key field value

    Hi experts,
    I have a input CSV Flat file which has got one HEADER line and Multiple Detail records.
    I do not have any key field value to convert this FLAT file to XML using normal file content conversion.
    Is there any module or Bean which can be used to convert this Flat File to XML.
    Or any other remedy to overcome this problrm.
    Thanks in advance.
    Regards
    Pradeep

    Hi Saurabh,
    Thanks for the reply.
    Ur understanding is perfectly alright.Lets say my file is like below.
    Account Number,Account Name,Currency,Unclear Balance,Account Balance010205000033,VAISHNAVI SALES CORPN,0.00,0.00,350000.00
    010205000034,CHAKKA ENTERPRISES,0.00,-641350.47,8649.53
    010205000035,SEHGAL TRADING COMPANY,338665.00,-220.00,461115.00
    010205000036,SHUBH LAXMI AGENCIES,0.00,0.00,0.00
    010205000037,EMPIRE AGENCIES,0.00,-245.11,0.00
    010205000038,PIONEER AGENCIES,0.00,-696386.00,303614.00
    I am not using the first line in the mappiing.
    Are you saying that I need to ignore the first line while doing the conversion using Recordset OFFSET ?
    Or do I need to make a single structure taking all the fields from header as well as details and while defining the structure I need to ignore the fields from header?
    Please suggest.

  • Flat file assembler. Hexadecimal value XYZ, is an invalid character

    Hi,
    I'm trying to send file that contains base64-encoded string. With simple xml FTP sending - all works fine. But with flat file pipeline comes this error:
    A message sent to adapter "FTP" on send port "....FlatFile" with URI "ftp://..../.../%SourceFileName%" is suspended. 
    Error details: There was a failure executing the send pipeline: "...., ....Pipelines, Version=1.0.0.1, Culture=neutral, PublicKeyToken=.."
    Source: "Flat file assembler"
    Send Port: "MyFlatFile" URI: "ftp://.../.../%SourceFileName%" Reason: '', hexadecimal value 0x03, is an invalid character. Line 1, position 100.  
    Pipeline:
    Is it impossible to do such operation on Biztalk?
    Thank you!

    Try to set the appropriate value to the "Target charset" property in the Flat file assembler component. This would solve your issue.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • Last field has no value in sender flat file.....

    Hi,
    I am doing FCC on sender flat file.
    If the last field in the flat file has no value i.e. say if comma is my fiels seperator ,then the file is lik:
    1,2,3,
    The last node of my XML is not formed and giving me mapping errors....How do I solve dis??
    Plz help
    Edited by: sriparna1 on Oct 20, 2010 12:34 PM

    For comma seperated structures, the missing fiels are ignored.
    Make sure you defined the endseperator.
    Edited by: nagarjuna _s on Oct 20, 2010 12:46 PM

  • Add new line in the Flat file based on the field value

    Hi,
    Following is my Flat File -
    Customer   X      Y
    1001          1       2
    1002          0       1
    Based on the X and Y value I need to add new lines in the Flat file. If X>0 then add a new line with repeating row and Y>0 add again a new line with repeating row. If X or Y=0 then no need to add any repeating new line. 
    So, here for the above example I need output as-
    Customer    X    Y
    1001          1      2
    1001         1       2
    1001         1       2
    1002          0       1
    1002          0        1
    Suggest how we can achieve this?
    Regards,
    Tridib Konwar 

    Hi Tridib,
        I tried your scenario and You will have to use the custom xslt to get the expected result.
        Please find bellow the xslt code which you can use in your map.
    <?xml version="1.0" encoding="utf-16" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0" xmlns:ns0="http://PracticeAtul.XYFlatFileSchema">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/ns0:XYComp" />
    </xsl:template>
    <xsl:template match="/ns0:XYComp">
    <ns0:XYComp>
    <XYComp_Child1>
    <XYComp_Child1_Child1>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child1/text()" />
    </XYComp_Child1_Child1>
    <XYComp_Child1_Child2>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child2/text()" />
    </XYComp_Child1_Child2>
    <XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child3/text()" />
    </XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/text()" />
    </XYComp_Child1>
    <xsl:for-each select="XYComp_Child2">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    <xsl:if test="XYComp_Child2_Child2/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    <xsl:if test="XYComp_Child2_Child3/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    </xsl:for-each>
    </ns0:XYComp>
    </xsl:template>
    </xsl:stylesheet>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.
    Atul Toke

  • Field Values being changed in the flat file on Application Server

    Hi All,
    I am loading a flat file(.CSV) from Application server. The file has some characteristic fields, for ex: CNUM of type Char, length 20. But it has got the value which is of 10 char length, say XYZ1234XAB. When I load the same fiel from client workstation, the load was successful but when I load it from Application server, the load has failed and the error is Invalid/Hex. characteristics for this record and many such records.
    When I checked the file on the application server the value 'XYZ1234XAB' is being displayed as 'XYZ1234XAB   #' and it is also being loaded with '#'. This is the cause of the error.
    Why is the value being changed on the application server? What can I do to overcome this?
    Thanks,
    RPK.
    Message was edited by:
            RPK

    Hi Ganesh,
    I have already loaded data to my ODS and when activating it is giving error "Value 'XYZ123XABC   #' (hex. '123456....') of characteristic CNUM contains invalid chara".
    I also have some lower case char in some of the records for the same field. The file is huge and cannot change the file, infact I have many such files. Is there any other way to overcome this?
    Thanks,
    RPK

Maybe you are looking for