KEY FIGURE: Effective purchase order value & K.F "No. of Purch.Orders"

Yo my fellow Gurus,
Got a problem, when executing listcube on the Info-Cube 0PUR_C01 - I see the data/amounts in the column for "Effective purchase order value" / 0ORDER_VAL. But when running the query with the Key Figure I just get "0"
I tried the option of adding the Process Keys not allocated in the Routine list of keys, yet still nothing has popped in the query, and heres the routine after  additonal keys added:
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
INCLUDE RS_BCT_MM_UPDATE_RULES.
$$ end of global - insert your declaration only before this line   -
FORM compute_data_field
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
  USING    COMM_STRUCTURE LIKE /BIC/CS2LIS_02_SCL
           RECORD_NO LIKE SY-TABIX
           RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING RESULT LIKE /BI0/V0PUR_C04T-ORDER_VAL
           RETURNCODE LIKE SY-SUBRC
           ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line        -
fill the internal table "MONITOR", to make monitor entries
IF ( COMM_STRUCTURE-PROCESSKEY = '001' or     "Bestellung
    COMM_STRUCTURE-PROCESSKEY = '011' or
*change of keys
    COMM_STRUCTURE-PROCESSKEY = '015' or
    COMM_STRUCTURE-PROCESSKEY = '005' or
    COMM_STRUCTURE-PROCESSKEY = '025' or
    COMM_STRUCTURE-PROCESSKEY = '041' or
    COMM_STRUCTURE-PROCESSKEY = '051' or
    COMM_STRUCTURE-PROCESSKEY = '061' or
*change of keys
    COMM_STRUCTURE-PROCESSKEY = '021' or
    COMM_STRUCTURE-PROCESSKEY = '004' or       "LP
    COMM_STRUCTURE-PROCESSKEY = '014' or
    COMM_STRUCTURE-PROCESSKEY = '024' )
    AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
    AND COMM_STRUCTURE-ORDER_VAL <> 0.
    perFORM LOC_CURR_CONVERT
           USING    COMM_STRUCTURE-ORDER_VAL
                    COMM_STRUCTURE-DOC_DATE
                    COMM_STRUCTURE-ORDER_CURR
                    COMM_STRUCTURE-LOC_CURRCY
                    COMM_STRUCTURE-EXCHG_RATE
           CHANGING RESULT.
if the returncode is not equal zero, the result will not be updated
    RETURNCODE = 0.
else.
    RETURNCODE = 4.
endif.
if abort is not equal zero, the update process will be canceled
This seems to be also the issue with my other Key Figure "No. of Purch. Orders" except here it the just comes up blank / 0 . This is to some the number of pos per plant for the month. So it's not storing anything but running via an interface and then with the aid of the routine loading the count into the cube:
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:   ...
$$ end of global - insert your declaration only before this line   -
FORM compute_data_field
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
  USING    COMM_STRUCTURE LIKE /BIC/CS2LIS_02_HDR
           RECORD_NO LIKE SY-TABIX
           RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING RESULT LIKE /BI0/V0PUR_C04T-NO_PUR_ORD
           RETURNCODE LIKE SY-SUBRC
           ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line        -
fill the internal table "MONITOR", to make monitor entries
  if COMM_STRUCTURE-HDRPROCESS = '01'         "Bestellung
     AND COMM_STRUCTURE-no_hdr <> 0.
result value of the routine
    RESULT = COMM_STRUCTURE-no_hdr.
if the returncode is not equal zero, the result will not be updated
    RETURNCODE = 0.
  else.
    RETURNCODE = 4.
  endif.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
$$ end of routine - insert your code only before this line         -
ENDFORM.
Please advise the way forward.
Thanks,
Ishaam

what do u want?

