Negated Values in Cube

Hi everybody,
i have a really big problem while using SEM-BPS.
We have developed a tool that writes data into a transactional cube by using the RFC-functions of SEM-BPS, which are:
- API_SEMBPS_SETDATA
- API_SEMBPS_POST
- API_SEMBPS_REFRESH
The datasets are correctly written into the cube. I can view them either by using a query or by looking directly at the fact-table of the cube.
My problem is, when i make a second run with the tool and  write data with a different key into the cube, these
datasets are also written correctly, but the first datasets in the cube are gone. The data that were written 
at the first run are now negated in the fact-table.
It's very urgent, so please, anybody give me an answer
for this problem!!!!
Thanks in advance!
Greetings
Patrick

Patrick,
You might want to look into the flat file load whitepaper.  We implemented that functionality in SEM-BPS and if I remember correctly, there were options to add the loaded records as incremental new records or as new resultant values (i.e. Add or Replace...).  I did read the whitepaper but it was over a year ago and I did not actually implement the code personally so a little hazy on the actual functions called.
Cheers, Mary

Similar Messages

  • Negative values in cube

    Hi
    I am using BI7.0.Our design is we extract data from R3 to ODS ->Main cube -> backup cube. we are taking the all data from main cube to backup cube and delete the contents in main cube. There is reason for doing this. I observed now in the backup cube, there are negative order qty values. even same thing observed in Main cube. But however there are no Negative values in ODS. How this could happen ? Every day the delta comes from R/3 to ODS. Main cube picks this data in delta. and the Backup cube DTP picks this data daily in Full Load from Main cube and deletes the contents in Main cube.
    Is it system finds no data in target, so it sends negative values ? ( not all records are negative,  but only few of them)
    Thanks for any advice..
    Venkat

    Hello,
    What is the delta type for your datasource?
    Thanks

  • Issue with Negative Value for Total valuated stock 0VALSTCKQTY.

    Hi Experts,
    we loaded the Cube with datasources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM.
    We mapped the quanity field from 2LIS_03_BF in transformation either into Key figures "Quantity issued from valuated stock" (0ISSVALSTCK) or "Quantity received into valuated stock" (0RECVALSTCK ) of the cube.
    For obtaining the Total Valuated stock, we used the Key figure 0VALSTCKQTY. This key figure is having the Inflow and Out flow values as 0RECVALSTCK and 0ISSVALSTCK. When i tried to check the content of 0VALSTCKQTY, the key figure  0VALSTCKQTY is not present in the infoCube content. I understood that the value for this key figure would be calculated at the time of query execution with the formula
    { Last obtained Valuated stock + (Received Valuated Stock u2013 Issued Valuated Stock ) }.
    The issue is the first records in the query is obtained with negative value for the total valuated stock 0VALSTCKQTY even though the values of Received Valuated Stock  and  Issued Valuated Stock are with Zero.  Could any one please help me on how the first record in the query is with a negative value eventhough the inflow and out flow fields of it are with Zero.
    Many Thanks in advance.
    Jeswanth

    Hi Srini,
    I observed an interresting reason for the stock being with negative in the first record.
    Issue : While executing the BEx report, we have the first record with a negative value.
    Let me explain with an example
    Material  : XYZ
    Plant      : A
    Date of Stock Initialization for data source 2LIS_03_BX -
    >  12th April 2009.
    So on 12 Th April 2009 consider that we have a stock in store with a value of 2640.
    Then we have loaded wih Data source 2LIS_03_BF for all Historic Movement types.
    At the time of query execution we will have the first record with a negative of available stock present on the day of initialization .
    So, as we have initilized the data source 2LIS_03_BX on 12 th April 2009, we have at that time a stock of 2640 in availability.
    Exactly with the same value of 2640, we are having a negative value i.e. -2640.
    and also one more point to be noted is ...as we have initialized the data source 2LIS_03_BX on 12 th APril 2009...it has created a
    opening balance of 2640 on the day of initiailization i.e on 12 th April 2009 in infocube....(which is an extra record...)...so if the previous record of 12,04,2009 is having some value in it..then it will get added to 2640 EA..which will give incorrect stock
    So in the query the records will appear in the below following manner
    Calendar Day     Total stock                                                                Received stock                                          Issued Stock         
    28.12.2005 --->  - 2640 EA
    29.12.2005 --->    2000 EA                                                                       640 EA                                                        0
    10.04.2009 --->      0                                                                                0                                                               2000 EA      
    11.04.2009 -
    >    0                                                                                0                                                                0          
                                 (For making
                                  the earlier record of  initilization to 0  a negative value -2640 EA is created in the first record )
    12.04.2009 (Initializtion day) --->  2640 EA                                                 0                                                                0
    13.04.2009 
    the day before initialization the total stock will be 0 due to the negative effect introduced by the first record and from the day of initialization the records will be the accurate values...  On 12 th april 2009 we can see that a stock of 2640 is brought into the total stock. In fact if there is no negative value i.e. -2640 in the first record then ...the value on 11.04.2009 will be 2640 Ea and this will get summed up with the Opening balance of 2640 EA created by 2LIS_03_BX on the day of intitialization. So on 12 .04. 2009 the total stock will be shown as 5280 EA...so in order to prevent the double value only we observed that the first record is created with the negative of available stock present on the initialization ...to make the record before the day of initialization i.e. 11.04.2009...to be 0...so that from 12 th April 2009 ..will start to see the actual total stock in the query result...
    This is happening only if we use  both the data sources 2LIS_03_BX and 2LIS_03_BF  for loading into BW.....
    If we load alone by 2LIS_03_BF ...then as 2LIS_03_BX is ruled out in the loading...then no negative of available stock will be created ...because there will be bno opening balance created on the day of initialization.....and the opeing balance available will be flowing into consecutive records due to the movement types and 12 th April 2009 will be shown with avaialable total stock of 2640 EA.
    Kindly let us know your opinions on this...
    Thanks.
    regards,
    Jeswanth

  • Negative Values for Stock Quantity in BI

    Dear Experts,
    I have a report based on Inventory Management Multiprovider which is executed to check the Valuated Stock Quantity for single day input entry. ( Valuated Stock Qty is a non cumulative Key figure with Inflow as Quantity Received into Valuated Stock and outflow as Quantity Issued from Valuated Stock )
    So Valuated Stock Qty for a particular day = (Quantity Received into Valuated Stock till that day) - (Quantity Issued from Valuated Stock till that day).  So i think, checking the cube data in BI will not help to resolve the issue.
    Issue: : When I execute the report in BI for some dates I am getting Negative Values for Valuated Stock Quantity which is wrong output.
    Can this issue be resolved by filling set up tables and loading it to BI, say for last month?
    Could you please suggest any other solutions available?
    Also it will be helpful if you could explain what needs to be analyzed in ECC side (with T Codes)
    Thanks in advance
    Vinod

    Hi Vinod,
    try these transactions on the ECC side:
    MMBE to view stock of a material
    MB51 to view all material documents for your selection (i.e. material)
    The business content stock reporting in BW is mainly using datasource 2LIS_03_BF for movements and 2LIS_03_UM for revaluations. For this to work you will have to have all material documents loaded into your cube.
    Also have a look at this How To paper if you haven't yet.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Best,
    Ralf

  • Negative values in Inventory report

    Dear Guys,
    When we are doing BW Inventory, we are facing one problem. I have searched previous topics. There some guy gave the same problem. But there is no answer. I am giving the details as per his words:
    We have been struggling to reload our Material Movements cube (0IC_C03). We have been following the SAP documentation titled 'How to handle inventory management scenarios in BW'.
    Our initial loads (Stock Opening Balance, Movements Init, Revaluations Init) have all been successful and validation looks good. The problem is that when the first delta UPDATE runs we end up having many negative inventory quantities appearing. We are not sure what we could be doing wrong.
    Compression settings are as follows
    1) Run stock opening balance (2LIS_03_BX)
    2) Run statistical setup for 4/3 only for Revaluations and Movements (2LIS_03_BF, 2LIS_03_UM)
    (Compress with Marker option NOT CHECKED)
    3) Load Stock infoPackage 2LIS_03_BX with 'Opening stock balance checked ' (ie: not full update)
    (Compress with marker option NOT CHECKED)
    4) Run delta init for Movements
    (Compress delta init with marker option CHECKED)
    5) Run delta init for Revaluations
    (Compress delta init with marker option CHECKED)
    6) Setup job control in logistics cockpit
    7) Run delta update for Movements
    Compress delta with marker option NOT CHECKED
    8) Run delta update for Revaluations
    Compress delta with marker option NOT CHECKED
    The issue seems to occur with steps 7 and 8. The initial time we do these steps we get zero records and everything looks good. Then the next day the same steps occur in our nightly process chain and then the data is bad with negative values.
    Any ideas what we could be doing wrong?
    Thanks!
    Regards,
    Vivek.V

    Hi Vivek,
    I had exactly the same problem.
    In my case the issue was with the configuration of material movements in R3
    In the R3 IMG goto Materials Management/IM & Phys Inventory/Movement Types/Copy, Change Movement Types execute
    Select movement type (enter)
    select all Movement Types say 101 to 901
    Look for column header "Stat. Relevant" and make sure they are set to 2 or 3. If they are set blank the movements are not picked up by the extractors

  • In query  display  sales negative values

    Hi Friends
    Iam Exicuting query based on these selection parameters
    Sales Org: 5360
    cal Month/Year: 04.2007 to 04.2008
    When am exucuting the query above parameters some values display negative values like
    04.2007 month display -39
    07.2007 month display -253
    the key-fig is sales turnover Qty display negative values
    in BW side cube also display negative values
    why display the negative values
    anybody help me

    Check the Source where data is coming if it is negative value. If source has positive value, in Cube also it should be positive.
    Whatever value you have in your infoprovider, it will display in query.

  • Balance Sheet negative values

    Hi all,
    I've already implemented the IC 0FIGL_C10 and V10, and the business content queries that are available show negative values for equity and liabilities, but they are positive in the R3 balance and therefore the totals are not correct.
    Any idea about the reason of this ?
    Thanks!

    Hi Pablo,
    First of all, look at the cube content and check if balances have the same sign as in R/3.
    If no, then look at transformation in transfer and/or update rules.
    If yes, then look at the query definition.
    I see here:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/026940c3c7bf49e10000000a1550b0/frameset.htm
    that Balanve is determined as 0DEBIT – 0CREDIT.
    Since in R/3 liabilities and equity are positive, then the formula above will give you negative amounts.
    You either change the query definition or revert the sign for liabilities and equity during a load into the cube.
    Though, there is a certain logic in SAP representation:
    assets are treated as positives while liabilities and equity as negatives.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov
    Message was edited by: Eugene Khusainov

  • Why Negative values are entering in to fact table.

    Dear All,
    After Data File uploaded. The Fact table is showing Negative values.
    Can any body give solution.
    And in DataManager->Financial Process>FX Restatament (Is running Succussfully)
    But Currency is not getting translated.
    Please help.
    Thanks,
    Satish.

    The reason the values are negative may be caused by 2 items.  The first is the default method by which BPC store information; BPC is designed to store values based on the natural sign.  So, if a Revenue account is positive in the Data File, and the Property "ACCTTYPE" is INC, the value is stored as a negative number.  When an expense value is loaded to an account with "EXP", the value is stored as a positive.  LEQ are Negative and AST are positive. (CREDITS and DEBITS storage)
    BPC then uses tables and measures to report the account based on type correctly in the Excel interface. This is how  BPC is designed. 
    There is also the CREDITPOSITIVE = YES / NO that is part of the Data Transformation instructions, and if this is setup incorrectly, you may store the reverse signs from the data file that is loaded. So this may need to be reviewed as well.
    As for the FXTranslation, I assume you have rates in the RATE cube to use in the translation process. You will need to verify that the RATETYPE property is filled in for the accounts you wish to translate? DId you process the FX script logic and the RATE script logic prior to running FX.
    Hope this helps.
    Edited by: Petar Daniel on Dec 10, 2008 2:20 PM

  • Negative values 10.00- needs to be -1000 in dtp in open hub?

    Hi all,
    Can anyone help me to write a routine on negative values!!
    in the cube it is 10.00- but when we export it it should be  - 1000. The decimal places should be also be multiplied by 100 and it should apply for the company code india only!!
    pls help me n this!!
    Thanks
    pooja

    Hi,
    I guess you just need to multiply the value with 100.
    You need to write:
    If COMM_STRUCTURE-COMPCODE = INDIA
    VAR = COMM_CTRUCTURE-VALUE * 100
    RESULT = VAR
    eles
    RESULT = COMM_CTRUCTURE-VALUE
    I hope it will help.
    Thanks,
    S

  • Deltas fetching negative values

    *hii,this is regarding deltas fetching negative values,where as when i use full load data is  matching perfectly but when when coming to deltas it is picking negative value bcoz of cancel indicator X  it is showing negative value, so the data is mismatching.
    this is based on pp cube (production planning)
    for eg:                       cancelindicator  orderno   conformqty         targetqty
                                                                 205674                  100             100*
                                               X                 205674              - 50              -100

    hi thanks for ur reply
    datasource is 2lis_04_p_arbpl
    if we take any document  we will get cancel indicator i.e space and X . In space indicator we r getting correct data and data is matching in r/3 but X indicator  gives negative values so if we aggregate them we r getting wrong data  and it is getting zero.
    it is happening in deltas only not for full load if we take full load the data is correctly matching but in deltas it is getting wrong values
    if we delete set up tables and we load data then it is getting correct data up to that date but from next day onwards deltas are getting negative values and data is not matching

  • MC.9 - Negative value

    Hi Sapians,
    While running MC.9 report we are getting negative value for a particular stock even when there is a positive stock. But in MB5B we are getting the correct output.
    By debugging we found that there is a negative value in S032 table. But we could not understand how we got negative value in S032.
    Could any one through some light on where it could went wrong?
    Thanks,
    Sukumaran.E

    Hi Sukumaran,
    Negative stocks in your case is due to inconsistencies in the Info structure tables.
    The report from MC.9 is calculated on runtime, taking the current stock position from stock database tables and adjusting the goods receipts and issues backwards. The goods movement data are from the info-structure tables. If there are inconsistencies in this data, you get negative stock figures or different figures compared to MB5B report. (MB5B runs the same way but uses MSEG table instead of ifo structure tables). This explanation is for understanding the cause of the problem.
    The remedy is, updating the info structure table. This update is for correcting the data in info-structure tables. You can delete the entries in these tables and re-build them. It has to be done during a period when there are no material movement postings happening - like after office hours or holidays.
    You can refer to SAP note 79083 for detailed step by step procedure for updating info structure tables.
    Hope you are able to correct the inconsistencies!!
    Best Regards,
    Siva

  • Key Figure value in Cube showing with extra zeros

    Loaded data into the cube. When I display the result
    Key figure values are showing with 2 extra zeroes and Quantity value shaowing with 3 extra zeroes.
    Original value
    Price, Quantity, Sales Rev
    2     1     2
    3     2     6
    When display value from cube
    Price, Quantity, Sales Rev
    2,00     1,000     2,00
    3,00     2,000     6,00
    Why zero is showing? How can I display the original value? In PSA, values are showing correctly.
    Thanks,

    Hi,
    These are the zeroes after the decimal places. this is the property of the key figure.
    In your report you can change the display value. In the display properties of the Key figure under the number of decimal places make it as 0. This will remove the zeroes.
    Hope it helps.
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Oct 16, 2008 10:35 AM

  • Stock Posting List - Negative Value when Different Currency in PO

    Hi experts,
    We would like your help on the following scenario.
    A Purchase Goods Receipt PO and a Purchase Invoice are added in SAP 9.0, on the same date, in a different currency from the system's currency; system's is Euro and Purchase documents are added in JPY (Japanese xen), i.e. 300 JPY. When checking the "Stock Posting List" report for a number of goods that were purchased with the above documents, the report presents the line of the Goods Receipt PO with the value of 270 JPY, and the line of the Purchase Invoice with  a negative value, i.e.-15 Euro.
    Has anyone faced the same issue?
    Thank you in advance.
    Kind Regards,
    Vassilis Korolis

    Both queries have the default value of  "Only Posted Values for Navigation".
    As I was looking at this, I did realize the following though.
    Remember, I mentioned that my zcurrency_mand field has a Reference Characteristic of 0currency.
    Query 1:  The key figure that is being converted is tied to 0currency in the back end. (this is the query that works).
    Query 2:  The key figure that is being converted is tied to 0inv_curr in the back end.
    Both of the currency conversions are using zcurrency_mand.  Should query 2 be using a new variable similar to zcurrency_mand, but with a Reference Characteristic of 0inv_curr?
    If the answer is yes, I tried creating ZINV_CURR_MAND with Reference Characteristic of 0inv_curr, but am getting the following error when I try to save the changes to Query 2
    [E117(BRAIN)] Errors: Variable ZINV_CURR_MAND2 is not permitted for the target currency. 
    Thanks,
    Jennifer

  • How to enter negative value in a currency field

    Hi Experts,
    Please help me how to allow to enter negative value in a field on report selection.
    I created a currency field on a report selection using PARAMETERS.
    I can enter positive value in the field. But, I cannot enter negative value.
    SAP shows an error message 00 126 "Specify positive values only".
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
    However, I cannot do it on screen 1000 created by report program.
    Thanks,
    George

    Hi ,
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
        Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
    regards
    Prabhu

  • Apex 3.2 SVG Chart - How to plot Stacked Bar With Negative Values ?

    Currently Apex 3.2 Flash Chart (AnyChart 3.x) does not support Stacked bars with negative values.
    I try with SVG Stacked bars with positive values only, chart ploting works fine. When I add a new series with negative values (i.e -1) and I get a blank Chart region with no error.
    Based on this statement from Apex's documentation:
    *"AxisLine Indicates zero on charts that have negative values."*
    I appreciate your help on how to translate this statement into action ?
    (i.e how to override .Axisline class in CSS section ?)
    Thank you very much for your time.

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

Maybe you are looking for