Start routine in Transfer Rules for Data Mart update

Hi,
Is it possible to create a start routine in a transfer rule of a Datamart update (from ODS to Cube)?
Thxs.
LauQ

Roberto,
If I read well the content of note 499404 - referred to in 630854 - I conclude that it is recommended to use update rules rather than transfer rules in the case of ODS objects when one wishes to modify data records up to the eventual data target.
Do you agree?
Thxs.
LauQ

Similar Messages

  • Help on Start Routine at Transfer Rule.

    Hi guys,
    We r extracting data from generic extractor into BW.My target is to fill Attributes of 0Customer(Infoprovider) Infoobject.
    We have added two navigational attributes to it CLASS A and CLASS B.
    Data coming from R/3 has three fields Customer,Class,n field called as ATWRT.
    For each customer there are two records .
    For Ex
    Customer                         Class                          ATWRT
    001                                   A                                 FOOD
    001                                   B                                 Supermarket
    002                                   A                                 Chain
    003                                   B                                  Magnum
    In the target customer is key
    Now the TASK is that in the target the definition for class A which is present in ATWRT should go to navigational attribute ClassA
    n Defination for B should go in NAV Attribute CLASS B . that means there should be single record in the target comprising both value in NAV attribute.
    For Ex
    Customer                Class A                             Class B
    001                         FOOD                                Supermarket
    002                         Chain                                  Magnum
    i want to write program in start routine of transfer rules. If u can suggest any other method also it will good to me to sort this issue. Suggestions are expected.
    Points will be awarded for the write suggestion.
    Pls help me out.

    Dennis,
    Thank you so much for the quick response.
    I think it is working. I only have one concern!!!!.
    I feel like during the testing I found something weird that eventhough there are only 8 records in the psa and four records only have the value ('status') that we need from customer master data-field1, it is still picking the 5th record, not sure why.  I see that once it is written in to the data target then the value is showing it as 'status' and in psa it is different.
    So I wonder if it is converting that field in the routine based on our constant!  Please let me know your input.
    p.s data target does not have the field1 available.  So just like you corrected my code it has to bring it from customer master data and join customer to with the customer-field1 =' status', then pick else delete other records.
    Regards,
    Su

  • How to find the existing START ROUTINEs in Transfer Rules in whole system ?

    Hi all,
       How to find the existing Start Routines in Transfer Rules in BW System, please ?
       I know that we could find from the Transfer Rules.
       Is there any way to find instead of looking at Transfer Rules for <b>each</b> InfoSource?
    Thanks,
    Venkat.

    Hi Venkat
    You can find it in these tables
    RSTRAN
    RSUPDROUT
    RSAROUT
    RSAABAP
    RSAABAPINV
    Thanks
    Tripple k

  • How can I activate the transfer rules for the ODS updating a data target.

    We are on BW 3.5 and I'm loading data into the 0FIGL_O10 ODS  and then uploading the data into the cube 0FIGL_C10. The data loads just fine to the ODS but when I try to <u><b>'update the data target'</b></u> I get a date & time stamp' error on the info-package transfer rules.
    I then Replicate the datasource 80FIGL_O01.
    I must then <u><b>'activate' the transfer rules</b></u>.
    However I cannot get the transfer rules for 80FIGL_O10 in CHANGE MODE to activate them.
    How can I activate the transfer rules for the ODS updating a data target.
    The error text is as follows:
    DataSource 80FIGL_O10 has to be replicated (time stamp, see long text)
    Message no. R3016
    Diagnosis
    DataSource 80FIGL_O10 does not have the same status as the source system in the Business Information Warehouse.
    The time stamp in the source system is 02/15/2007 10:42:33.
    The time stamp in the BW system is 11/07/2006 13:11:54.
    System response
    The load process has been terminated.
    <b>Procedure
    Copy the DataSource again and then activate the transfer rules that belong to it. You have to activate the transfer rules in every case, even if they are still active after the DataSource has been copied.</b>
    Thanks for your assistance.
    Denny

    Hi Dennis,
           Try, using Business Content to activate your data source
           hope this will help you
    How activate business content?
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a66d5e07211d2acb80000e829fbfe/frameset.htm

  • Debugging: start routine in transfer rules

    Hi !
    can you please tell me how to debug start routines  and field routines in transfer rules?
    If possible please tell me too debugging of update rules.

    Hi Rajib,
    Go to the monitor -> Details tab -> Processing -> Choose the datapackage you want to debug -> Right click -> Simulate update -> Choose eather activate debugging in transfer rules (to debug in transfer rules) or debugging in update rules(for start routine and update rules).
    You can mention the number records you want to debug also, if you have an idea of which records you want to debug you can give the number of that record.
    Once the debug screen comes up, press F8...the control stops at first break point...from there you can do a step by step debugging (F5).
    Hope this helps...
    Regards,
    Kalyan

  • Start Routine in Transfer Rules

    Hi all ,
       I am trying to write a start routine in the Transfer rules ....I just want to know which is package that i have to loop to get mt records ....
    id it LOOP at DATAPAK ....
      My records ...
    ENDLOOP
    This is where i need to put the logic or else where ..please let me know

    hi,
    check if sample code helps
    DATA: l_s_datapak_line type TRANSFER_STRUCTURE,
    l_s_errorlog TYPE rssm_s_errorlog_int.
    tables : table1.
    data : l_field1 liek table1-field1,
           l_tabix like sy-tabix.
    loop at datapak into l_s_datapak_line.
    l_tabix = sy-tabix.
    fill field1 with data
    select single field1 into l_field1
    from table1 where fieldintable1 = l_s_datapak_line-[fieldname]
    if sy-subrc = 0.
      l_s_datapak_line-field1 = l_field1.
      modify datapak from l_s_datapak_line index l_tabix.
    endif.
    endloop.

  • Enhancing 0MATERIAL_ATTR?Writing Start routine in Transfr rules in BW side?

    Hi All,
    I got a requirement of enhancing the 0MATERIAL_ATTR extract structure with 10 fields.
    The logic is written in R3 extraction User exit ZXRSAU02 for populating the data from MARA table.
    In the BW side also, the corresponding objects created & mapped in Communication & Transfer structure, the update rules also activated for 0MATERIAL_ATTR.
    Details:
    The DS is: 0MATERIAL_ATTR
    ES is: BIW_MARA_S
    Table is: MARA
    Enhanced fields in ES are: like ZR, ZR1, ZR2 to ZR9.
    BW Objects created are: like ZB, ZB1, ZB2 to ZB9.
    I need help in writing start routine in transfer rules:
    The below logic needs to be included in the start routine -
    --->" If the following fields in extractor are all blank then populate them all with the value in ZR, ZR1, ZR2 to ZR9.
    ---> If the above are not all blank then don't modify. These will update as per the Transfer rules."
    Please help in writing the code for the Logic mentioned above.
    Thanks in Advance.

    Hi,
    as suggested you can do this in ZXRSAU02 or in the start routine
    In the start routine
    data wa_datapak type TRANSFER_STRUCTURE .
    data l_tabix like sy-tabix.
    loop at datapak into wa_datapak .
    l_tabix = sy-tabix .
    if wa_datapak-zr is initial or wa_datapak-zr1 is initial -
    wa_datapak-zr9 is initial .
    clear  : wa_datapak-zr. -- clear : wa_datapak-zr9 .
    modify datapack from wa_datapack index l_tabix.
    endloop.
    hope this helps
    PV

  • Is difference between update routine,start routine and transfer routine

    Hi All,
    What is difference between transfer routine and update routine.

    Hi Venkat,
    Routine is a set of ABAP code which is used to select a record or transform the field value at the time of loading the data.
    Types of routines:
    Tranfer Routines in Transfer Rules:
    Start Routines in Transfer Rules:
    Update Routines in Update Rules:
    Start Routines in Update Rules:
    Transfer/Update routine:
    It's the set of ABAP code used in Transfer/Update rules. Transfer/Update routine is used to change the value of a particular field/object at the time of loading data.
    Ex: Populate the amount/discount field by using Price and Quantity based on the given conditions.
    Start Routine:
    Start routine can be used in both Transfer Rules and Update Rules. Start routine is used to determine whether to load a particular record or not.
    Ex: From the data related to the year 2005, we can select only the records which belong to a particular month or fiscal period.
    Ultimately Transfer/Update routines are to update the value of a particular field. Start routines are used to select entire record.
    You can get more details about routines at :
    Routines
    ROUTINES
    Routines and Examples
    Start Routines
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/60cecb1d-0a01-0010-8289-b14fd99062fa
    take a look this doc for abap used in bw
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    ABAP book that always mentioned :
    http://cma.zdnet.com/book/abap/
    assign points if useful ***
    Regards
    CSM Reddy

  • Error in Transfer rules for 0REQESTER

    Hi,
    I have a routine in transfer rules for standard Infosource 2LIS_02_ITM for 0REQESTER.
    routine goes like this
    INCLUDE rsbctbbp_transfer_r3.
    TABLES: srm_proj_contr.
    DATA:   l_s_errorlog TYPE rssm_s_errorlog_int,
              l_text TYPE string.
    data: l_rc type i.
    perform bbp_get_requester using TRAN_STRUCTURE-afnam
                                      RECORD_NO
                                      g_s_minfo
                                 changing RESULT
                                     g_t_errorlog
                                      l_rc.
    returncode <> 0 means skip this record
      RETURNCODE = l_rc.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    ENDFORM.
    FORM INVERT_REQUESTER
      USING    I_RT_CHAVL_CS      TYPE RSARC_RT_CHAVL
               I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
      CHANGING C_T_SELECTION      TYPE SBIWA_T_SELECT
               E_EXACT            TYPE RS_BOOL.
    $$ begin of inverse routine - insert your code only below this line-
      DATA:
        L_S_SELECTION LIKE LINE OF C_T_SELECTION.
    An empty selection means all values
      CLEAR C_T_SELECTION.
      L_S_SELECTION-FIELDNM = 'AFNAM'.
    Selection of all values may be not exact
      E_EXACT = RS_C_FALSE.
    $$ end of inverse routine - insert your code only before this line -
    ENDFORM.
    this routine does not have any errors.
    when i load the data data wil not be loaded and i will get the following error messege in details
    Record 1 :No value found for attribute 0REQESTER for InfoObject 0USERNAME =
    can anybody suggest me plz regarading this.
    Thanks & Regards,
    Vijaya

    Thanks!

  • Strat routine code in transfer rules for the Extractor - 0CO_OM_CCA_1

    Dear SDNers,
    I have a scenario to implement a start rouine code in the transfer rulesfor the Extractor - 0CO_OM_CCA_1 , please give a light on this.
    Scenario:
    The extractor 0C0_OM_CCA_1 brings in Cost Center transactional data for costs and allocation into the SAP BI data warehouse. A cross reference table will be created in SAP BI for Profit Center. These tables will have CRM (CARDIAC RHYTHM MANAGEMENT) Profit Centers stored in them.
    In the transfer rules for 0CO_OM_CCA_1, add ABAP code in the start routine to block CRM (CARDIAC RHYTHM MANAGEMENT) data. The code will have the following logic:
    Check Cost center master data table u2018/BI0/QCOSTCENTERu2019
    This table u2018/BI0/QCOSTCENTERu2019 being time dependent, use the last day of the fiscal period from transactional data as the date to select from u2018/BI0/QCOSTCENTERu2019.
    Go to the Profit center reference table and identify if the data belongs to BSC Boston Scientific/CRM (CARDIAC RHYTHM MANAGEMENT).
    Block CRM (CARDIAC RHYTHM MANAGEMENT) data.
    Best Regards,
    Satya
    Edited by: satya prasad on Sep 8, 2009 8:16 AM

    You could give this a try:
    DATA: wa_qcostcenter TYPE /bi0/qcostcenter,
          wa_ppcxref TYPE /bic/ppcxref,       "Custom Profit Center Cross-Reference table
          l_tabix TYPE sy-tabix,
          l_last_date TYPE d.
    LOOP AT data_package.
      l_tabix = sy-tabix.
      CALL FUNCTION
        'LAST_DAY_IN_PERIOD_GET'
      EXPORTING
        i_gjahr = data_package-fiscper+0(4)
        i_periv = data_package-fiscvarnt
        i_poper = data_package-fiscper+4(3)
      IMPORTING
        e_date = l_last_date.
      SELECT SINGLE
      FROM
        /bi0/qcostcenter
      INTO
        wa_qcostcenter
      WHERE
        costcenter = data_package-kostl
        AND dateto <= l_last_date
        AND datefrom >= l_last_date.
      IF sy-subrc EQ 0.
        SELECT
        FROM
          /bic/ppcxref
        INTO
          wa_ppcxref
        WHERE
          profit_ctr = wa_qcostcenter-profit_ctr.
        IF sy-subrc EQ 0.
          IF wa_ppcxref-data = 'CRM'.
            DELETE
              data_package
            INDEX
              l_tabix.
          ENDIF.
        ENDIF.
    ENDLOOP.
    Edited by: Dennis Scoville on Sep 8, 2009 4:32 PM

  • No transfer rules for FI master data sources

    Hi all
    I didnt get transfer rules for some of the FI master datasources.
    0GLACCEXT_T011_HIER
    0NEG_POSTNG_TEXT
    0ITEMSELFLG_TEXT
    When I right click on datasource->create transfer rules->Only other option is enabled.WHen I say continue I am getting this error
    *Infosource(transaction data) is not known.
    How to resolve this isssue.
    Thanks.

    Double click on the data source and go to edit mode, system automatically provides the corresponding BI content infosources if  any and install the same.
    Not all the fields will be mapped with BI info objects.  Only necessary ones as defined in BI content will be available for you.
    If you feel the mapping is incomplete you can modify the same according to the requirement.
    Hope this helps.
    Regards,
    Rangz

  • Error in creating RSDS using transfer rules for master data datasources

    Hi ,
    when i am creating the transfermations(RSDS) using transfer rules for master data datasources while i want to migrate datasource.it is giving the error message saying that INITIAL ERROR OCCURED DURING GENERATION OF THE TRANSFERMATION.AND in the taskbar it is giving the message LOG IS BEING LOADED.
    MY QUESTION IS HOW CAN WE SEE THE LOG? AND
    PLEASE GIVE ME THE STEPS TO MIGRATE MASTER DATASOURCES.
    THANKS IN ADVANCE .

    Hi Ankit,
                  Yoy have to load data to the cube.For that you need update rules.
    Steps to load data to the cube
    1.Replicate the datasource.
    2.Assign Infosource
    3.Create transfer rules
    4.Maintain the update rules to the cube.
    5.Right click on the datasource and schedule an infopackage for it.
    Execute the Infopackage and pull the data to the cube.
    Hope this helps
    Regards
    Karthik

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • Update Rule 8ZCDSDS03 and 80CDS_DS07 for data mart

    Hello Guru´s
    My proble is this
    8ZCDSDS03 Update rules to Data marts for cube 0SD_C03
    80CDS_DS07 Update rules to Data marts for cube 0SD_C11
    are in gray i don´t know why. do you have and explanation or a solution for that.
    whit best regards
    agt

    Hi Antonio,
    Any time you make a change to a cube, check the update rules feeding it and activate them. Also check if this InfoCube is supplying data to other data targets and check the 8* update rules and activate if required.
    Right now you can double click the grey rules and activate them and transport the active rules (if required)
    Hope this helps...

  • Urgent: ABAP routine in transfer rules

    Hi,
    when i am loading master data from R/3 into BW, i need to filter some records based on material type. there is no option in RSA6 (on R/3) or in Infopackage (BW) to make it available for filter.
    So i assume i need to write ABAP routine in transfer rules. can some one help me with ABAP. i need to load the records only when MTART field(material type) in MARA is "FINI" or "RAW" and skip other records.
    what is difference between deleting the whole data packet and deleting the record.
    Thank you very much in advance
    Regards
    Emil

    Hi
    Write the below code in the start routine of your transfer rules.
    Regards
    Prakash
    DATA: IT_DATA        TYPE STANDARD TABLE OF TRANSFER_STRUCTURE
                         WITH HEADER LINE
                         WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA: S_DATA, T_DATA TYPE TRANSFER_STRUCTURE.
    LOOP AT DATAPAK INTO S_DATA.
    IF S_DATA-MTART EQ 'A' OR S_DATA-MTART EQ 'B'.
    MOVE S_DATA TO T_DATA.
    DELETE S_DATA.
    ELSE.
    DELETE S_DATA.
    ENDIF.
    APPEND T_DATA TO IT_DATA.
    ENDLOOP.
    CLEAR T_DATA.
    DATAPAK[] = IT_DATA[].
    Assigning points is a way of saying thanks on SDN!!

