Access to unmapped field of ODS in the update rule of CUBE

Hi Gurus,
I have 8 fields in ODS out of which only 5 are mapped to the characteristics in the CUBE. I have to write a start routine in the update rules of the cube. But, I need to access one field, which is in ODS but not mapped to characteristic in the cube.
So, is it possible to use that field in the logic of start routine. Or do I have to create a new characteristic in the CUBE for that 6th field also.
Thanks,
Regards,
aarthi
[email protected]

Hi
You certaily should insert your infobject field in the cube to populate it. After This you can choose if populate it by direct mapping or by routine.(start routine or transfer routine)
A classic example of start routine to populate infobject from master data
tables : /bi0/pcostcenter.
data : lt_data_package like DATA_PACKAGE occurs 0 with header line,
lt_costcenter like /bi0/pcostcenter occurs 0 with header line.
select * from /bi0/pcostcenter into table lt_costcenter.
lt_data_package[] = DATA_PACKAGE[].
loop at lt_data_package.
read table lt_costcenter with key costcenter = comm_structure-costcenter.
if sy-subrc = 0.
lt_data_package-/bic/zpcaccgh = lt_costcenter-/bic/zpcaccgh.
modify lt_data_package.
endif.
endloop.
DATA_PACKAGE[] = lt_data_package[].

