SNP PR Deletion based on another key figure

Folks,
I want to delete Purchase requisition ( Distribution receipt - Planned) in APO-SNP based on the value of another key figure.
for example if the another key figure value is 1 in a particular time bucket, then i want the PR of that bucket to be deleted.
I have designed macros incorporting this logic i.e if another key figure value is 1, then make the Purchase requisition quantity as 0.
But when i execute this macro, system gives the  message " Error saving Transport requisitions to live cache" and PR quantity does not become 0.
I have also tried using RLCDEL but  it is not possible to selectively delete the PR using the value of another key figure.
Is there any method ( Macro or non-macro) through which i can achieve this ? Any inputs will be highly appreciated.
Regards,
Pawan.

Hi Pawan,
I assumed the macro solution should work...
A macro can create orders, so logically it should be able to delete. Unfortunately I can't test it now.
Could you please do the following?
if you delete an order manually in interactive, and refresh, what happens?
does your order come back?
If yes then the issue is not directly linked to the macro...
Then could you check  in SPRO - SNP global settings,  do you 'Heur: Order Update' being set to 'Delta Mode'?
If yes, then set it a "complete mode"
Thanks and Regards
Julien

Similar Messages

  • Exception color can not display at another key figure in BEx query desinger

    I have a report requirement, the user want to display the average price on each month ,such as:
    Jan.   Feb. Mar.  Apr. etc.
    100    105    104   95   ....
    and the user want to compare each other months with Jan's price.
    they want to display the exception color when the rise or down rate greater or less than 5%.
    Now ,I can only change the output structure such as:
    Jan.  Feb. Rate2-1                 Mar.  Rate3-1                 etc.
    100   105   (105-100)/100=5%  104    (104-100)/100=4%  ....
    Now I can set Exception on the formula Rate2-1 Rate3-1....
    But the Exception color can only display on Rate2-1,Rate3-1...
    and Not the Keyfigure Feb. Mar...
    I am using the BI 7.0 and the new Query Designer.
    Who can help me to solve this question .
    Thanks.
    Yours Youming.Zhao

    Hi,
    its simply not supported for BEx Analyzer. Exception reporting on another key figure is only possible for Web Reporting.
    Check this actual SAP Help Link:
    [Restrictions in the BEx Analyzer|http://help.sap.com/saphelp_nw70/helpdata/en/45/5038f28cce08d2e10000000a11466f/content.htm]
    Sorry that i dont have a better answer
    Cheers

  • Can I restrict a restricted key figure on another Key Figure ?

    Hi Experts,
    I tried to acheive this but was not able to do it.
    Can I restrict a restricted key figure on another Key Figure ? I have a restricted key figure named " No of Orders Completed" and I have a key figure " No of Repair Days". I want to only report on the orders which get completed in 5 days.
    So I want to restrict " No of orders completed" by key figure "No of repair days" = 5.

    Hello
    you can create a CKF (If you have RKFs created for No of days and orders completed) or Fomula (if you have selection created for No of days and orders completed) with the following condition.
    (No of days <= 5)*No of orders completed + 0
    this will give you No of orders completed for all the orders for which no of repair days <= 5.
    Do not forget to apply the exception aggregation on the newly create formula. Set exception aggregation as total and reference characteristic as order.
    After that creat a condition to hide all the records with 0 in the newly created formula.
    I think that should solve your issue.
    - Danny
    Edited by: Danny Matt on Jul 6, 2009 11:30 AM

  • Calculated Key-Figure based on Cumulated Key-Figure

    Hi BW-Community,
    I have problems defining a ckf based on a key-figure wich are marked as cumulated. I know this topic was discussed before
    but I did not find a acceptable solution yet.
    Here is my example (as it should be)
    *** KF1     KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           200%
    6            2           300%
    And this is the Output from BW
    *** KF1    KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           100%
    6            2           100%
    BW uses the not cumulated keyfigure-value instead of the cumulated value,
    I tried several things:
    1.) Use the class CL_RSR_WWW_MODIFY_TAB and redefine the method data_cell to do a manual calculation on the results. This works but
    it is very inflexible and restricted on WEb Template also the Excel Integration do not work properly.
    2.) Mark the CKF also as cumulated but this don't work either.
    My customer uses such calculation on almost every Query and Report so I need a practicable solution.
    I think the best way to solve this is in the staginf prozess, but i did not find a solution yet.
    Does anybody know a workaround, solution? We will put to NW2004s soon is there any chance that this will work
    in this release?
    Thank you in advance
    Greetings
    Timo

    Hi
    Thank you for the replies.
    I create a new CKF without percentage funktion but it didn't work. Same result as described in the first post.
    Even if i put only KF1 in a new CKF (e.g.CKF2  =KF1) the uncumuated value is shouwm
    Example:
    *** KF1    CKF2
    2           2 
    4           2
    6           2
    @ Structure
    I know that using structure is possible. But we cannot use structures, because we have a dynamic amount of characteristic-values (e.g. 0calday)

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • How can I show results in another key figure?

    Hi everybody,
    I am using BEx Analyzer 3.5 and there I have a key figure with the following entries in a table:
    40
    50
    60
    Now I want another keyficture next to the first one which shows me the result of the first one:
    40 | 150
    50 | 150
    60 | 150
    How is that possible in the query designer (formula) in BW 3.5?
    Thanks everybody

    Hi,
    Thank you for your help! I tried it with two key values. But it worked just by one.
    The other key value is the difference between two dates, for example 29 (29 days). It's not working with these key value. What can I do in this case? Should I can the value with the formular editor?
    Thank you for helping me

  • Restricted Key Figure base on another Key Figure

    Hi,
    I am now working on a Sales Analysis report.
    Now, I need to create a Key Figure with the following logic.
    If the Sales Amount = 0.
      value = 0.
    else.
      value = Sales Quantity.
    endif.
    How can I make it on the report level? or I can only make it on the cube level?
    Thanks in advance.
    Best Regards,
    Chris

    Chris,
        Create a formula and use the following definition.
    (Sales Amount <> 0)*'Sales Quantity'
    This should do the trick.
    Hope this helps...

  • Placing an exception reporting in a crosstable based on a key figure not "visible" in the crosstable

    Hello Community,
    I've come across the above question. As far as I've experienced, this is not possible. not with an exception reporting created in Query Designer, not in Analysis Office "Conditional Formatting".
    Who can asure my experience or (even better) share different experiences?
    Regards,
    Sarah

    I have no experience with this but...take a look at this SAP Note http://service.sap.com/sap/support/notes/852194 and could you try this option in the BEx query to see if it works:
    Hide (Can be Shown)

  • To delete and insert a new key figure in the cube

    Hi Experts...
                 How can I delete a key figure and insert a new key figure into a cube with data...? Should I be creating a new cube with the new key figure ?
    Thank you..
                Manohar....

    Hi
    Are you using Bi2004s
    yes you can delete,add,replace a key figure
    have a look at this blog for step by step procedure
    /people/mallikarjuna.reddy7/blog/2007/02/06/remodeling-in-nw-bi-2004s
    hope this helps

  • Use of key figure based on period

    Hello All,
    I have 2 key figures in my multiprovider, e.g. Actual Amount and Budget Amount.  I need to display one of the key figure based on period.  Reports have January to December columns.  Now, if current period is October, I have to display Actual Amount from January to October.  For future periods i.e. November & December, I need to show Budget Amount. 
    Can anoybody please provide a solution for this?  How should I proceed?
    Thanks and Kind regards,
    Ajay

    HI Ajay
    Looks like you are creating a Capital Forecasting report. In order to show amounts period by period what you need to do is
    - Create one key figure for actual amount which might be based on 0Amount key figure with Debit/Credit indicator as S. (If this is not the case then please do so according to your requirement)
    - Create one key figure for Budget amount (according to your requirement)
    - Create one customer exit "Formula" variable called actual indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 1 and the records for Nov and Dec will be populated with a 0.
    - Create one customer exit "Formula" variable called Forecast indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 0 and the records for Nov and Dec will be populated with a 1.
    - Create a calculated key figure that is defined as (Actual Amount)Actual indicator + (Forecast Amount)Forecast Indicator.
    - Create twelve restricted key figures with the CKF created in the previous step restricted with the month (Jan to Dec)
    - Add the above created twelve RKFs in the query.
    Regards,

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • Addition of new key figure in ODS

    Dear all,
    In ODS, delta is loaded everyday through process chain. Now according to business requirement, we need to add one more key figure in it. I don't have to map it with any of the R/3 field. Only i have to create update routine to assign value in it using already existing key figure.
    Can i directly add new key figure in the ODS? Will it affect my data present in ODS as well as daily delta load process?
    If i can do this, can i assign exact 'key figure' value for the existing data also?
    Please guide me for the same. We are using BW 3.5.
    Regards,
    Omkar.

    Hi,
    I am not sure that it is true that you need to delete data.  I am sure one can add a field to the ODS without deleting it.  The field will remain blank after creation, unless you fill it:
    1.  manually using a flat file for past data; mapping will work for subsequent data
    2.  Use a self reference if the value is already present in another key figure.
    The change may take a long time to activate depending on the following:
    1.  Size of the ODS
    2.  Existence of indexes.
    However,  as you are running a delta you need to be careful of the delta queue if you also intend to touch the datasource.
    Cheers....

  • Calculated Key figures using different key figures

    Hi All,
    I want to create a calculated key figure based on Actual and Plan.Actual values are coming from InfoCube,Plan values are loaded from Excel sheet into different key figure in another infocube.I've created a MultiProvider for these Cubes.Now I want to find the difference between plan and actual.So I created a calculated keyfigures based on the key figures.But the Query is giving error ..
    Then the connection terminated..
    Let me know how to do..
    Raji

    What is the error you are getting?
    First do this.
    In the query, filter on only 1 infoprovider. Check the KF's and see if correct and if you get the error. Then, do the same thing, for the other infoproviders. Once you get no errors that way. Remove the filter. See if the KF's are ok and no errors. Then do your calculation.
    Also, make sure in the definition of the KF's, you are filtering each on the right infoprovider. (For instance, KF1 has a filter on infoprovider1 and KF2 has a filter on infoprovider2.)
    hope this helps!
    /smw

  • Problem with using Key Figure inside IDT

    Hii Experts,
    I have created an Universe using Information Design Tool(IDT), in which i had created the Key figures whose value are calculated  based up on Date i supply and that value is Being Calculated fine according to my need.
    But Problem is that when i am going to use that Key figures value in further Calculation, its returning wrong value....
    Can anyone please help me, how can i use the Key figure's value in another key figure for further calculation inside the IDT.
    Thanks
    Prakash

    Hi Prakash,
    Can you explain what are you doing exactly and what you wan to do?
    Can you provide the expression you wrote? Which database are you using?
    Thank you
    Didier

  • Exception defined on a formula does not chande display for key figure

    All,
    I have an exception defined on a formula included in the key figure structure based on which the display for another key figure should change.  The display is changing for the formula and not for the key figure as i would like for it to do. 
    The setting of the exception is set to display on "following structure elements" and points to the key figure and is defined on the formula.
    This behavior is exhibited correctly when run through BI 7.0 Query designer portal however when executed using Analyzer both 3.5 and 7.0 version i am encountering this issue.
    Any help is appreciated.

    I believe you are using 3.x.
    Please mention the version of BW in the problem statement.
    If you dont want to use exception aggregation in the query the second option is setting this property in the backend for the keyfigure. But I believe that you are trying to set this for the CKF, so I dont see any other option to generate exception aggregation.
    I would like to comment on your reasons why you dont wnat to usee the exception aggregation.
    1. It is not working: If it not working, you should contact SAP for this. Exception aggregation is 20% heart of any query and it is very rarely used things in reporting.
    2. It is obsolete: I am not sure, if this is correct. There are many industries where you cannot built certain reports without exception aggregation. The simplest report of sales where you are asked to find the rate of the material from Total Sale and Quantity at aggregation level can not be created without exception aggregation. So this option is and will never obsolete.
    Please try using before aggregation.
    - Danny

Maybe you are looking for