Change 0calmonth format in update rule !!!

Hi ,
I am loading the data in to ODS from a flat file and the value for 0calmonth from file is Jan/2006. I want to change the format to 01/2006 when i am loading the data in to ODS. i know i can do this update rule but i do not know how to write the code or use some formulas..
Please advice !!
AC..

Hi AC,
The code would be similar to this:
Data: V_Mon(3), V_Mon_num(3), V_year(4), V_calmonth(7).
V_Mon = Comm_structure-calmonth+0(3).
V_year = Comm_structure-calmonth+4(4).
V_calmonth
Case V_Mon.
When V_Mon = 'Jan'.
V_Mon_num = '001'.
When V_Mon = 'Feb'.
V_Mon_num = '002'.
Endcase.
Concatenate V_Mon_num V_year into v_calmonth.
RESULT = v_calmonth.
Bye
Dinesh

Similar Messages

  • How to change techn. name of update rules

    hi, all,
    is it possible to rename update rules, or, instead, to copy them under another techn. name(complete, not only a row)?
    Can anyone help me?
    best regards
    neven
    Message was edited by: Neven Terziev

    hi Neven,
    it's possible to copy update rules between data targets, but the technical name is generated by system (alpahnumeric). so if you just want the name changed, perhaps you can copy to another target and then copy back by specify the data target in 'template'. or not sure if you can use the data target itself as tempate. can specify more your consideration to change the name ?
    hope this helps.

  • "Master data attr. of" un change source of update rule.

    hi,
    What is the importance of following in "change source" (characteristics) in update rules.
    1. master data attr. of
    2.initial value
    3. Source chars
    4. constant
    When and why these are used.
    Thanks in advance.
    Regards,
    Avneet

    Hi Avneet,
    Lets say Material group is an attribute of 0MATERIAL. You cube contains Material and also Material Group as a separate characteristic (not as navigational attr) becasue you want to store the value of material group as it was during the time the transaction happened.
    But here you transactional data coming from the source brings Material values, not values of Material Group. So in the update rule for Material Group, you can specify "Master data attribute of" 0MATERIAL. What the system will do is take the value of 0MATERIAL on this record and populate Material Group taking the value that is present in Material Master data.
    So if Material = M100 and Material Group is MG01 in master data, it will supply MG01 to Material Group char in the cube.
    Hope this helps...

  • Update rule--transformation

    Hi,
    i am working on BI 7.0. i was  having problem in creating proper transformation with routines so i followed following path. please let me know if i am correct since there was no error in loading still data validation is to be done
    STEPS:
    1> created transformation by right click on 3.x update rules.
    2> Now used the rule routines as defined in thios transformation in my new transformation created from 7.0 DS by copy and pasting the codes at appropiate place in routine. haven't tried for start routine.
    3> followe the usual 7.0 flow IP>transformation>target(in my case cube). was able to succesfully load data.
    Hope i am not making some blunder
    waiting for some quick response whether i am on right track or not so that i can use it in other cubes/
    Thanks
    Prashant

    Hi,
    be carefull for startroutine! The parameter names have changed from 3.0 update rules to 7.0 transformations! data-PAckage gets to data_source.
    But the rest look ok.
    Regards,
    Juergen

  • Update rules deactivated only has to open the system..

    Hello Experts,
    -- ODS and update rules are already in Production.
    -- I have made changes to the ODS by adding new Infobjects.
    -- activated the update rules.
    -- When the ODS and update rules are transported. Update rules get deactivated
    -- And a message 'Data target changed, suggestion for the update rules generated'
    Detailed message:
    Data target was changed. Suggestion for update rules generated
    Message no. RSAU287
    CAUSE&
    The data target has been changed (for example, InfoObjects have been added or deleted).
    System response
    The update rules have been set to inactive.
    Procedure
    Check the proposal for the update rules: Newly added key figures or characteristics are updated directly using the source-InfoObject from the InfoSource if the InfoSource contains these InfoObjects. Otherwise, the calculation type is set to 'Routine'. Newly added key figures, data fields, or attributes are set to 'No Update'.
    The rules for key figures and for characteristics must be checked and adjusted appropriately.
    Detailed message end.........
    -- Do not get activated by retransporting. or doing a fresh request of the update rules.
    -- Currently the only I can see by opening the system and activating them. Wondering if we have any other alternatives to activate these update rules for the ODS
    Any solutions:
    -- Wondering if I am missing some procedure to transport.
    -- Please feel free to post your views / suggestion in case you had a similar situation before.
    Many thanks in advance,
    BWer
    Message was edited by: BWer

    BWer,
    If you collect your transport in a big lump of a single transport, the tranport connection may not organize it in the order of the proper dependency, so it is best to split it to separate transports as stated above to ensure the proper dependencies. 
    To fix the issue right now, you can either
    1) take another transport through of only the updated / activated update rule or
    2) if you know what you are doing and if the client is okay with it, open the system, activate the update rule and when prompted for a transport, create a new one and go to SE10 to clean up that repair transport by deleting the subtasks. 
    I would probably recommend option 1 for you.  I only do option 2 if it is an emergency and there is no transport window for another week or longer or it just simply cannot wait.

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • Change description of update rule between ODS'es

    Hi!
    In a BW 3.5 system I have the following problem: I cannot change the description of an update rule between two ODS'es.
    When creating such a rule the system automatically generates the technical name and takes the description of the source ODS for the naming of the update rule. Afterwards I have changed the description of the ODS. I have deleted the old update rule and recreated it. When selecting the source ODS from the F4 picklist the new description can be seen. When the source ODS is selected and the update rule is generated, the old description has appeared again however.
    Does anybody knows how this is possible and what can be done about it?
    Best regards,
    Hans

    have you tried regenerating an export DataSource out of the ODS?

  • Why data in PSA doesn't  change when update rule routine is modified?

    Hello guys,
    why data in PSA is not changed after I modifiied the update rule routine. I created a infopackage which is only to PSA, but it shows me any change. If I changed this infopackage to the one which is assigned to "PSA firstly, and then to Infoobject", then I saw the changes in infoobject, but in PSA, still nothing changed.
    I can't figure out the reason. Any hint is welcome!
    Thanks in advance.
    Regards,
    Liying

    HI..
    1) PSA data is like of source system data
    2)Update rules are how you update your keyfigures to Data Tragets.
    Since you have put upto PSA that is the first data staging in BW so there wont be any change of the data even if you write routines at update rules.
    Hope it is clear
    Reg
    Ram

  • HT4007 I Just updated Apeture to 3.3.2  Now there are some photos that I receive a message..."Unsupported Image Format"  Are there lost?  can I retrieve them?  can I change the format?  Help...?!?

    I just updates Apeture to version 3.3.2 after installing Mountain Lion.  There are some photos in Apeture that now say, "Umsupported Image Format".  Are these lost?  Can I retrieve them...how?  Can I change the format so that I can see them again?  Help?!?

    Are these images "Raw" images? What is the make of your camera?
    Check the version of the Digital Camera RAW Compatibility Update that is installed.  The version of the raw support is shown in the About panel: from the main menu bar:
         Aperture > About Aperture
    Download the latest Raw Update from here:
    Digital Camera RAW Compatibility Update 3.14
    If you have the latest raw support installed, but Aperture does not recognize the format, try to register the raw support for your camera with the launch services db, see this post by Alan Roseman:
               Re: Aperture 3 preview of raw file greenish
    But also read the following post, that explain how this is supposed to work and to correct the typo in the command
    In short: Quit Aperture, open the terminal, paste the  follwing text in (all in one single line) and hit return; then reboot the system.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -R /System/Library/CoreServices/CoreTypes.bundle/Contents/Library
    Regards
    Leonie

  • Update Rules - Characteristic - cannot accept changes

    Hello,
    I have a strange issue when I work with Update Rules (I know, old method, no my fault, customer has a solution like this). I need to assign the characteristic, so I open the rule details tab, I select the characteristic and click "method" button. The pop up "change source" appears. Not the matter I select, constant, routine or whatever, when I accept it and when I go back to the rule details tab again, I cannot go further. When I want to accept all of the changes, the pop up with "change source" appears again and again. There is only a possibility to cancel the changes. Did you see something like this before?
    A.

    Hello,
    The solution was to use the program SAP_FACTVIEWS_RECREATE to recreate the views.
    A.

  • Changing update rules to source MASTERDATA ATTR OF

    Hi gurus
    I am trying to change the update rules of char which is in a cube from source char to masterdata attr of
    but i cant change the rules  as i  press f4 it is saying that no values found.
    Any possible solution
    Thanks in advance

    Hi,
    you can only use this option if the characteristics in the target is present in the attribute of any of the characteristics present in the source data package i.e. data source ...then only it will give you that char as the option.
    Thanks
    Ajeet

  • No changes in Update rules even after changes in Communicatin struct

    Hello All,
    I have made changes to a transfer structure i.e. I added a field in the Communication structure and mapped in the transfer structure. I was expecting the update rule to be deactivated after this. But the Update rule is activated. Because of this I am not able to accomodate my new infoObject in the update rule. What might be the problem?
    Regards,
    KP

    Hi KK PP,
                     Update rules are only pertained to Data targets,These helps to map the object to the Infosource using a rule.If you change the transfet structure or communication structure it will not effect update rules.If you add some object to your data target then update rules will be changed.
    Regards
    Karthik

  • Update Rules changes from 1 ODS to another disappear upon activation

    Dear Experts,
    We have encountered a situation whereby we have an update rule from ODS feeding a field update to another ODS. 
    This update rule change works correctly as I have debugged it and you can see the resultant changed in the new (40) table.  But upon activating this change, the field change disappears.
    Can anyone provide an explaination and how I can go about fixing this ?
    Thanks
    Craig

    Hi,
    If the data source support deltas and we load the data into ODS then the update type for the keyfig. Amount and the quanty always Choose as "Addition" .So you change the update type for that KF as Addition .
    Thanks & regards,
    venkata sharma.

  • Transfer Rule Routine: Change date format

    Can anyone help me with regards to writing some ABAP code in a transfer rule so that I can change the format of a date (from 04/01/06 in the PSA) so that it's wrtitten as 01.04.06 into the cube?
    Many thanks in advance,
    Matt
    Message was edited by:
            Matt Potts
    Message was edited by:
            Matt Potts

    Hi Matt,
    so you are not using a standard date field or any other characteristic that refers to 0date, aren't you? If that is the case, just do the following in a routine:
    replace all occurrences of '/' in tran_structure-<your date field> with '.' into result.
    If you are using a standard date field which is always displayed as dd.mm.yy you need to convert it into the internal sap value which is yyyymmdd. You can achieve that by calling the fm CONVERT_DATE_TO_INTERNAL in a routine:
    call function 'CONVERT_DATE_TO_INTERNAL'
    exporting date_external = tran_structure-<your date field>
    importing date_internal = result
    exceptions date_external_is_invalid = 1.
    if sy-subrc <> 0.
    a action needs to be done, because the date was not valid.
    clear result.
    endif.
    kind regards
    Siggi

  • Update rule changes

    hi
    is there a way to compare previous & currently active Update rules ...somebody has changed the update rules and i have no clue what changes have been made ..
    i need to check changes to 0recordmode
    thanks

    Hi Koops
    Check the Update routine as well as field wise routine
    Click on any field in the update rules it will take to you to the another screen there u will click on the field  wise code u will know.Normally for our seek when ever changes are made @ that time we will put a comment along with the date.
    Hope it will clear.If not let me know for further.
    Regards
    RMK
    **No need to say assisgning pointz is the only way of saying thanx IN SDN**

Maybe you are looking for

  • Workflow step Mail with purchase order number is not executing

    Hi All, I created aworkflow which gets triggerd when a Purchase Order is created. I have mentioned the BUS 2012 event 'Release Step Created' as starting condition for the workflow. My workflow is triggering correclty. I need to send a mail to the ini

  • Web service : timezone problem

    Dear All, i have create a webservice that required user name, password, nonce and create datetime (i.e. in soap header, add <wsu:Created ValueType="http://www.w3.org/2001/XMLSchema/dateTime">2007-05-16T16:38:03Z</wsu:Created>) **where xmlns:wsu="http

  • Change Default Print Attributes

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page

  • LSO -  How to reverse historised courses to firmly booked

    Hello Friends, Well we have situation where I'm supposed to move a course to Firmly booked. I have tried to change the delimit date through T Code - RE_RHGRENZ1, however I can only extend the date and also allows me to edit participants but the statu

  • My Surface Pro looks tiny in Photoshop

    I just got the Surface Pro 2 and have the Photography program. The font and icons are terribly small in Photoshop. Lightroom looks great so I don't understand what is the problem with Photoshop.  It makes it difficult to use.  I heard of other people