Similar Messages

  • How to get the PSA name in a Start Routine in the Update Rules of a Cube.

    Hi all.
    I have an InfoSource that loads data directly in an Infocube.
    In the Start Routine of the Update Rules I need to retrieve the PSA table name for that InfoSource, to access it and check some data.
    I can't use the PSA name you seen in the DataFlow because it will change once the update rules are transported to another system.
    Please advice.
    Thanks!!!

    Hi,
    we do it as follows:
    first get the request ID:
    DATA: tp_request(30)   VALUE 'REQUEST'.
    FIELD-SYMBOLS: <wa> TYPE ANY, <tp_req> TYPE ANY, <tp_dtp> TYPE ANY.
    READ TABLE datapak ASSIGNING <wa> INDEX 1.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    ASSIGN COMPONENT tp_request  OF STRUCTURE <wa> TO <tp_req>.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    requnr = <tp_req>.
    then we get the table with
    SELECT odsname_tech FROM rstsodspart WHERE request = requnr.
    you may need to adjust this code, I've just pasted the relevant parts...
    another way is to get this info from RSTSODS where the different versions are maintained...
    let me know if you need further detail about this stuff...
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Filtering records using a start routine inside the update rules for a dmart

    Hi
    I am using a start routine inside the update rules. I want to filter out all records that have 0 in all three fields. My problem is that it not only filters these records, but also filter records with negative values, which I do not want. Only 1 field has a negative value, the other 2 have 0.
    I have tried:
    DELETE DATA_PACKAGE where  /BIC/ZBILLCONS = 0 and /BIC/ZBREVPRIM = 0  and /BIC/ZBREVSUBO = 0 .
      DELETE DATA_PACKAGE where ( /BIC/ZBILLCONS = 0 and /BIC/ZBREVPRIM = 0  and /BIC/ZBREVSUBO = 0 ).
    also tried:
    delete DATA_PACKAGE where /BIC/ZBILLCONS IS INITIAL and
    /BIC/ZBREVPRIM IS INITIAL and  /BIC/ZBREVSUBO IS INITIAL.
    The records are going to 1 cube and 1 ODS, I only have the start routine in 1 update rule. I  view the filtering in the PSA.
    Has anyone ran into this before?

    Try
    delete data_package where /BIC/ZBILLCONS = '0' and /BIC/ZBREVPRIM = '0' and /BIC/ZBREVSUBO = '0' .
    OR
    delete data_package where /BIC/ZBILLCONS EQ '0' and /BIC/ZBREVPRIM EQ '0' and /BIC/ZBREVSUBO EQ '0' .
    Good luck!

  • How to determine InfoCube name within the update rule start routine?

    We are attempting to delete all the records where all key figure values are zeroes. We have about 15% of such records and we really don't need them.
    We have yearly InfoCubes. We copy the InfoCube and update rules at the end of every year. So, we don't want to hard code any field names within the update rules.
    If I could determine the target InfoCube name within the update rule start routine, I can find out all the key figures dynamically. But, I don't see a way of finding out the InfoCube name.
    If you would share any ideas, I would really appreciate.
    Thanks.
    Sudhi Karkada.

    Hi Sudhi,
    I dont know if this is what you are looking for.
    if you want to delete a record from being inserted when all the Key figure values are ZERO then you can use a Update Routine for some characteristic in the below way
    If looking for the InfoCube:
    if COMM_STRUCTURE-KF1 = 0 and COMM_STRUCTURE-KF2 AND....
      RETURNCODE = 4.
    else
      RESULT = COMM_STRUCTURE-ChanracteristicObject.
    endif.
    If it is to an ODS / InfoCube in the start routine.
      DELETE DATAPACKAGE where KF1=0 and kf2=0 and .....
    Hope it helps.
    Regards,
    Praveen.
    ENDLOOP.
    Message was edited by: Praveen

  • Error while activating the update rules related to Inventory

    Hi,
    In standard Cube 0ic_c03, I am including a field 0MAT_DOC that is available in the transfer rules of 2lis_03_bx. And when I include that info object in the cube my update rules are getting deactivated.
    When I try to activate the update rules, I am getting the following error message:
    1. InfoSource 2LIS_03_BX is only set up for the initial run for non-cumulatives.
    2. IC=0IC_C03 IS=2LIS_03_BX error when checking the update rules.
    Requesting you to please guide me on how do I go about solving this issue.
    Thanks & Regards.

    Hi Ganesh,
    For implementation of inventory in the BW side, first you need to carry out following steps sequentially:
    1. MCNB: Filling set up tables for initial entry of stock balances from 2lis_03_BX
    2. OLI1BW:Filling set up tables for stock movements from 2lis_03_BF.
    3. OLIZBW:Filling set up tables for inventory revaluations from 2lis_03_UM
    Check the Business content cube 0IC_C03.
    Also check the document how to inventory management.
    For report install the business content report for the cube 0IC_C03 and check it.
    check this link for inventory
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Regards
    Pcrao.

  • Error while maintaining the Update Rules for the Infostructure

    Hi,
    I have added 2 new characteristics for the existing infostructure S9xx and executed the same. While maintaining the Update Rules for the same, system is giving the error message 1. "Field 'PARVW' unknown" and 2. Error generating program RMCX0011.
    Please guide me in resolving the issue.
    Thanks & Regards,
    Kumar.

    Hi,
    This is with reference to my earlier question that an error is occuring while maintaining the update rules for the existing Infostructure.
    Solution provider for this will be rewarded with good points.
    Regards,
    Kumar.

  • Added fields doesn't display in update rules

    I added new fields in the infocube and these fields are not getting displayed in left side pane of update rules to apply the logic. Can some one help me in this issue.
    Thanks in advance,
    Tony

    I assume you activated the cube once you finished adding the fields...
    Close your session, logout of BW and then open it again and check... It has happened to me... One of those things that doesn't make sense...
    Another thing would be to delete the update rules and create them again, check that fields show...

  • ODS Objects in update rules

    Hello,
    I'm using an ODS object lookup in multiple update rotines, Is there a way to list all the update rules that uses the ODS object.
    for (e.g)
    I'm looking up ODS 51 in the update routines for ODS 53 and ODS 56 and also in other update rules, I want to see a list of  all update rules that uses ODS 51.
    Please let me know if there is a way to do this.
    Thanks
    Krish

    Hello Krish,
    You can find this information by looking at a combination to tables:
    Lookup your ODS (tablename) in the program editor line of table RSAABAP. Then using the ABAP code id lookup the update rule id in table RSUPDROUT. For more information check out this link:
    /thread/229531 [original link is broken]
    Regards,
    Mahwish

  • Rule incorrect error in the update rule of standard infocube

    hi,
    In the standard Appraisal infocube(BW 3.X)
    i have added a new keyfigure field  and written a rule in the update rule to populate datas. whn i checked for sytax errors, saved and return to the update rule screen it displays a red status for tht keyfigure. when i place the cursor on tht traffic light it show the tip as  'Rule Incorrect'
    wht may be the reason.
    do any one have ideas abt this.

    hi sathish,
    i couldnt get u.; i am not familiar with  BW since iam working in BI. could u pls tell the steps involved in adding a  new keyfigure field to a standard cube.
    Actually iam not mapping this field to any of the field from datasource. i am populating data thru rule based upon the characteristic fields of the datasource.
    r u suggesting to add the field in transfer structure level and write a transfer rule. how to add a new field in the transfer structure.

  • Instaling the update rules problem

    Hi iam Installing  the std update rules.  like 0sd_co3 2lis_13_vdhdr by selctig grouping as before and instaling. its showing an error as>
    IC=0SD_C03 IS=2LIS_01_S263ERROR WHEN CHECKING THE UPDATE RULES ..
    CAN U PLS HELP ME FOR THE SAME. HOW TO INSTAL IT AS  I HAVE TO ISTAL AND ACTIVATE THE FEW MORE UPDATE RULES AS IAM GETING ERROR FOR ALL .ITS 3.5
    PLS DO IT ASAP

    Try to  activate your update rules btween 8ZSL_DS01 and ODS and cube.
    It seems your Datamart is not working properly for the datamart data source 8ZSL_DS01 and try to regenerate datamart
    Or lese try to load earch one at time and see the result
    Edited by: Prasad B on Aug 29, 2008 4:41 PM

  • When Iam trying to activate the update rules

    Dear One's......!
    When Iam trying to activate the update rules Iam getting the error message as "Data fields already updated for InfoSource T_T07_O005 with MOVE"
    Can any one kindly update me on the same?
    Thanks in advance,
    Raj

    Hi,
    this is not a error message but just a hint, a information, that you already have update rules from another infosource updating the same target which are updating the same fields. Just press enter and continue with activating.
    regards
    Siggi

  • Error while Installing the update rules in business content

    Hi All,
    I got the following error,when i was installing the update rules : Object UPDR D4C8V3KA00XD5ANPVUAH9KQDJ could not be found in version M. but these update rules appear as inactive mode in bi content-object types-updaterules-selection-inactive status.
          Please could i know where we can check version status for business content pdaterules. but it was showing NOT FOUND IN Version M .
    please anybody can help me for solving this error.
    i will asign points for your inputs.
    regards,
    kumar.
    Edited by: kumar kumar on May 20, 2009 5:58 AM

    Hi,
    You can check the Content Release and Last Content Modification for your update Rules following thee given path:
    RSA1>BI Content>object Types>Update Rules>Select object(search for ur update rules) -->Transfer Selections.
    After they are being transfered to the right pane.On right pane (where you can see the its technical name) scroll towards right you will see last three tabs as "Content Release,Last Content Modification and Person responsible".
    Change the Grouping as "Before and afterwards" and then try installing.
    Hope it helps.

  • Error in the update rules

    Hi All,
       I added a BUOM Unit for a keyfigure and activated the cube.While I am activating the update rules it shows the error message unit for the Keyfigure is not recognized in the update rules . Kindly let me Know what i need to do for this error.
    Thanks In Advance...
    Raghu

    Hi,
    Make sure that the mapping for the unit of your KF is also selected in update rule.
    With rgds,
    Anil Kumar Sharma .P

  • Problem in the update rule routine in BIW production

    hi,
      I have encountered a problem in the update rule, the problem is, there is a routine to calculate the age of a person, age is a key figure,
    The problem is that the key figure is not being calculated.
    we had encountered the same problem in the bw developent, we reinstaled the update rule, and the age was calculated correctly. Where as in production we cannot instal from business cotent, should we transport the perticular update rule once again?
    if there is any other solution, please let me know.
    Thanks in advance.
    regards chetana.

    I think retransporting is the only option available to you. You cannot modify anything in your production system.
    IF you have a chance to speak with basis people,ask them to open the system status to modifiable for few minutes.
    and make necessary changes in production and bring it back to normal (This is not a best practise in all situations).
    hope this helps.
    Praveen

  • 0py_c02 do not have the update rules or transformations in business content

    Dear All,
    I ma installing the Business content 0py_c02 cube with before data floe option , i found the infosource and transfer rules between Data source and info source but i can not found the Update rules betweeen the infosource and target.
    Even if u consider the data source replicated in RSDS update mode, but ther is no transformations. how we can resolve this issue , if any body faced the same issue please update the same.
    For creating mannully also there are routines in that update rules( checked same in IDES version) , i can do it same, but why the SAP not delivered the same, or i am going wrong in some where pls.
    Any update please , Not received any replies pls.
    Please any updates pls on this,  The  issue is open and waiting for responce from Experts.please can anybody update me.
    Thansk in Advance,
    Sathish
    Edited by: sathish kakumudi on Apr 21, 2010 8:48 AM
    Edited by: sathish kakumudi on Apr 21, 2010 10:34 AM
    Not delivered by SAP and SAP raised the same to Development team
    Edited by: sathish kakumudi on Jun 13, 2010 10:07 AM

    Hi Satish,
    Did you get any update from SAP-team on the same.
    Thanks,
    SC

