[Update Rules]: How do we use monitoring ?

Dear All,
In update rules in the routine particularly, i see there internal table monitoring .. What's that ?? And how can i use it ?
Could you give me the sample please ??
Many thanks.
Niel.

Hi Niel,
The following link should explain your question. Monitor is used to pass user defined error messages to the monitor screen.
http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
Let me know if this helps.
Cheers,
Praveen.

Similar Messages

  • How do I tell if a particular update rule is used

    I have inherited a sales reporting application in BW 3.5. It has update rules from 2LIS_13_VDITM to 4 level 1 ODS. There are update rules from those 4 level 1 ODS to Level 2 ODS and cubes. So far so good. However there are also update rules from 2LIS_13_VDITM to the L2 ODS and to the cubes direct.
    My belief is that these update rules are never used. This is based on the production infopackage settings which do NOT have these objects ticked as data targets. However i would like to know for sure that these update rules have never been used.
    Question: Is there a way to tell this eg.
    a) is there a table linking infosource to destination with a date last used,
    b) or a table linking infopackage to destinations showing when a particular destination was last changed,
    c) or some other mechanism?

    Hi,
    Chk the L2 ODS which have update rules from 2LIS_13_VDITM if it has data loaded in it in production.
    If its loaded means it is used.
    You can also chk whether the InfoPackage which loads this data is used in any process chain, and then chk if that chain is scheduled in production.
    Regards,
    Mansi

  • 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.

  • DATA Transformation Vs Update Rules ?

    Hi guys,
          I have a scenerio , where I need to have data from 2 DSOs in to one combined DSO. Lets Says the 2 DSOs as DSO A and DSO B. and the Third as DSO C.
        I want to get DSO C Structure as exactly as DSO A. and DSO B structure is only few fiew fields from DSO A (Key Fields are same). I have loaded the data in to DSO A and DSO B using Transformation and DTP . Now How to load DSO C data I mean combined data of DSO A and B.
    1.If I create update Rules to DSO C using DSO A and DSO B. Iam not getting any data in to DSO C. (Do I need to make any settings in DSOs to update the data of A and B in to C ?).
    2.If I create 2 transformations between DSO A -C  and DSO B-C. I am sure I need to create DTPs to get the corresponding data. When I do that Iam getting 2 separate sets of data for DSO C. But I need data as one set from DSO A & B in to C.
    Please help me ASAP and let me know if you need more information on it.
    Thanks in advance

    Hello Harish,
    I just got confusedwith the requirement. When u r loading from 2 sources (here it is DSO A and DSO B), then obviously u will get 2 rows whne u manage your DSO C.
    But, in case u r referring to data, then there should be some commonality between A, B and C, thenonly it will not come as seperate rows in your report.
    Can u send the details of DSO A, B and C ?
    -- Plz assign points if helpful --
    Regards,
    Mainak

  • DTP Vs Update Rules  Error!!!!!!!!!!!!!!!!!!!!!!1

    Hi guys,
    I have a scenerio , where I need to have data from 2 DSOs in to one combined DSO. Lets Says the 2 DSOs as DSO A and DSO B. and the Third as DSO C.
    I want to get DSO C Structure as exactly as DSO A. and DSO B structure is only few fiew fields from DSO A (Key Fields are same). I have loaded the data in to DSO A and DSO B using Transformation and DTP . Now How to load DSO C data I mean combined data of DSO A and B.
    1.If I create update Rules to DSO C using DSO A and DSO B. Iam not getting any data in to DSO C. (Do I need to make any settings in DSOs to update the data of A and B in to C ?).
    2.If I create 2 transformations between DSO A -C and DSO B-C. I am sure I need to create DTPs to get the corresponding data. When I do that Iam getting 2 separate sets of data for DSO C. But I need data as one set from DSO A & B in to C.
    Please help me ASAP and let me know if you need more information on it.
    Thanks in advance

    Harish,
       as i told you earlier, if the fields you are looking from DSO B is not available in DSO A, you can create transformation usign respective DSO if your Key fields are same in both DSO A and DSO B..
    assume...F1, F2, F3 are key fields in both DSO A and B.
    DSO A:
    F1, F2, F3, F4, F5, F6, F7.
    DSO B:
    F1, F2, F3, F8, F9.
    DSO C:
    F1, F2, F3, F4, F5, F6, F7, F8, F9.
    If you load data from DSO A to DSO C, it will create one record in DSO C with updation of F1, F2, F3, F4, F5, F6, F7(because f1, f2, f3, f4, f5, f6, f7 only mapped).
    If you load data from DSO B to DSO C, it will <b>Update</b> existing entry using Key fields for other 2 fields(which mapped from DSO B to DSO C).
    Change log table of DSO C update with 2 records(i'm talking about Standard table).
    write optimized works differently.
    all the best.
    Regards,
    Nagesh Ganisetti.
    assign points if it helps.

  • 'L_CHAVL_IN' Error while Activating Update Rules.

    Hi All,
          when i am tring to activate my update rules, it is giving error, field "L_CHAVL_IN' in unknown. I dont have that field in my objects.
       i found that field in 'Progarm' for the update rules. that field is used in the exit of one of the feild in the update rules.
        Please give me a solution how to solve this.
    Regards,
    Ramana.

    Check the following SAP Note (# 782858)
    <b>Symptom</b>
    When you activate the update rules, the system issues a syntax error: 'Syntax error: Field "L_CHAVL_IN" is unknown'.
    <b>Other terms</b>
    Syntax error; generation; l_chavl_in; update rules
    <b>Reason and Prerequisites</b>
    This is a program error. The error only occurs under the following circumstances:
    You generate an optimized update rule;
    An alpha conversion is required.
    <b>Solution</b>
    BW 3.0B
               Import Support Package 25 for BW 3.0B (BW3.0B Support Package 25 or SAPKW30B25) into your BW system. The Support Package will be available once note 0723254 with the short text, "SAPBWNews BW3.0B Support Package 25", which describes the Support Package in more detail, is released for customers.
    BW 3.10 Content
               Import Support Package 19 for BW 3.10 (BW3.10 Support Package 19 or SAPKW31019) into your BW system. The Support Package will be available once note 0723261 with the short text, "SAPBWNews BW 3.1 Content Support Package 19", which describes the Support Package in more detail, is released for customers.
    BW 3.50
               Import Support Package 10 for BW 3.5 (BW3.50 Support Package 10 or SAPKW35010) into your BW system. The Support Package will be available oncenote 0763336 with the short text, "SAPBWNews BW Support Package 10 NetWeaver'04 stack 10", which describes the Support Package in more detail, is released for customers.
    Assign pts if helpful.<b></b>

  • Problem when creating update rules

    Hi Friends..
                I'm actually having a problem when I'm creating update rules from my cube to my Infosource. This infosource is created by Dierct update of Master data (ZXXXX) Infoobject. the error which is popping up is ,
    Data source ZMMOBJ1 not maintained (check your entries)
    Message no. RSAU252
    Diagnosis
    The data source is not active
    Can some one guide me, How I can resolve this error.??
    and where the problem must have been??
    Thanks alot in advance,

    Hi,
    Check the infosource you are using for the cube. you cant use direct update infosource.
    'Direct update of master data' infosource updates into the infoobject.
    you will not have update rules for this direct update.
    you use update rules only when you use flexible update infosource.
    hope its clear.
    shylaja.

  • 0CCA_C11 Infocune : Update Rule Migration Error

    Hello,
    I have installed the cube 0CCA_C11 from the standard BI content and started the migration of the update rule.
    Here, i am getting an error in one routine. There is one field in the cube "0CO_REPLINE", which is mapped with all fields of infosource.
    there is a routine on the field 0CO_REPLINE.
    when i tried to migrate the update rule it will give me following error.
    Rule (target: 0CO_REPLINE, group: 01 Standard Group): Syntax error in routine
    And when i cheked the routine it will give the following error
    E:The type "_TY_S_SC_1_FULL" is unknown
    Please guide me and suggest.
    Regards,
    Macwan James.

    Hi ,
    There is a small change inthe routine whichi your have to do.
    Here is the code for the routine. Hope this helps
    $$ begin of routine - insert your code only below this line        -
      Data:
        COMM_STRUCTURE   type tys_TG_1_full,
        l_subrc          type sy-tabix,
        l_abort          type sy-tabix,
        ls_monitor       TYPE rsmonitor,
        ls_monitor_recno TYPE rsmonitors.
      REFRESH:
        MONITOR.
    Runtime attributs
        SOURCE_SYSTEM  = p_r_request->get_logsys( ).
        MOVE-CORRESPONDING SOURCE_FIELDS to COMM_STRUCTURE.
    Migrated update rule call
      Perform routine_0002
      USING
        COMM_STRUCTURE
      CHANGING
        RESULT
        l_subrc
        l_abort.
    *-- Convert Messages in Transformation format
        LOOP AT MONITOR INTO ls_monitor.
          move-CORRESPONDING ls_monitor to MONITOR_REC.
          append monitor_rec to MONITOR.
        ENDLOOP.
        IF l_subrc <> 0.
          RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.
        ENDIF.
        IF l_abort <> 0.
          RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
        ENDIF.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "compute_0CO_REPLINE
    Regards,
    Macwan James.

  • Can routine replace "master data attribute of" update rule for performance?

    Hi all,
    We are working on CRM-BW data modeling, We have to look up agent master data for agent level and position for each transaction data. So now we are using "Master data attribute of" update rule. Can we use routine instead of "Master data Attribute of" ? Will it improve the loading performance? Since we have to load 1 lack transaction records , where as we have 20,000 agent details in agent master data.My understanding is, for each record in data package the system has to go to master data table and bring the agent details & store in cubes. Say one agent created 10 transactions, then this option "master data attribute of" will read the agent master data 10 times even though we are going to pull same details for all 10 transactions from master data. if we use routine, we can pull the agent details& storing in internal table removing all duplicates and in update routine we can read the internal table.
    Will this way improve performance?
    let me know if you need further info?
    Thanks in advance.
    Arun Thangaraj

    Hi,
    your thinking is absolutely right!
    I don't recommend to use the standard attribute derivation since it will perform a SELECT to the database for EACH record.
    Better implement a sorted table in your start routine; fill it with SELECT <fields> FROM <master_data_table> FOR ALL ENTRIES OF datapak WHERE OBJVERS = 'A' etc...
    In your routine perform a READ itab ... BINARY SEARCH.... I believe that you won't be able to go faster...
    hope this helps...
    Olivier.

  • Access master data in update rules

    Hi,
    I try to calculate a weight in my update rules. Therefore I need the product weight and the number of peaces. I try to read the product weight from master data. The problem is, that it always calculates zero as the result. Is it possible to read master data in update rules?
    If I try to calculate the weight in the transfer rules, I get the message in the monitor, that the transfer rules don't finish. Do you have an idea what to do?
    Regards,
    Gabi

    Hi Robert,
    here is my code in the update rule.
    fill the internal table "MONITOR", to make monitor entries
      DATA: l_s_errorlog TYPE RSMONITOR.
      data: temp_prod_weight type /BIC/PZL2_P_ID.
    general values
      RESULT = COMM_STRUCTURE-/BIC/ZL2_POTMW.   "weight
      UNIT = COMM_STRUCTURE-UNIT_OF_WT.
      RETURNCODE = 0.
      ABORT = 0.
    calculate weight from master data, if it is zero
      IF COMM_STRUCTURE-/BIC/ZL2_POTMW = 0
      or COMM_STRUCTURE-/BIC/ZL2_POTMW = '0'
      or COMM_STRUCTURE-/BIC/ZL2_POTMW is initial.
        select single /BIC/ZL2_NETW UNIT_OF_WT
        from /BIC/PZL2_P_ID
        into corresponding fields of temp_prod_weight
        where /BIC/ZL2_P_ID = COMM_STRUCTURE-/BIC/ZL2_P_ID
        and objvers = 'A'.
        if sy-subrc <> 0.
          l_s_errorlog-MSGTY = 'I'.
          append l_s_errorlog to MONITOR.
          RESULT = 0.
    abort, if calculation is not possible
          ABORT = 1.
        else.
          RESULT = temp_prod_weight-/BIC/ZL2_NETW
    COMM_STRUCTURE-/BIC/ZL2_POTMQ.
          UNIT = temp_prod_weight-UNIT_OF_WT.
        endif.
    ENDIF.
    convert unit
      CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
        EXPORTING
          INPUT                      = RESULT
        NO_TYPE_CHECK              = 'X'
        ROUND_SIGN                 = ' '
          UNIT_IN                    = COMM_STRUCTURE-UNIT_OF_WT
          UNIT_OUT                   = 'KG'
        IMPORTING
        ADD_CONST                  =
        DECIMALS                   =
        DENOMINATOR                =
        NUMERATOR                  =
          OUTPUT                     = RESULT
        EXCEPTIONS
          CONVERSION_NOT_FOUND       = 1
          DIVISION_BY_ZERO           = 2
          INPUT_INVALID              = 3
          OUTPUT_INVALID             = 4
          OVERFLOW                   = 5
          TYPE_INVALID               = 6
          UNITS_MISSING              = 7
          UNIT_IN_NOT_FOUND          = 8
          UNIT_OUT_NOT_FOUND         = 9
          OTHERS                     = 10
      IF SY-SUBRC <> 0.
        l_s_errorlog-MSGTY = 'I'.
        append l_s_errorlog to MONITOR.
        UNIT = COMM_STRUCTURE-UNIT_OF_WT.
        RESULT = COMM_STRUCTURE-/BIC/ZL2_POTMW.
      ELSE.
        UNIT = 'KG'.
      ENDIF.
    I'm loading via PSA, but I have problems to debug the code. If I set a break point in my code (command break-point), I can't stop at it.
    Thanks,
    Gabi

  • 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

  • How can I use an image as a folder background on icon

    vista updated firefox - how can I use an image as a folder background for an icon of that folder (for desktop)

    This is not a Firefox related issue or Firefox setting etc. This is a windows or OS setting, I provided the link below on how to change this in Windows Vista.
    See:
    '''[http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/how-do-i-change-the-folder-icon-in-vista-to-one/01261170-4e02-4c4b-8c02-141d1524ad3e?auth=1]'''

  • Self Update Rule

    Hi all:
           I have a problem in self update rule loading.Actually i have ODS ZOMS001 and for this i have
    two update rules.One update rule is 2LIS_02_SCN and other update rule is 8ZOMS001(Self update rule).During initialise for SCN it takes 3 min and for self update rule 8ZOMS001 it takes 3 mins.During Delta loading for self update rule 8ZOMS001 ,even if i have 1 records(in delta) it takes whole records in ODS and timing goes for 20 mins.But it update only one record in ODS.
          Anyone suggest how can i go for delta records only for self update rule.How can i will minimize the time sequence for self update rule delta loading?.
    This issue stops my proj.Pls give me input.
    Thanks in advance.
    Rgds
    MSK.

    Hello,
    You should also take note that your delta will be a continous loop of changes...since you are updating itself, the loop to itself will produce changes and will continually create change records....so you will always get the same changes..
    For instance,
    Init.
    First delta from 2LIS_02_SCN. (Change log updated)
    That delta goes to itself. (Change log updated)
    Second delta from 2LIS_02_SCN. (Change log updated)
    That delta goes to itself, with changes from first delta to itself and second delta...)
    This continually gets bigger and bigger....
    It is  a continous loop that you will never get out of...
    Be careful in this situation.

  • How can I use Pegasus R6 with Mac mini?

    I bought Pegasus R6 (Promise Technology, Inc). I connected to my Mac mini. But Pegasus R6 did not appear on desktop. In order to use Pegasus, MacBook Pro?iMac must have MacBook Pro EFI Firmware Update installed. But Mac mini does not have EFI Firmware Update. How can I use Pegasus R6 with Mac mini?

    Does your Mac Mini have thunderbolt?

  • How do you add an entry in the monitor log from the update rules?

    How do you add an entry in the monitor log from the update rules?

    Check this link for relevant SAP recommended implementation.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c22e690-0201-0010-9581-832abdb5d50d
    Sample Code (Routine) available on the last page of the document.
    award points if useful

Maybe you are looking for