Similar Messages

  • Virtual Key Figure in report giving  values

    Hi Gurus,
    I have created a Virtual Key Figure on a Multi Provide and completed all necessary user-exit coding.
    When I run the BEX report for a single material my Key Figure is populating correct values.
    But when I run the BEX report for multiple material and if the key figure value is zero it is putting  star and due this my result is giving me the wrong value.
    Please suggest me what I need to do to correct this.
    Thanks,
    Saleem.

    Hi,
    Thank you for your responace.
    But still i am getting the same error. While displaying on BEX report some rows showing * and some rows showing ERROR after the value.
    Please advice me .
    Thanks,
    Saleem.

  • Restricting key figure based on - INPUT value or value in TRANSACTION data

    Hi fellow BWers, hope you can help with this report requirement.
    Manual input variable : 0CALMONTH.
    <b>Is it possible to restrict a key figure (0amount) like this on-the-fly: </b>
    If 0calmonth in input variable > 0calmonth in transaction data
       then restrict 0amount with 0calmonth from input variable
    else restrict 0amount with 0calmonth from transaction data
    It's a must-have requirement to do it 'on the fly', not in the ETL.
    Thanks very much,
    AG

    Thanks a lot, I get the idea
    In order to get the 0calmonth from the transaction data, i need to :
    1. display the lowest granularity in the rows (so that calmonth is unique)
    2. then use formula variable with replacement path on the infoobject 0CALMONTH to get the value from transaction data?
    Is this correct?
    If yes...since the user does not want the lowest granularity in the report, he wants result pr. profit center, this will happen if I take 'No display' on the characteristics :
    Profit center A ||  20
    Profit center A ||  30
    Profit center A ||  10
    Profit center B ||  15
    <b>Question</b> How do I get the total pr. profit center, despite having all the other characteristics (hidden) in the row?
    Thanks
    AG

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • SIS some key figures are displaying zero value

    Dear all
    Following Key Figures in Standard SIS tcode like MCTE, MCTA, etc. are displaying as zero
    Incoming Return
    Credit Memo
    Credit memos qty
    Returns items
    Returns Quantity
    MC+6 is displaying all the key Figures as zero.
    What may be the reasons
    Regards
    Vipin

    Dear Babubala
    In MC26 I am getting below warning for Incom. Returns, Gross returns, Net Returns 1, Net Returns 2, Returns items, Returns Qty
    Incom. returns: Updating with date field VDATU can be set up restrictively only
    Message no. M!208
    Diagnosis
    While updating the key figure Incom. returns the data field MCVBAP-VDATU for the period determination is used.
    Updating via MCVBAP-VDATU causes a different result online as for statistic data set up. Online, MCVBAP-VDATU is filled with the current date (SY-DATLO); during set up, however, it is filled with the creation date MCVBAP-ERDAT of the item.
    By using VDATU document changes you can see in the statistics that this type of 'delta updating' cannot be reproduced by a statistic data set-up. During the set-up the data is updated in different periods as in online updating, thereby causing the change history to be lost.
    Procedure
    Be certain that this is the type of updating you want.
    In MC26 the Credit Memo Update Setting is VD Billing document and Type of Updating is A     Cumulative updating
    while as in Credit memo pricing procedure there is no subtotal. How to maintain it in Pricing procedure and in MC26 because in MC26 after pressing the change button the system is displaying the following message "Maintenance of SAP standard updates not allowed"
    Regards
    Vipin

  • Can we suppress the key figure from the filter values?

    Hi,
    I have one restricted key figure.
    1) Is it possible to hide the key figure for calender year 2009 and display it for year 2010. I mean can we hide the column dynamically?
    2) Can we grey out the key figure from filter criteia so that it cannot be checked for specific calender year?
    eg if i have 3 key figures as One , Two , Three.
    In filter , it will show One , two ,  three  and the checkbox . Is it possible to grey out the checkbox so that user will not be able to check it or tick it?
    Regards!

    Hi,
    1) I don't think we can hide it dynamically.
    2) I dont think we can give such a option in the query designer.can you explain what is ur exact requirement.
    Regards,
    Ravi

  • Code to sum up multiple record key figure values from one ODS to another OD

    We've got two ODSs: ODS1 and ODS2 and ODS1 feeds data to ODS2 through update rule.  In ODS1, multiple records could contain one same doc records and we would like to sum up a key figure value for these multip records with the same doc number in the update rule and populate a key figure (a sum-up value or total value) in ODS2 for this doc number.  We wonder how the code would look like.
    Welcome the valuable input!
    Thanks

    Hello Kevin,
    In this case there is no need of a code. As in ODS2, contract number is a key and PO is not a part of key, you can have update type for the key figure as "Addition". Value for that particular key figure will be added for all the recordes with same contract number irrespective of PO number.
    Hope it helps.
    Regards,
    Praveen

  • Update open sales order values. - Update rule.

    Hi
    In library below information given for the updation of open sales order value in infostructure. Can any one please explaing how can we configure below two rules.
    An update rule describes the set up of the open sales order value, i.e., the open sales order quantity. The second update rule describes the reduction of open sales order value, i.e., the open sales order quantity by the corresponding deliveries.
    http://help.sap.com/saphelp_47x200/helpdata/en/96/dfec3410b5f563e10000009b38f83b/frameset.htm
    Path: LIS - SIS - How the key figures are calculated - open sales order value.
    Thanks in advance.
    Raj.

    Any inputs please.....

  • Key Figure units in Fact Table - Error

    All -
    When a run a report off of a cube, some row display 0 when there are corresponding values in my cube.  The report doesn't agree with LISTCUBE.  I have ran transaction RSRV on my cube and tested the "Key figure units in fact tables of Infocube" and I get an error saying that 1380 units are missing from fact table.
    <b>Diagnosis
    In the fact table /BIC/FEU_FRCTS records have been found that contain values other than zero for key figures that have units, but that have no value for the unit of the key figure. Since the value of the unit has to correspond to the value of the key figure, this inidicates an error when the data was loaded. The values of the units have not been loaded into BW correctly. Choose Details to display the incorrect records.</b>
    Does anyone know what this error means? How do I solve this problem?
    Thanks,
    Nyrvole

    hi Nyrvole,
    as the message said, you have keyfigures with unit but the unit value not filled, click 'detail' as suggested to check which keyfigure(s) involved, that go to rsd2 type in that keyfigure and see which infoobject unit is used, then check transfer/update rules how this unit infoobject mapped, try correct the values and upload again.
    there is option 'repair' in rsrv but think in this case it can't fix the error, just try.
    hope this helps.

  • Key Figure 0AMOUNT in buckets per CALMONTH

    Hi all,
    I have 2 key figures 0AMOUNT and PO value which I am using in columns.
    They want to see 0AMOUNT in buckets per 0CALMONTH. So I dropped 0CALMONTH also in columns.
    Now I can see 0AMOUNT per 0CALMONTH buckets wise. It also comes for PO value.
    Can I avoid the 0CALMONTH buckets for PO value. They want to see only for 0AMOUNT in buckets.
    Please assist.
    Thanks,
    Praveen Tati

    Can't be done, unless you create selection for each month for AMount

  • Problem with Overwrite for Key Figures in ODS

    A bit of a long explanation, but the problem is not so complicated...
    We have an ODS containing contract line items.  Each line item has a key figure "Total Contract Target" that is marked with update type "overwrite".  We have modified the extractor that delivers data for this ODS so that the key figure is set to a value from the contract header.  Since we don't want the key figure to be duplicated if there are multiple line items on the contract, the user exit for the extractor modifies only the first line item delivered.
    For example, overall contract target value = 100.  Contract has 3 line items.  Contract target value for line item 1 is 100.  Target value for line item 2 and 3 is 0.
    This all works fine for initial loads, but there is a problem with the business content extractor for deltas.  Whenever a single change is made, it delivers three sets of  records.  Continuing the example, we would receive 9 records for the contract (3 sets of 3 line items).  Each of the three sets contains the same records.  Only the first set has the correct contract target value.  Since the ODS key figure is set to overwrite, our method of setting the total contract value in the first record doesn't work, because the extractor delivers duplicates so the duplicates overwrite the total with a 0.
    Would setting the key figure for total contract value to update type "additive" solve this? (I'm concerned that additions would be made if there were only a change to characteristics and not the key figure).  Thanks for your assistance.

    Since we ought to post solutions to problems we discover for people who search this forum...
    Solved this by modifying the customer exit for the extractor to set the key figure for the first contract line item encountered AND for all subsequent records with the same contract number / contract line item.  Since the key figure in the ODS is set to overwrite, this makes sure that the last record written doesn't overwrite the key figure with 0.

  • Disaggregation of Key figure not in proportion at monthly bucket

    Dear Expert,
    Please find the below case.
    Here Key figure 2 is disaggregated based on Key figure 1 (Calculation Type P) also we maintained Time based disaggregation K.
    The issue is - if you check total, it is 13 for both key figures as shown in below screen shot.
    But region wise (Detail level) if you checked, it is not in 1:1 proportion and it is causing problem for us.
    For example Region 2 having value in KF1 as 2 for Week 11.2015 but after disaggregation it got nothing on KF2.
    (The reason is Key figure 2 is having value in week 12 and week 13 and nothing in Week 11)
    We tried 2 different approach to get 1:1 proportion in Monthly bucket, but it could solve our problem.
    Approach 1-After  Key figure2 calculated in Weekly bucket, Reset Key figure 2 at total level in Monthly data View and enter the Total of Key figure 2 at Total level in Monthly bucket.Check the result at detailed level.
    But in this case it is calculated for week 10, 11, 12 and 13 as 0,  9, 3, 1. (We want Key figure2 as per original calculation i.e it should be 12 and 1 in week 12 and 13 respectively)
    Approach2 -
    Approach 2 - Add another New Key figure as Key figure 1 Total- which sum the Key figure1  at detailed unit at Month level and then disaggregation of Key figure2  based on this new KF.
    Its working for this scenario but different scenario is not working.
    For example- here region 3 and 4 affected.
    If disaggregation at Month level is corrected, our issue will be resolve.
    Waiting for your feed back.
    Thank you
    Sachin

    Hi,
    In Planning Area u2013 Key Figure settings,  did you try to use  u2018N - No disaggregation in timeu2019  for KF2  key figure ?
    This will mean that copying will occur in technical periods of the storage bucket profile and not the way it happens now.
    Other  option:
    Now, you storage bucket profile and also the planning bucket proifile  are  in Days/Weeks/   .Months 
    Is it necessary for your user to view data in daily buckets ?  Can the user view  the data in weekly buckets only (and not in daily buckets) ?
    Your planning bucket profile can be in Weeks/..Months .
    This way your displayed data will be in weekly buckets.
    Regards
    Datta

  • Problem with Non-cumulative key figure.

    Hi all,
    I am facing the problem with the Non-cumulative Key Figure (Quantity). I have created and loaded data to the non-cumulative InfoCube. <b>This cube is defined by me to test the non-cumulative key figure.</b>
    <b>In BEx query the non-cumulative key figure and cumulative key figure (Value change) both display same values, i.e. non-cumulative key figure contains the same values which we have loaded for cumulative value change. Non-cumulative key figure is not calculated based on associated cumulative key figure.</b>
    I have done the following while defining the non-cumulative InfoCube:
    1. Created a non-cumulative key figure which is associated with a cumulative key figure (value change).
    2. Loaded data to non-cumulative InfoCube from flat file.
    3. Compressed data in non-cumulative InfoCube after the load.
    Note:
    1. Validity area is determined by the system based on the minimum and maximum date in data.
    2. Validity determining characteristic, 0CALDAY is the default characteristic selected by the system.
    Is there any other settings to be done?
    Please help me in resolving this issue.
    Thanks and regards
    Pruthvi R

    Being a non-cumulative KF, total stock is automatically takes care of that.
    Try putting all the restrictions which you have included for total receipts and total issues, for eg,  restrict Total Stock with the movement types used in Receipts as well as Issues.
    Check and revert.
    Regards
    Gajendra

  • 0IC_C03 - some key figures have unassigned Store location

    Hi,
    I try to implement Inventory managment scenario in BW.I follow the How to document How to handle inventory management scenarios in Bw.
    Now I uploaded data to BW, the sume of key figures as general look good but I have problem with key figures,which work with value in currency, this key figures(e.g 0ISSVS_VAL, 0VALSTCKVAL) are not assigned to Store location 0STOR_LOC, values of these key figures have this characteristics Unassigned (#), unlike key figures with amount value e.g. kg etc are assigned to store location. So there is problem that is no possibility to compare material stock in currency and amount.
    Do you have any experience how to solve this issue?
    I work with BI 7.0 version and use standard object from BI content without modification.
    Thanks
    Petr
    Edited by: Petr Jedlicka on Aug 12, 2011 2:30 PM
    Edited by: Petr Jedlicka on Aug 12, 2011 2:31 PM

    Hi,
    Inventory values are captured at site/plant levels not the storage locations. These values are caputured using 2lis_03_um datasource. When you create a material, materials are created as per site. 0MAT_PLANT.
    when there are movements of sales in the inventory, sales take place thru site not storage location. So sloc will not get updated in the transaction. where as when you move stock from one site to other site, there may be on storage location for all site or one sloc for one site. So for qtys you will have sloc.
    Thanks
    srikanth

  • Key figure with pre-calculated aggregation

    Hello,
    I have to model a key figure with a pre-calculated aggregation, that is, soruce flat files contain explicit values for months, quarters, halfyears and years. The key figure is a percentage (service quality) and the corresponding company department provides me with results for all aggregation levels.
    I think that this case can be modeled with one InfoCube for each aggregation level and a Multicube but I have to create a high number of InfoCubes (aprox. 180).
    I can get the formula that department uses, but it's possible on BW to change standard aggregation (SUM, MAX, MIN)?
    Thanks in advance and regards,
    Alberto Garcia.

    Hi Alberto,
    One of the ways of doing it could be -
    add another field (char) to your cube called at "value Type" & assign different values to it depending upon the time value.
    say Monthly  - value type 1
        Querter  - value type 2
    & so on ...
    keep filling the same key figure.
    at the time of reporting restrict your key figure accordingly with the value type. ( say need only montly key figure value restrict value type to "1")
    hope it helps.
    VC

Maybe you are looking for

  • REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found

    Hi guys, I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report and i m also use formula column in my report. can any body help me why it's coming. following code is used in formula column plz check

  • HELP! disk error on PC

    My laptop develop an error while installing my BB software disc. I remove disc but my system could not boot again. I switched it of n on it again but remain on d error page. I took my pc 2 b fixed, it was discovered is a hard disk problem develop fro

  • Deleting templates from Pages.

    I want to delete self created templates from Pages. I go to Application Support/iWorks'09 but all that is there are 'content' and 'frameworks' folders.   I am running on Lion 10.7.2.  Please can someone assist me.  Thanks

  • Adding Custom Property in Catalog

    Hi all, trying to add a new property in the product and SKU level. I have added the below code in custom catalog.xml. And the below SQL script, i have got by invoking the following like in . In dyn/admin , atg/commerce/catalog/productcatalog , genera

  • Crash...recurring theme here?

    I just upgraded to CS6. I also installed the patch from the Adobe Downloads page (16.0.1). I don't have any problems opening the program, but a few minutes into working on a document, it just crashes. It isn't even the same process that crashes it ea