Maybe you are looking for

  • Reg:Xpath in receiver determination

    Hello, My message strcture looks like below. Record Level1 item field1 Level2 item field2 Level3 item field3 There can be multiple items for each level. Here goes my condition. I have to send the message to the receiver system "A" only when filed2 va

  • Any ideas on where to get a reasonably priced SSD in Aussie?

    I have no experience with hardware but I want to get a 2.5 inch SATA SSD to replace a HDD in my 2011 winter/fall MBP. Any ideas on where to get one in Australia for a reasonable price? I'm looking for about 550GB give or take.

  • Model in my JList not reflecting the new value I added to it?

    uness I create a new model object and modify it then my code does not work as I want. Adding new data to the exitsting model causes the JList to display blank when I refresh the screen. I have created my own implementation of an editable Model. When

  • Failed to create VSS shadow copy for the VM on the Hyper-V host machine. Event ID 16010

    Failed to créate a VSS, more than one VSS Writer must be used? windows 2012 datacenter. cluster 2 Nodes in ISCSI using the same Virtual cluster storage for the VMs 10 VM running. always the incremental backup running good, but full backup can not fin

  • CS5 Design Premium download?

    I just got a new MacBook Air, but it doesn't have a DVD drive.  I already own CS5 Design Premium, but I need to download it from Adobe in order to enter my serial number so that I can use it on my new laptop.  Where can I download CS5 Design Premium