Date to Calendar Week in Update Rules

Hi Experts,
Does anyone of you know how/where BI/BW do the mapping when translating date in to a week in update rules?
Thanks in advance,
Rose

Hi Kazmi and Ram,
In Update Rules, in Time Ref tab, we can specify the source field e.g. posting date,  to get the calendar Year/Week time characteristics.   My question is where does the update rule get the week basing on the source date?
This question is brought up to me because week days can be different from country to country.  e.g. in US  it is sunday to saturday and in Norway it is Monday to sunday.  If we do reporting that consolidates data from US and Norway and probably and use week as part of that report, then we have an issue.
Can you please let me know how then the update rules mapped the date to week.  If you have similar issues, can  you please let me know how you address it?
Best Regards,
Rose

Similar Messages

  • Need help in assigning date to a field in Update Rule.

    Dear all,
    I am stuck with a small problem but could´t find a solution. I need to fill a date field (Last Movement date)  in the update rules. Currently it is being filled correctly. I need to just enhance the code in ELSE part, that is if i don´t find a relevant date in a look up ODS, i need to assign a future date i.e 99991231.(31.12.9999). When i write the same thing in the ELSE, RESULT = 99991231, the date is not filled. it is showing blank.
    Any help would be appreciated.
    Regards,
    Srini

    Hi,
    If you are assigning the value directly, mark it in single quotes.
    For example: Result = '99991231'.
    This will work.
    Regards,
    Yogesh.

  • Using "Master Data Attribute of" in the Update Rule

    Hi,
    In my update rule of, i want to replace the master data attribute of my characteristic instead of using its source characteristic. For example. <i>InfoObject ZSTORECODE</i> has an attribute <i>ZSTORENAME</i>. My objective is to use the Store Name instead of a Store Code.
    I initially thought of using <i>"Master Data Attribute of"</i> in the update rules. However, I always end of with having an error of <i>"No Values."
    </i>
    Hope you guys can help me with this!
    Thanks,
    Raomon

    DATA: V_NSTC_SN2,
    V_KFC_COSTC LIKE RSGENERAL-CHAVL.
    V_KFC_COSTC = DATA_PACKAGE-KFC_COSTC.
    CALL FUNCTION 'RSAU_READ_MASTER_DATA'
        EXPORTING
          I_IOBJNM                      = 'KFC_COSTC'
          I_CHAVL                       = V_KFC_COSTC
    *   I_T_CHAVL                     =
    *   I_DATE                        =
    *   I_FLG_WHOLE_TABLE             =
          I_ATTRNM                      = 'NSTC_SN2'
      IMPORTING
    *   E_STRUCTURE                   =
    *   E_TABLE                       =
          E_ATTRVAL                     = V_NSTC_SN2
        EXCEPTIONS
          READ_ERROR                    = 1
          NO_SUCH_ATTRIBUTE             = 2
          WRONG_IMPORT_PARAMETERS       = 3
          CHAVL_NOT_FOUND               = 4
          OTHERS                        = 5
    RESULT = V_NSTC_SN2.
    Another Example Code:
    index on infoObject

  • Convert Date to Calendar week in Query Designer

    Hi experts,
    Is it possible to convert date to week in the query designer?
    Thanks in advance for your help.
    Best Regards,
    Rose

    Hi,
    Can you please explain more about virtual char you mentioned?
    What i am actually doing is i am using a formula variable (getting the value from customer exit) and i based the calculation of other keyfigures basing on this value.  The input value.. (data type date ) does not filter my query output.. it is only purely used for calculating other keyfigure values.  The data types (Dimension Settings ) available in formula variable are only quantity, amount, pice and number, date and time..  there is no week there.  So currently I am using the date.  If I can convert date to week then.. I can make my query a lot simpler.
    Thanks for your reply...
    Regards,
    Rose

  • DATE FIELD SET TO NO UPDATE IN UPDATE RULES

    DATE FIELD SET TO NO UPDATE IN UPDATE RULES :
    hi friends,
    i have a keyfigure(custom) of type date , but while creating the update rule it is automatically set to
    no update and i have no option to change it ,
    could any one suggest me how to handle this..
    thaks,
    raky.

    Hi Rakesh,
    select "source chracteristics" radio button and MAP the date field which you have in your infosource though the color will be gray after selecting the radio button but system will allow you to map that field (I mean do not care about gray color).
    Hope this will help you.
    Suneel

  • Master Data lookup in Update Rule problem

    Hi all,
    I am currently having a problem loading data to an InfoCube using flat files.
    The architecture is as follows:
    1) The source of the data is a flat file
    2) The data is loaded thru an Update Rule and is of type Full-Update
    3) The Update Rules determines the Profit Center using the Master Data of the WBS-Element
    4) The data is written in an InfoCube
    This solution however does not always work as planned. In the following situation a problem occurs:
    1) The flat file contains WBS-element RD.00753.02.01, which has a Profit Center attribute value 8060
    2) When I load the flat file, the PC value 8060 is written into the row in the InfoCube, which is correct
    3) Then I change the master data of the WBS-element by setting the Profit Center attribute value to 8068
    4) I run the Attribute Change Run
    5) Then i load a flat file again, which also contains WBS-element RD.00753.02.01
    6) The master data attribute value should now write the value 8068 into the InfoCube. HOWEVER, this is when the evil occurs. BW does not write a PC value of 8068, but it write the value 8060. This is wrong.
    Why does BW not take the newest version of the Master Data to performe the attribute value look-up? Or why doesn't BW write the correct Profit Center into the cube?
    Thanks,
    Onno

    Hi Ricardo,
    The debug via PSA simulation of the update indicates that the CORRECT Profit Center value is to be written into the InfoCube.
    However, if I check the contents of the cube (after the load has finished) using the request-id the WRONG Profit Center value is shown. This indicates that the correct Master Data is used, however the update of the Cube is wrong. Why does this happen. the load is of type full-update, so should add a new row in the cube using the value in the data from the UR.
    Onno

  • Function module in Update rules

    I want to derive Fiscal period/year from Calendar day in update rule. i know i can do it through the formula, but i want to know if there is any function module that i can use. please let me know if i can use any function module in the update rules and where can i find it. i also need function module to convert into Calendar week and Calendar month
    thanks
    Laura.

    Hi,
    derive period :http://www.sapdevelopment.co.uk/fmodules/fms_fiscalyr.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa00f6493111d182b70000e829fbfe/content.htm
    http://www.erpgenie.com/abap/functions.htm
    Happy Tony

  • Assigning time dimension in update rule

    Hi
    I have a fundamental question -
    What exactly is meant by creating a time dimension on a cube based on a particular date (eg- Received date)?
    We have billing data coming into the cube.. so what exactly happens when you say the billing data should be based on Received date?
    Should I assign the billing amount KF to Received date time characteristic in the update rule? What does it do with the data - how does it bucket it?
    Also, what does it mean when you say assign calendar month to say, Load date?
    Thanks
    Riya.

    Hi Riya
    Let me take your question step by step and club similar questions together
    1) what does it mean when you say assign calendar month to say, Load date
    Well this means that you need to put a routine for 0CALMONTH.
    RESULT = sy-datum+4(2).
    sy-datum would internally come as system date in the form of 20080327.So this little routine will pick 03.
    2) What exactly is meant by creating a time dimension on a cube based on a particular date (eg- Received date)?
    This is similar to saying billing data should be based on Received date .
    Well this means that all time charecteristics like 0calday,0calmonth,0calweek etc need to be mapped to Recieved Date.This is how data will get bucketed(vitual bucketing) - for example you use 0calmonth so all orders with recieving date this month will be bucketed today and will show up in ur query if u have a variable for getting data for this month.
    Automatic time conversion will be done(in BI 7.0 this happens for both DSO and Cube.Perhaps in 3.5 you need to use a formula for the ODS).
    Do not map any key-figure to Received date time characteristic .You should get Received date directly from Data-source.
    I hope this helps you to understand this.
    Regards
    Samarpita

  • Error in activation of update rules.

    Hi,
    I get an error - 'IC=0PP_C02 IS=2LIS_04_P_MATNR error when checking the update rules' while activating the update rules in BI content. Rest all the data flow is activated except update rules.
    Can anyone throw some light on this?
    Thanks & Regards,
    Manisha

    Hi ,
    Check the update rule.
    In that there are two routines.
    In the first one Goods being processed & 2nd one as well , there is syntax err.
    /BI0/APP_O010 doest exist.
    Mostly it is fetching some data from some dso in this routine.
    So it should be activated.
    Then update rules will be activated.
    Regards,
    Devina

  • Issue with Update Rules

    Hi,
        I am working on IM  (Inventory Management), following the steps as in " How to Handle Inventory management Scenario In BW ". I installed all objects from Business Content that are required for IM like Infocube(0IC_C03) and three communication structures related to datasources 03_BX,  03_BF, 03_UM.
       I initailised the material stock using 2lis_03_BX and I compressed the request without marker update(uncheck the check box). I can see the data in infocube.
       When I am trying to load the material movements 2Lis_03_BF, my data is comming into Infocube, In the manage I can see 0 records are added.
       When I check the monitor and details, here I can see upto transfer rules data is coming but in update rules I cant see any data.
       I checked the routines in update rules they are satisfying the condition.
       Any help would be highly appreciated and rewarded.
    Regds
    Dave.

    Thank you all for your replies:
    <b>Narendra</b> - I will continue to debug start routine and update routines.
    <b>Teja</b> - Not all records have stock category 'V' or stock type 'V'. The start routine filters out some records, but the majority of the records are passing through the start routine. In the monitor 'Details' tab the message is Number of records changed from X to (X - Y), and then 0 records added to fact table.
    <b>Nagesh</b> - yes, all records have a process key assigned.
    Thanks in advance for any additional comments,
    Mark

  • ABAP needed: New Value/Old Value in Update Rules

    Hi all
    I'm updating some attributes in IObj by ABAP routine. Is it possible to get not only new value of attribute but the old one to compare them?
    Is it possible to get others attribute old and new values?
    I'll illustrate it with example.
    Say, IObj has 3 attributes:
    0ACC_GRP
    0DT_FROM
    0DT_TO
    if NEW value of 0ACC_GRP <> OLD value of 0ACC_GRP then
    new 0DT_FROM = SYSDAT
    new 0DT_TO = old 0DT_FROM
    else
    new 0DT_FROM = old 0DT_FROM
    new 0DT_TO = old 0DT_TO

    My case quite simple I guess.
    I got 0CUSTOMER infoobject and appended it with several time-dep attributes. After it my Update rules were deactvated.  I got error message with prompt to fill out FROM_DATE, TO_DATE as key fields in every attribute (time-dependable and none time-dependable) while was trying re-activate Update Rules.
    So, what's wrong with that? What I supposed to do with all those to/from date key fields  in my Update Rules??
    Edited by: Gediminas Berzanskis on Jul 2, 2008 3:44 PM

  • Which way is better to reverse a key figure sign, update rule or KF prop.?

    We are trying to reverse a key figure sign and have got two options:
    1. In Update Rule by using formula to make this key figure * 1-, or
    2. In key figure property of query design mode, there is a checkbox of "Reverse +/- Signs".
    Which one is better for the above two options?
    Thanks
    Message was edited by: Kevin Smith

    Hi,
    1. In Update Rule by using formula to make this key figure * 1-, or
    A: If you want to update data permanently in Data Targets then go for update rules.
    2. In key figure property of query design mode, there is a checkbox of "Reverse +/- Signs".
    A: The data is not updated in Data Targets but while displaying in Reports it will display the sign.
    That is upto you and business requirements.
    Thanks
    REddy

  • Update rules installation error for BI statistics

    Hi all,
    I am trying to activate the update rules for the BI statistics cubes and am getting the below error.
    "Object Update rules CSE83E58JTY9E8RQFR74SB5P3: Error installing the Content version
    Message no. RSO431"
    I am able to install the cubes and info sources/data sources but not the update rules.
    Our system is on below versions:
    SAP_BW     701     0004     SAPKW70104
    BI_CONT     703     0014     SAPKIBIIQ4
    Please guide if you have come across into the same.
    Thanks,
    Ramana

    I think you're going to have to open an SAP Message for this issue. There is an OSS Note that perfectly matches the description of the error you're getting, but because you're on BI 7.0 EHP1, the change in that OSS Note is already made in the affected Class and Methods.

  • How to get the hierarchy in update rules

    i want to update the material hierarchy to the open hub data file
    i create a update rule(transformation)
    and i want to get the node name at the last level of the hierarchy tree above the material level
    how can i do this?

    no
    for example
    now we have maintain the hierarchy of material like this:
    026(level 1)
    -026/100(level 2)
    -026/200(level 2)
         |-026/20010(level 3)
         |---800501234(level 4)
    in this hierarchy tree,the material 800501234 is in the level 4
    and i want to get the last level hierarchy node above the material
    for 800501234,the hierarchy node is 026/20010
    so
    i want to export the data like this:
    hierarchy id      |        material
    026/20010        |        800501234
    how can i do this?
    Edited by: Yang Zelphar on Mar 25, 2009 5:03 AM
    Edited by: Yang Zelphar on Mar 25, 2009 5:04 AM

  • Update rules - Activation error - in cube 0PAPA_C02

    Hi All,
    When i am activating the update rules of 0PAPA_C02 cube, i am encounting the following error for key fig "Headcount Change FTE Employee".
    Empty or invalid formula 8RFPFLULBJGBAO07IDMZGMPXR.
    Please let me know your thoughts.
    Thanks & Regards,
    Eswari.

    Hi,
    And also make sure that <b>all</b> target fields has proper maapings. i.e either a direct assignment with source field,or routine or formula or constant. Some times sytem shows a routine as update method but blank routine. It happens after,when you include a field to data target or coping the update rules.
    Most of the time, you can solve this type of error by studing very carefully the existing mappings(routines,formulas).
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • LVT Keyboard button not working on ideacentre B520

    When I press the Orange LVT button on my Lenovo B520 keyboard it's bringing up the Windows 'Computer' screen instead of the Lenovo Vantage Technology Center (LVT) facility. Any feedback on how this can corrected would be appreciated please.

  • Object-oriented APEX. Best practices.

    Hello, in my company we are developing quite big application in Apex. At the beginning we saw Apex as a very developer friendly application, but now we have problem with it. Our application has about 100 pages, most of them are not only reports but a

  • Compare arrays

    Hello all, I am new to labview and i am trying to compare two arrays to see if they are equal. What i am trying to do is read cell values from excel and move them into an array. Then i would like to compare that array with a constant array in my labv

  • Change Phone Number Format

    Can we change phone number format from "US" to "Australia" phone number format?

  • Polyphase and balanced sorting

    please could any one help me in findind source code in java for polyphase and balanced sorting thx for advance