Loading ICT data with YTD

Hi,
Can any one advise on this.
Can we load ICT data with YTD values.
We have data for June and December, when we load data for december it is picking up junes data for YTD at December.
for example I have ICT for June = 5000
at December I want load data with 7000 as YTD (being 5000 of june + 2000 of December)
Thanks in advance.

jansenecj wrote:
Hi,
Any suggestions how to fix it?yes, the first thing that comes to my mind is
that instead of using number datatype in the test_EXT table for the AMOUNT column, you can use varchar2 datatype and you will go fine with that minus sign/s
For later data manipulations happening on the AMOUNT column , if the currently defined datatype will not be apropriatte ,you could eventually apply TO_NUMBER,SUBSTR,TRUNC and similiar built in functions to get the needed format.

Similar Messages

  • C# load xml data with attributes to datagridview; update data and save back to the xml

    Hi guys,
    i currently have this XML as data
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    I load the data with the code below:
    i use xDocument to load the DealData.xml and then put it in ToString.
    //outside of the form
    public static class XElementExtensions
    public static DataTable ToDataTable(this XElement element)
    DataSet ds = new DataSet();
    string rawXml = element.ToString();
    ds.ReadXml(new StringReader(rawXml));
    return ds.Tables[0];
    public static DataTable ToDataTable(this IEnumerable<XElement> elements)
    return ToDataTable(new XElement("Root", elements));
    //in the form
    private void button2_Click(object sender, EventArgs e)
    var xDocument = XDocument.Load("DealData.xml");
    string txtxml = xDocument.ToString();
    StringReader reader = new StringReader(txtxml);
    XDocument doc1 = XDocument.Load(reader);
    var res = doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION");
    dataGridView1.DataSource = res.ToDataTable();
    Now my question is:
    I would like to update the data from the DataGridview with the Attribute("ID").Value == "22" and save the data back to the XML.
    For example, after I load my data on the datagridview, we only pickup anything that is in the node
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    I updated the datagridview below with DEMANDE = 9000 CODE = 66 PRICE = 24.77 AND ALLOCATION = 1200
    I want be able to extract the data back in the xml as a child of the DEAL ID = "22"
    So that the XML file looks like this 
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    <ALLOCATION DEMANDE="9000" CODE="66" PRICE="24.77">1200</ALLOCATION> <-! this is the new line !->
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    Is there a way to achieve that?
    I have been searching and reading in the books but i cannot find a solution for this.
    Thank you
    Please do not forget to click “Vote as Helpful” if the reply helps/directs you toward your solution and or "Mark as Answer" if it solves your question. This will help to contribute to the forum.

    I would think of something like the below, the id is passed as static you need to change this
    protected virtual void button1_Click(object sender, EventArgs e)
    //Get DataTable from DGV datasource
    DataTable dt = new DataTable();
    dt = (DataTable)dataGridView1.DataSource;
    string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><DEALS><DEAL ID=\"22\" ISBN=\"0-7888-1623-3\" Screenplay=\"Mary Kaplan\" Title =\"Mr Gentleman\" Director = \"Jonathan Jones\"><ALLOCATION DEMANDE=\"5000\" CODE=\"72\" PRICE=\"25.00\">2500</ALLOCATION><ALLOCATION DEMANDE=\"7000\" CODE=\"75\" PRICE=\"35.00\">4000</ALLOCATION></DEAL><DEAL ID=\"23\" ISBN=\"1-7988-1623-3\" Screenplay=\"Joe Doe\" Title =\"Nothing Much\" Director = \"Listentome\"><ALLOCATION DEMANDE=\"3300\" CODE=\"72\" PRICE=\"15.00\">2500</ALLOCATION></DEAL></DEALS>";
    StringReader reader = new StringReader(file1);
    XDocument doc1 = XDocument.Load(reader);
    //Remove all elements related to the id being populated into the Grid
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION").Remove();
    //loop through datatable and create new xelement to be added to the xdocument
    foreach (DataRow dr in dt.Rows)
    XElement xe = new XElement("ALLOCATION",
    new XAttribute("DEMANDE", dr[0].ToString()),
    new XAttribute("CODE", dr[1].ToString()),
    new XAttribute("PRICE", dr[2].ToString()));
    xe.Value = dr[3].ToString();
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").FirstOrDefault().Add(xe);
    Fouad Roumieh

  • Loading historical data with 0CO_PC_ACT_02

    Hello,
        I need to load historical values with infosource 0CO_PC_ACT_02.  I can load the current period, but get no data from R/3 for historical periods.  When I run RSA3 on R/3 for a historical period, I get no data, so I don't believe that this is a BW Issue.
        My question:
       1.  Is there a job or something on R/3 I need to run to enable this data source to pull historical data?  If so, what is it and how do I run it?
       2.  Is this data source simply not able to pull historical data?
    Thanks.
    Dave

    Hi All,
    I have same issue , any one got work around to load history data with this Extractor(0CO_PC_ACT_02) ?

  • Loading Master Data with Flexible Update

    Hi,
    I have created an Infoobject - Business Partner (Master Data bearing characteristics). The attributes to this are Region, Sales Person, Industry code which are master bearing characteristic as well.
    I need to load data to the business partner from a csv file.
    The layout of the CSV file is -
    BP number, BP text (long Text), Region Code, Region Desc (Med Text), Sales Person Code, Sales Person Desc (Med Text), Industry Code, Industry description (Med Text).
    How do I define the infosource to load this data.
    Appreciate any help with this.
    Thank You,
    Prashanth

    Hi,
    First of all, I need to note that there are two kind of Infosources: with direct and flexible update.
    If you choose a direct IS, then in the creating of the IS you just enter the name of the infoobject where you are going to load data. The system will create a IS (comm. structure). Enter this IS for changing. The system will propose you the communication structure,  click on a bottom icon “Transfer structure/Transfer rules”, choose as a ‘Source system’ your flat file system. Agree with the system when it asks you to save assignments (up to 3 times). Activate TRs. Then click in the field for Datasource. You may see there another datasources (for texts, attributes and hierarchies). Choose one by one another datasources with their activation.
    Now you can create an infopackage for a load – you can choose what kind of package it is going to be – for loading texts, attributes or hierarchies.
    Note that in this case the structure of the flat file is proposed by the system and you need just prepare the flat file corresponding to the proposed structure (different for each of 3 possible datasources). Execute infopackage.
    If you use a flexible IS, then you may insert into comm. structure the fields that you think you may need in the master data. Note that here you may have not only attributes but TEXTS also. Save a comm. structure. Assign a flat file source system and activate a TRs.
    After that in RSA1-dataproviders tab – right click – insert IO as a data target – choose your IO. Refresh the screen. You’ll see up to three data targets. Create update rules for each of them. In URs map the fields in the IS with the fields in URs.
    Best regards,
    Eugene

  • Problem loading Image data with French accent in file name

    We have a very complex commercial application that has been working perfectly in English for over a year. We have now localized it to French and Spanish, and discovered a serious show-stopping problem. We need help fast, with the scheduled release being less than 2 weeks away...!
    We iterate over a folder to find all the images in it, then display those in a user window.  The code for loading the images is:
                for each (var name:String in filenames){
                    var image:SmoothImageTransformable = new SmoothImageTransformable();
                    var imagePath:String = dir + "/" + name;
                    image.source = imagePath;
                    trace("Adding Item to picture carousel with url " + image.source);
                    image.data = {directory:dir, filename:name};
                    image.isDragEnabled = true;
                    image.setStyle("horizontalCenter", 0);
                    image.setStyle("verticalCenter", 0);
                    _images.push(image);
    Our SmoothImageTransformable class is an internal class that inherits from Image.  This all works fine for image names like 'myFavoritePhoto', 'test', 'photo346', etc.  However, it fails to load the data if the file name is something like 'caméra'  Any name with a UTF-8 character causes the data load to fail.
    To be sure we weren't doing a load somewhere else in the code that I had overlooked, I added a "image.autoLoad = false' line in there.  That did exactly as expected -- all image squares then show a grey blank, with no image shown.  Removing that line (reverting to the original code, as shown above) causes all the images to work perfectly, except for those with French accent characters like the é.
    HELP!  Is this a known bug?  Is there some additional setting I need to make it understand the extended character set?  I can't find any mention about this at all in the documentation.

    @markerline:
    We have a fix!  Almost...   I don't understand one aspect of what I am seeing though.
    We have one test file named "camèra.jpg" that is an example of what I am unable to load into an Image.  I decided to examine the character codes at each letter, and this is what Flex has as the string:
    name = cam?ra.jpg
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x232
       [4] = r; 0x114
       [5] = a; 0x97
       [6] = .; 0x46
       [7] = j; 0x106
       [8] = p; 0x112
       [9] = g; 0x103
    Note that the è prints as gibberish in the trace statement, and shows a numeric encoding of 0x232.  According to
         http://docstore.mik.ua/orelly/web2/action/appb_01.htm
    The unicode equivalent of Latin1 for è is 0xE8, which is equivalent to 0x232. That implies that the string is already Latin1, which I would think would mean that Windoze would recognize the file name and open it properly -- but it does not.
    I then tried taking the "camèra.jpg" string, pasting it into NotePad++ in a UTF8 document, then telling NotePad++ to display as ASCII.  The result is "camèra".  I then tried just forcing the file name within Flex to this new mangled string.  The result then is:
    MAGIC name = camèra
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x195
       [4] = ?; 0x168
       [5] = r; 0x114
       [6] = a; 0x97
       [7] = .; 0x46
       [8] = j; 0x106
       [9] = p; 0x112
      [10] = g; 0x103
    Note this time the trace statement looks proper.  More important, the IMAGE DOES LOAD!  (Our display of the name to the user now looks like crap, but that just means I need to modify our class to have a separate 'name' property, rather than extracting it from the 'image.source')
    So... my remaining question -- what encoding did I just do through that NotePad++ incantation?  That site I quoted above said that it was already Latin1, which is what I thought I was trying to get to.  I clearly need to write a method to map from incoming (UTF8 I thought, but maybe Latin1?) to Windows file system (Latin1 I thought, but maybe ASCII).
    In other words, I am not sure what charcter set to come from or go to...  It turns out the code was already in the character set I had been trying to go to (which is why it wasn't working) and the set I seem to need to go to is not the one I thought...

  • SSIS Load Excel Data with out MS Office

    Hello All, 
    Requirement : Load Excel Data to SQL Server Table using SSIS 2012 with out using OPENROWSET(Ad Hoc Distributed Queries)
    SET UP : SQL SERVER 2012-64 Bit  and Access DataBase Engine 2010 -64 Bit  
    Problem :: No MS Office Install 
    Help on this  as how can this be achieved 
    When I use Excel as Source , I get error "MS Ace OLEDB 12.0" provider is not install on local Machine but if I take OLEDB Source and use OPENROWSET , I can see and Load data in SQL Table ..

    Hi Mushtaq308,
    According to your description, you want to read write Excel using SSIS without installing MS office on the target environment. In that case, missing of data access component on the machine stops working of SSIS package.
    Then following any one installation on the machine can solve this issue:
    2007 Office System Driver: Data Connectivity Components
    Microsoft Access Database Engine 2010 Redistributable 
    Besides, for the error message that “the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine”, please refer to the following thread:
    https://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Loading split data with sqlldr

    Hi,
    My table has got the following format:
    TABLE tbl1 (
    col1 VARCHAR2(10),
    col2 VARCHAR2(10),
    col3 VARCHAR2(10))
    I receive a file which data I import into my above table tbl1 using the sql Loader and the control file has the following:
    LOAD DATA APPEND INTO tbl1
    col1 (1:5) CHAR,
    col2 (6:5) CHAR,
    col3 (11:5) CHAR
    My data file contains the following:
    AAA,BBB,CCC,
    AAA,BBB,,DDD
    The idea is to load CCC into tbl1.col3 as well as DDD into tbl1.col3 (the rest loads in as per normal).
    How can I do that?
    Thanks,
    Philippe

    hi Sandeep...
    Thanks for pointing the mistake.
    Also I am getting problem when I am loading the data. here is the log.
    Table RTD_TMO_MODEL_SCORES_BI, loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    RECORD_ID FIRST * | O(") CHARACTER
    SQL string for column : "SQ_RTD_TMO_MODEL_SCORES_BI.NEXTVAL"
    MODEL_ID NEXT * | O(") CHARACTER
    BAN NEXT * | O(") CHARACTER
    MISDN NEXT * | O(") CHARACTER
    INSERTTIME SYSDATE
    SCORING_JOB_ID NEXT * | O(") CHARACTER
    SCORE_ENTITY_ID NEXT * | O(") CHARACTER
    MODEL_SCORE_DECIMAL NEXT * | O(") CHARACTER
    MODEL_SCORE_INTEGER NEXT * | O(") CHARACTER
    MODEL_SCORE_CHAR NEXT * | O(") CHARACTER
    ANCHOR_DT NEXT * | O(") CHARACTER
    RUN_DT NEXT * | O(") CHARACTER
    Record 1: Rejected - Error on table RTD_TMO_MODEL_SCORES_BI, column RUN_DT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table RTD_TMO_MODEL_SCORES_BI, column RUN_DT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 3: Rejected - Error on table RTD_TMO_MODEL_SCORES_BI, column RUN_DT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 4: Rejected - Error on table RTD_TMO_MODEL_SCORES_BI, column RUN_DT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Table RTD_TMO_MODEL_SCORES_BI:
    0 Rows successfully loaded.
    4 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.

  • How to load master data with text into infoObject in BI 7.0

    Hi all;
    I have an infoobject 0employee ( this is for employee number ,8 character long), with medium text option.
    I would like to load Employee name as a text option for employee number.
    How do I load this mater data into this 0employee object,
    Please help.
    I did look for something similar in the forum and there are many of them, but I couldn't find anything that for BI 7.0 and really clear help for me. Sorry to ask a question that been asked before.
    thanks.
    Raiine

    hi rainnie,
    check this link t oload master data in BI 7
    Re: BI 7.0 flat File extraction
    as you are using SAP defined infoobject you can start from the creation of datasource.
    text format for the flat file is
    LANGUAGE,INFOOBJECT,TEXT
    EN,0EMPLOYEE,RAINNIE
    You have to create ,infopakage, transformation ,dtp for both the attribute and text.
    hope this helps
    cheers
    Sunil

  • Loading Excel data with custom format applied

    Hi,
    I have an Excel File as source with the custom formatting applied to the data in it.
    For Eg. value 64 has special formatting applied so as to display it as 0064.
    BODS loads only the actual data as 64 and though I expect to load the formatted data(0064).
    Is this an expected behavior of BODS?
    DS Version : 14.1.2
    Thanks.

    No. If you define file format as flat file and define the field type as char then you can load all the formatted data like 0064 into DB. If you use excel then excel will remove leading zeros. This is excel functionality. or you can define the input file as CSV file and change the format of the field.
    Thanks,

  • Loading Master Data with compounding attributes

    Hello All,
    I have a characteristic, "Commission Code", compounded to "Product" and "Commission Code" is an attribute of the InfoProvider, "Sales Rep".
    Now, I'm not able to load data into the master data for "Sales Rep" from a flat file because as I get the same sales rep with two different commission codes I get an error caused by "duplicated keys":
    below an extract of the flat file which goes in error :
    SalesRep (key)     ///     CommissionCode     ///     Product
    1000                    ///       10%                      ///    ProdA
    1000                    ///        20%                      ///     ProdB
    how to load the master data in the proper way ? Where I'm wrong ?
    Thanks in advance.

    Hi ,
    Sales rep infoobject should be compounded by commision code. I think you will get the compound of commision code (product) as well in the compound.
    This will make the records unique and you would be able to load same sales rep with two different commision code.
    So your key then would be sales rep, commsion code and product together.
    Hope it helps,
    Regards,
    Sunmit.

  • Loading master data with date-fields

    Hello,
    we are loading with the extractor 0crm_mktelm5_attr data to the data target 0crm_mktelm (infoobject).
    The fields "from" and "to" are initial in psa. But the Update in the master data abort with the failure:
    "Invalid "to" date '00000000 ' " and "Invalid "to" date '00000000 ' ".
    The data-fields in psa are initial, and in other BW-Systems, we have not problems with the extractor 0crm_mktelm5_attr and initial date-fields.
    Have any body an idea??
    Thanks
    Murat

    Hello Shashank,
    thanks,
    the Infosource.mapping was false.
    regards
    Murat

  • Error While loading the data with OLIBW7

    Hi Guys,
      while we are loading the set up tables we are getting the following error in OLIBW7 transaction "Error determining rate: foreign curr. MYR local curr. PHP date 23.02.2007"
    I asked around the functional consultants and they informed that Currency Exchange Rate is not being loaded to D53 at all.
    Can any one let me know how to fix this problem....
    Thanks in advance

    Hi
    did you get the solution for the issue you got while doing the setup for Sales orders.
    "Error determining rate: foreign curr. MYR local curr. PHP date 23.02.2007"
    thanks in advance,
    Bhaskar.

  • Loading of data with different granularity and its reporting

    Hi gurus,
    Please help me with this problem. We are designing a cube based on some input requirements.
    Say for example, we are trying to build a infocube which will have to be drilled down by customer © & material(M). We have 3 input datasources (Flat files) with 3 different granularities.
    First 2 rows in the below are salescustomer. Next 2 rows are SalesMaterials sold and the last row as salescustomermaterial.
    Customer     Material      Sales
    C1          -          $100
    C2          -          $200
    -          M3          $300
    -          M4          $400
    C1          M3          $500
    What is the reporting result when the query is run for sales drilled down by customer  C1 ?
    Please help !

    Hi Kapardhi,
    Based on your description it seems that you will three updat rules and in the cube you are going to  have three characteristics Customer material and sales.
    Now it depends upon the time characteristics of the cube if you have mapped from all the three data sources same type of time caharacteristic.
    make sure that the time characteristic from all the datasources should be at the same level.
    Suppose if  use 0calday in the cube and update it from the same type of date from all the datasource like "creation date".This will make the data in the cube atthe most grnaular level adn proper aggregation.
    After this you will get the following type of data in the cube for C1
    C1 M3 900.
    So when you drill down bt cuatomer you will get 900.
    Hope it helps
    Thanks

  • How can I load data with Scripts on *FDM* to a HFM target System????

    Hi all!
    I need help because I can´t find a good guide about scripting on FDM. The problem I have is the next one.
    I have on mind to load my data with data load file in FDM to a HFM target system, but I would like to load an additional data using an event script, ie after validate. I would need any way to access to HFM system though FDM Scripts, is it possible??
    If so, It would be wonderful to get a data from HFM with any Point of View, reachable from FDM Scripts in order to load or getting any data.
    I´ve looking for a good guide about scripting in FDM but I couldn´t find any information about accessing data on HFM target system, does it really exist?
    Thanks for help

    Hi,
    Take a look at the LOAD Action scripts of your adapter. This might give you an idea.
    Theoretically it should be possible to load data in an additional load, but you need to be very careful. You don't want to corrupt any of the log and status information that is being stored during the load process. The audit trail is an important feature in many implementations. In this context it might not be a good idea to improve automation and risk compliance of your system.
    Regards,
    Matt

  • Loading huge file with Sql-Loader from Java

    Hi,
    I have a csv file with aprox. 3 and a half million records.
    I load this data with sqlldr from within java like this:
               String command = "sqlldr userid=" + user + "/" + pass
                        + "@" + service + " control='" + ctlFile + "'";
                System.out.println(command);
                if (System.getProperty("os.name").contains("Windows")) {
                    p = Runtime.getRuntime().exec("cmd /C " + command);
                } else {
                    p = Runtime.getRuntime().exec("sh -c " + command);
                }it does what I want to, load the data to a certain table, BUT it takes too much time, Is there a faster way to load data to an oracle db from within java?
    Thanks, any advice is very welcome

    Have your DBA work on this issue - they can monitor and check performance of SQL*Loader
    SQL*Loader performance tips          [Document 28631.1]
    SQL*LOADER SLOW PERFORMANCE          [Document 1026145.6]
    Master Note for SQL*Loader          [Document 1264730.1]
    HTH
    Srini

Maybe you are looking for