Maybe you are looking for

  • IPod touch (4th gen) won't connect to my wifi after being lost

    I lost my iPod touch (4th gen) yesterday so "locked" it using iCloud. The nice folks at the vet office found it and I retrieved it today. Noticed it wasn't actually locked, could listen to podcasts and open apps right away, and it syncs fine when I c

  • Digital Signatures with Graphics - Possible?

    Can a .jpg be converted to .pdf/.pfx to merge into the .pfx for a combined graphic & digital signature? Thanks, Teresea

  • 4:3 event in a 16:9 project

    On a recent trip, I recorded using a digital video camera (4:3) and my iphone 4 (widescreen). I imported the videos from both, and created a 16:9 project. In the events pane, the 4:3 videos have black lines on the left and right, but when I drag them

  • Cannot uninstall T-bird 24.4.0 from Win 7...shows only 48.1mb installed. I want to reload NEW T-bird.

    Was working fine, but FireFox was having trouble. I went back to Internet Explorer and all was OK until I reloaded T-bird, because I was having trouble downloading Pandora. I had to load Pandora thru a Google search. Then I lost my T-bird, so I un-in

  • Generic webservice for RFC

    Hello Colleagues, Is there a generic webservice for any SAP RFC,that is i want to call an existing RFC through webservice,without generating a webserive for that RFC. regards kaushik