Lookup in update rules to a R/3 table

Can I do a look up to a table that physically exists on the R/3 side in my upate rules.
If yes, how?
GMAT

Nope, directly if you need information from the transactional system R/3, you must first create all the DSO, datasource and transformations (tranfer rules, etc) in order to load such information first into BI and use it as reference in your routines, OR if it's few information and you have an excellent comunication infrastructure, you can create a remote function call or even a virtual remote infocube (all depends of your needs) but this is a good solution only if you are going to transfer few data and not frequently (avoid overhead in you BI platform).
Few reference data and not frequent execution then:
--> The best solution will an RFC but bear in mind that this will require a more complex mainteinance but is an excellente alternative to maintain a DSO.
A lot of data and a frequent reference to data from R/3.
--> Load such information into an DSO in BI and create all the infraestructure to populate from R/3.
Ebert

Similar Messages

  • 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

  • ABAP routine/lookup in update rule

    Hello Gurus, I am trying to do a lookup from 2 ODS's into one. I am trying to join sales and delivery data.
    My current idea is that I will use the 2LIS_11_V_SSL extractor that has SO, SOitm, DO, DOitm data and bring that into an ODS that has those four items as the key.
    During that update, I will need specific fields (mostly key figures - Net Price from the SalesOrder ODS, and Del. Qty from the DelOrder ODS).
    The SO and DO ODSs each have a key of SO/SOitm and DO/DOitm respectively.
    What I am trying to do is write a routine for each of the necessary fields to do a lookup on the source ODS and bring in the field value according to the SO/SOitm or DO/DOitm key.
    A simplified example
    <u>Target ODS</u> Initially coming from 2LIS_11_V_SSL (keys)
    <b>SO
    SOitm
    DO
    DOitm</b>
    Net Price
    Del. Qty
    <u>SO ODS</u>          
    <b>SO              
    SOitem</b>          
    Net Price       
    <u>Del Order ODS</u>
    <b>DO
    DOitm</b>
    Del Qty.
    I have the 4 key fields coming from another extractor, need to lookup the key figures from the other ODSs on the load
    If I could get some example code on how to do this I would greatly appreciate it! I was told an internal table might do the trick, but after scouring the forums I can't find anything that seems close enough.
    Thanks!
    Justin
    Message was edited by: Justin  Molenaur
    Message was edited by: Justin  Molenaur

    Ajay (or anyone else)...one more question
    Is there a way to limit the number of times that the net price field may be written.
    for example, a SO item may be associated with multiple delivery order items, so you only want to write the net price field once PER sales order item. If we did it just like above, everytime a sales order item had multiple delivery order items, there would be multiple net price values for each delivery order item, which is not correct (see spreadsheet).
    Sales Order     Sales Order item     Delivery Order     Delivery Order item     Net Price (SO)     Del Qty (Del)
    1     10     100     10     15     150
    2     10     101     10     25     200
    <u>2     20     101     20     <b>50</b>     250
    2     20     101     30     <b>50</b>     299</u>
    3     10     102     10     23     213
    4     10     102     20     27     476
    So the challenge would be to create a counter(?) or something that will only allow a SOitm to have only one net price.
    Thanks for you help!
    Justin
    Message was edited by: Justin  Molenaur
    Message was edited by: Justin  Molenaur

  • 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

  • Update rule on master data attribute

    Hi
    In my cube, I have a master data object  0COMP_CODE, which has attribute 0COMPANY.
    Additionally, in the same cube, there's:
    Master data object 0CUST_GROUP, which has attribute ZBUSPART
    Master data object 0CO_AREA, which also has attribute ZBUSPART
    I need to fill a characteristic ZTAXCODE (not a master data object) in the cube, with the following logic:
    If 0COMPANY is between 1 and 30, populate ZTAXCODE with value of ZBUSPART from 0CUST_GROUP
    If 0COMPANY is between 31-9999999, populate ZTAXCODE with value of ZBUS_PART from 0CO_AREA
    I guess this will have to be done in the update rule.  Right now I have 0COMP_CODE in the communication structure. How should the code be written to populate ZTAXCODE, with value of ZBUSPART, based on the value of the attribute of 0COMP_CODE - 0COMPANY?
    Any help with getting me started here would be appreciated...
    Thanks
    Marty

    In the start routine.
    First, for all data package select company code, cust_group and zbuspart from cust_group and store it in the internal table.
    Second for all data package select company code, co_area and zbuspart  from co_area and store it in the second internal table.
    Third for all data package select company and company code from comp_code and store it in the third internal table.
    Now in the update rule routine.
    read the third table and get the company for the company code and if the value which comes from this company is between 31 and 9999999 then read from second internal table otherwise read from the first internal table and update the result.
    hope that is clear.
    thanks.
    Wond

  • Function Module where-used list does not find update rule programs

    We have function modules called in update rules. The where-used list in the function builder does not find the update rule programs.
    For example, function DATE_GET_WEEK is called in an update rule to InfoCube YCUBE001. The activated program name for this update rule is GP3PWI6PKM5Y3K75A370DIS8I77. When I goto SE37, enter the function DATE_GET_WEEK, click the where-used button, check the programs option and search. The system does not find the program GP3PWI6PKM5Y3K75A370DIS8I77.
    Without this search capability it is difficult to do an impact analysis of changing function modules. Does anyone know of a solution?

    hi,
    i think the reason is the code of update rules' generated program are stored line by line in table(rsaabap), update rules program itself stored in table rsupdrout, link with field codeid, another useful table is rsupdinfo which store infocube, infosource related.  other info may stored in some other rs* and rsa* tables.
    try to create following program in your system, and run, type in the function module name, and will display out the update rules program id, with additional useful info : which infoprovider, infosource, and detail info of the routine and infoobject in the update rule that using that function module. you may modify the program to have better display out list.
    hope this helps.
    REPORT  Z_FM_UPDRUL_WHEREUSED.
    data : lv_sfm,
           lv_line type string,
           lv_where type string.
    tables : rsaabap,RSUPDROUT,rsupdinfo.
    select-options:
    s_fm for rsaabap-LINE.
    start-of-selection.
      loop at s_fm.
        concatenate s_fm-low ' ' into lv_sfm.
        concatenate '%' s_fm-low into lv_line.
        concatenate lv_line '%' into lv_line.
        write : / 'function module', 'update rule id', 'routine id', 'infoobject', 'infocube', 'infosource'.
        select * from rsaabap
        where line like lv_line and objvers = 'A'.
           select * from rsupdrout
           where codeid = rsaabap-codeid and objvers = 'A'.
             select single * from rsupdinfo
             where updid = rsupdrout-updid and objvers = 'A'.
               write: / lv_sfm, rsupdrout-updid, rsaabap-codeid,
                        rsupdrout-iciobjnm, rsupdinfo-infocube,
                        rsupdinfo-isource.
        endselect.
        endselect.
      endloop.

  • Update Rule - Logic to lookup

    The daily Inventory Cube stores the values (populate via a routine in the Update Rules) of some key figures
    I want to use those key figure values in another ODS.  Can I carry out a lookup in the UR for these values if so how? Thanks

    hi Niten,
    take a look sample codes
    Is it possible to read a third ODS in update rules between two ODS?
    Restriction of data selection in update rule start routine.
    Start Routine in Update Rules to populate additional fields from ODS
    hope this helps.

  • Advanced Update Rules Routine

    I have a routine in my update rule that performs a lookup to another ODS.  To improve my performance I would like to try writing a temporary variable to memory that can then be referenced when loading each record.  For example here's some pseudo code:
    1) if vendor already exists then do nothing
    2) set AP key and set Purchasing key for performing lookups
    (ie: AP key = Company Code + FiscalYearPeriod + AccountingDocumentNumber)
    (ie: Purchasing key = Company Code + FiscalYearPeriod + PurchasingDocumentNumber)
    3) does temporary AP variable exist and does it match AP key?
         3a) if yes then EXIT and return temporary AP variable
         3b) if no then perform ap lookup based on AP key
         3c) was lookup successful - was vendor found?
    if yes then set temporary AP variable and EXIT and return value
    if no then continue
    4) does temporary Purchasing variable exist and does it match Purchasing key?
         4a) if yes then EXIT and return temporary Purchasing variable
         4b) if no then perform purchasing lookup based on Purchasing key
         4c) was lookup successful - was vendor found?
    if yes then set temporary Purchasing variable and EXIT and return value
    if no then EXIT (Do nothing - essentially leave blank)
    My question is 1) Whether it's indeed possible to pass this temporary variable and 2) can you give me a sample of code that I would use to read/write the variable?
    Thanks so much!

    You can use Import/Export to cluster database. This way you can share the same variable value between different programs/routine.
    EXPORT value TO DATABASE INDX(Indx) ID 'Variable Id'.
    IMPORT value FROM DATABASE INDX(Indx) ID 'Variable Id'.
    For more details you can refer the following:
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3c53358411d1829f0000e829fbfe/frameset.htm
    Regards,
    RB

  • Characteristic derived Update Rules

    Hi guys,
    I have to make the update rules for a DSO.
    Among characteristics there is one that should by derived from the master data table of another characteristic. Even more, this attribute is time-dependent.
    So, let's say for characteristic zstatus  I:
    <li>checked the Master Data Attribute of</li>
    <li>selected the deriving characteristic zdoc</li>
    <li>clicked the Time Dependency button</li>
    <li>checked the End radio button</li>
    <li>selected 0CALDAY from the Frm match code button</li>
    <li>Closed all modal windows and activated the update rules</li>
    After both, master data bearing characteristics and transaction data were uploaded, the results were far from what I expected to be, as you can see below:
    <li>zdoc Master data</li>
    Comp Code     BP     Ref. no     Valid-to             Valid-from            Document_date     Net_duedate     Status
    RO20     90000724     342342     11.11.2008     01.01.1000     21.11.2008     20.9.2007     
    RO20     90000724     342342     20.11.2008     12.11.2008     21.11.2008     20.9.2007                  1
    RO20     90000724     342342     31.12.9999     21.11.2008     21.11.2008     20.9.2007                  2
    <li>Transaction data [ DSO ]</li>
    Comp Code     BP     Ref. no     Document date     Status     Document Type     Amount     0CALDAY
    RO20     90000724     342342     5.9.2007                                 X            119,00     5.9.2007
    RO20     90000724     342342     5.9.2007                 1             I            119,00     21.11.2008
    RO20     90000724     342342     5.9.2007                 1            X            119,00     21.11.2008
    Well, I expected the Status column in the DSO table [ the bolded column to get the value 2 after deriving the zdoc characteristic on 0CALDAY, during data loading process, however, it takes the value 1 in turn.
    I'm not sure, I'm clear in my explanations...if  there is someone who understood my pain, and tell me what's wrong with my update rules I would appreciate.
    Kind Regards!

    After updating the data, did you perform a hierarchy/attribute change run or "activate" the master data for your lookup object?  Also, check in the "Q" table of the master date lookup object, all of those records should be in the table and active.
    Brian

  • Update rules -Empty or invalid formula error message (Message no. RSAR140)

    Greetings to All,
         I am trying to activate update rules from a DSO into a cube.  I am getting the following error message:
    Empty or invalid formula 43D46N8MX3MNP06MF69ZQ8L50
    Message no. RSAR140
         The problem is that I don't know how to lookup a formula by the technical name.  I know you can right click to show technical names of the InfoObjects, but I don't know how to show the technical names of the <i>formulas</i>.  Does anyone know some way to figure out which formula is the one causing the error when all I know is the technical name?
    Thanks,
    Sarah-Jane

    Hi!
      Thanks so much.  That makes perfect sense, but when I look at that table using transaction SE16, and I click on the "Number of Entries" button, I get a message saying there are zero rows in the table.  Could this be possible?  I know this sounds really weird...
      Just in general, how do I found out the names of tables like RSUPDFORM?  Is there a data dictionary that I can query?
    Thank You,
    Sarah-Jane

  • Update rule for COSTCENTER master data

    Hello All,
    Cost Center is not an attribute of 0EMPLOYEE, neither a field provided by the table PERSON.
    0COSTCENTER gets data from the MASTER Datasource 0COSTCENTER_ATTR. When writing an update rule for this characteristic, what code should be written?
    and Which fields should be considered from the table /BI0/MCOSTCENTER.
    Thanks in advance.
    Regards,
    KP

    Hello,
    Lets consider a ZINF infoObject with time dependent attribute as ZDEPART.
    When writing an update rule, I do a lookup on ZINF. Do  I have to write a code for this llokup (mapping this infoObject)?
    After writing a code for a lookup on ZINF, will this InfoObject be available for selection in "Master data attribute of"?
    Kindly reply.
    Regards,
    KP

  • Update rule for cube 0PY_C02

    Hi ,
    Please let me know the update rule for cube 0PY_C02 as I am not able to locate it in the Business content data flow or meta data repository.
    thanks

    Hi,
    Check the output in the transaction LISTCUBE it will give you better picture of the data coming in the multicube.
    Check whether the char in the rows of the report is coming from one of the cube only and the key figure which you are looking is coming from different cube.
    Also check for the selections on the report if the selection variable is on a char having identification from only of the cube.
    this can cause the filtering of data from one of the cube and you will get all the value as # for that particular field.
    Take DESG characterstic into the cube 0PY_C02 also.in the update rule(of cube) for this Infoobject take Master data lookup concept.
    Make the Identification mapping for the IO DESG of Multiprovider iwth the chacterstic DESG of both cubes .
    Then activate the Master data 0Emlyoee_ATTR.
    Reupload the data into 0PY_C02.
    Hareesh

  • Error while Activating update rule in BW

    Hi,
    I am getting an ABAP dump while activating an update rule. The rule is from DSO to cube.
    "MESSAGE_TYPE_X" " "    
    "%_T020N1" or "%_T020N1"
    "INSTANTIATE"           
    I have added some new fields in a DSO. The rule is from DSO to cube. While activating it, I am getting this ABAP dump. There are few other rules from this DSO to other DSO which got activated but this one is causing dump.
    Any ideas/suggestions on this would be really helpful.
    Thanks,
    Naveen

    Hi
    Check if your Cube , DSO and UR's are active. If not reactivate them. Ideally you could recreate the UR's and check the status by running the extraction.
    I would also recommend to use elimination method to check if any particular field is creating an issue. While recreating the UR's , create them for a few fields - active - check extraction - this will also let you know if the issue is within any oif the rules.
    Cheers
    Umesh

  • Error while Transporting Update Rules.

    hi xperts,
       I am getting Error while Transporting the Update rules,i already transported the INFOCUBE,INFOPACKAGE EVERYTHING.
        Start of the after-import method for object type R3TR ROUT (Delete Mode)
    Errors occurred during post-handling RS_AFTER_IMPORT for ROUT L
    The errors affect the following components:
        BW-WHM (Warehouse Management)
    Is the  error,I didn't change any thing in the Cube or changes to Update rules.
    Can anybody Help me?.
       thanking you,
                                   with regards,
                                   Narendra.

    Hi,
    Are you still facuing the issue ?
    No need to worry about the routines, once you save the update rules if there is any routines in it it will be saved in the same request. If you want to check the routines you can check in the transport connections. Transfer the update rule to the right hand side of the screen and you can see all the routines that belong to the UR.
    If you know the technical names of the routines you can check in the TADIR table.
    Have you transported the info-sources for this update rules ? why not you again capture the info-source and the update rule in a single request and transport again.
    Hope it helps.
    Thanks,
    Soumya

  • Simple creation of Update Rule from BW Data Source

    Hi guys,
       Pertaining standard SAP Business Content extractors
       I am referring to <b>InfoCube : 0PA_C01(Headcount and Personnel Actions)</b>
       I am attempting to<u> create </u>an <b>Update Rule</b> from <b>Info Source : 0HR_PA_PA_1(Headcount)</b>
       This <b>Info Source : 0HR_PA_PA_1(Headcount)</b> is connected to <b>BW Data Source</b>(Not R/3!) 0HR_PA_PA_1
       I have created an Info Package for this Info Source and managed to get 15 records{In Contrast to my 68800 Records from Info Source : 0HR_PA_0(Employee)}
       So, when I create an Update Rule to Connect <b>Info Cube: 0PA_C01(Headcount and Personnel Actions)</b> to <b>Info Source to Info Source : 0HR_PA_PA_1(Headcount)</b>, I get the following error
    ERROR : <b>IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b>
      Could you please also advice, why do I only get 15 records for Data Source 0HR_PA_PA_1 ?
      P/S : I am on BW 3.5

    Hey Rohini,
       This <b>Data Source: 0HR_PA_PA_1(Headcount)</b> is tricky to me because it`s a BW Data Source.
       Exact Error Message is as follows :-
      "<b>Error Message : RSAU461
        IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b> "
       My Exact Problem is that I don`t see any values for the following fields in my Info Cube : 0PA_C01(Headcount and Personnel Actions)
      Country;
      Country Code;
      Gender;
      Nationality;
      Language;
      Postal Code;
      Region;
      Position;
      Job;
      Payroll Area;
      Payroll Group;
      Pay Scale's;
      Pay Grade's
      This is because, this information is supplied by InfoSource : 0HR_PA_PA_1
      But I don`t have an Update Rule for this InfoSource in my InfoCube : 0PA_C01
      So, that's why I am attempting to create this additional Update Rule
    <i>  And also, could someone enlighten me why would SAP not include such a standard Update Rule when they have already idenfied those needed fields in a Cube ? This is suppose to be a STANDARD workable Business Content right ?</i>
      P/S: I have applied Note : 336229

Maybe you are looking for

  • REP-1401:'cf_1formula': Fatal PL/SQL error occured, ORA-01403: no data fou

    hi, my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured, ORA-01403: no data found There are two table emp1 and emp2 created from employees table from HR schema I have deleted some records from table emp2 where department id i

  • Keep imported SWF on top across scenes

    Hi, I have made a flash game using scenes, and am trying to get sound to play across all scenes. I have so far made an external SWF and imported this into the first frame of the first scene. This works as expected, and the sound continues throughout

  • Manage Sites, Save and Put will not work Dreamweaver CS6

    I dont know what is going on but none of these work - the only hint I get of something going wrong is that I get a warning that no testing server is set up when I try to save via Ctrl+S I would re-install but I have a lot of sites set up and that wil

  • Infopath licensing question

    hi all,    Just a quick question, we have SharePoint 2013 enterprise /w SA. Does that cover the licensing usage for InfoPath Form Services? Are there any special requirements for licensing to use InfoPath forms on our corporate intranet? We have Offi

  • Photoshop causing banding on prints - CS5, Epson r2000

    Hi there, now I know that banding isn't a new topic, but it seems that the banding I'm generating in my prints is being caused by photoshop in some way. Last week I purchased a new Epson r2000 printer and have never successfully printed anything from