ABAP Guidelines for transfer rules & Update rules

Is there any guidelines for abap when using it for transfer rules and update rules? I am looking for some best practise in this area.
Thank you,

There is no specific differences in the standards/coding procedure for Transfer Vs. Update Rulse.
This can only come from a combination of requirement, design and experience! (in no particular order)
for e.g.
If the converions are the same for all data targets, you would use the transfer routine, start routine in the Transfer rules.
If the converions are different for different data targets, you would use the update routine, start routine in the Update rules.
Key concerns being performance, modularization, reduced effort and ease of maintenance.
Not sure I have answered you question! Please get back if there is something specific you are interesed in (a scenario perhaps!)
Rishi

Similar Messages

  • What are the special conversions for time in update rules?

    What are the special conversions for time in update rules?

    Hello,
    Special conversions for time in update rules are automatically conversion rules.
    Example: If the cube contains calendar month and your transfer structure contains date, the date to month is converted automatically.
    Assign points if this helps,
    Regards,
    Jorge Diogo

  • Transfer and Update Rules in BW

    Hi All,
      I am a SAP Tech.consultant and wants to know the Role of ABAP in SAP BW in transfer and Update Rules. I want to know the general update and transfer rules in BW.

    Please search the forum as this has been dicussed in details many times. Thanks!

  • Transfer rules & Update rules

    hi gurus,
        what is difference between transfer rules and update rules? Can we do currency conversion in transfer rules? if yes how? if no why?
    as far of my knowledge i think tran rules are info object level and update rules are data target level.
    points are rewareded...
    thanks
    bw bw

    Hello,
    Transfer Rules:
    When we maintains the transfer structure and the communication structure, we use the transfer rules to determine how we want the transfer structure fields to be assigned to the communication structure InfoObjects. we can arrange for a 1:1 assignment. we can also fill InfoObjects using routines, formulas, or constants.
    Update rules:
    Update rules specify how the data (key figures, time characteristics, characteristics) is updated to data targets from the communication structure of an InfoSource. You are therefore connecting an InfoSource with a data target.
    For Currency Conversion, put a mail to [email protected]
    I have an excellent document which would be help ful to you.
    Thanks
    Ramu

  • ABAP Program to delete the update rules

    Hi guys,
            Is there any ABAP Program to delete the update rules if any body knows.

    Hi dear,
    try with FM RSAU_UPDR_DELETE...
    Hope it helps!
    Bye,
    Roberto
    ...and please dont forget to reward the answers...it-s THE way to say thanks here !

  • Trnsfer rules & update rules

    Hi gurus,can u please tell me the difference between transfer rules & update rules from application point of view?

    Hi Sagar,
    You can refer these threads..
    Transfer Rules and Update Rules
    update rules vs transfer rules
    Transfer rules & Update rules
    Difference between Update rules and Transfer Rules
    Transfer Rules and Update Rules - difference ?
    Transfer Rules and Update Rules
    transfer rules and update rules
    Transfer Rules and Update Rules
    Regards.

  • ABAP objects for transfer/update rules - does this apply to include stateme

    I have a question about the new requirement for the code in the update/transfer rules to be written in ABAP Objects standards.  Does this still apply if in your update rules you using include programs?  Does this mean that when we upgrade we will have to follow the ABAP Objects standards (ie no header lines)?

    Routines will method based.
    In addition to what Chetan has sent, check this how to also.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19
    Ravi Thothadri

  • ABAP code help for 0PROFIT_CTR  (in Update rules)

    Hi
    Can you please give me the update rules code that would do the following in BW 3.5:
    If Profit Center is 10 digits long, its ok but if Profit Center is 5 digits long, concatenate with 5 zeros.
    Thanks
    Jimi
    Edited by: jimi ogun on Dec 1, 2011 1:44 PM

    Hi Soorej
    I tried teh code in my transfer rules but the result was blank. I guess it was because i didnt insert anything in the RESULT line... This is what i tried to do but i get a syntax error:
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    data : len type i,
          v1(10) TYPE c value 'abcde'.
    len = strlen( v1 ).
    if len = 5.
    CONCATENATE v1 '00000' into v1.
    endif.
      RESULT = /BI0/OIPROFIT_CTR.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    The syntax error i get is below:
    E:Field "/BI0/OIPROFIT_CTR" is unknown. It is neither in one of the
    specified tables nor defined by a "DATA" statement. "DATA" statement.

  • ABAP Runtime error while activating Update rules.

    Hi Gurus,
    Actually we are in NW 2004's SP9.
    While activating the update rules of cube "0PY_PPC01" it is going to ABAP runtime error. It is giving the key words like "MESSAGE_TYPE_X"
    "%_T005K2" or "INSTANTIATE". And i apply NOTEs also i am unable to fix it.
    Can any one give  correct NOTE number that can fix it or any suggestions.
    Thanks in advance.
    Thanks
    Raju.k

    Hi Sven,
    Now we are also in SP11, But the thing is all the other UR are working fine Except
    this UR. Even there is no perticular NOTE number for this.
    Thanks
    Raju.k

  • Convert ABAP code in start routine/update rule to transform. start routine

    Dear BW ABAPers,
    I have created a custom purchasing info cube (YCP_PURC1) based on 0CP_PURC1 standard cube. I would like to convert this new data flow to BI7 (from 3.x), and convert the standard update rule to transformation. I would need to rewrite the below start routine from the standard update rule to a start routine ABAP code in the newly created  transformation / start routine. My ABAP knowledge is limited. Will you please help?
    *this is the start routine from the update rule. As a side note, the data source is 2LIS_02_SCL.
    LOOP AT SOURCE_PACKAGE.
        IF (     SOURCE_PACKAGE-cppvlc  EQ 0
             AND SOURCE_PACKAGE-cppvoc  EQ 0
             AND SOURCE_PACKAGE-cpquaou EQ 0 ).
          DELETE SOURCE_PACKAGE.
          CONTINUE.
        ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
        IF SOURCE_PACKAGE-no_scl IS INITIAL.
          IF SOURCE_PACKAGE-storno = 'X'.
            SOURCE_PACKAGE-no_scl = -1.
          ELSE.
            SOURCE_PACKAGE-no_scl = 1.
          ENDIF.
          MODIFY SOURCE_PACKAGE.
        ENDIF.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    Many thanks and look forward to your kind feedback.
    Kind regards,
    Csaba

    Dear All, Durgesh,
    thanks to you all for your valuable input. Mainly the ABAP part was more interesting for me.
    Durgesh, thanks for your input, it was useful. I just had to change the info objects to data source fields and add the lines before the loop:
    DATA: I_PACKAGE TYPE TYT_SC_1.
        FIELD-SYMBOLS <i_package> TYPE tys_sc_1.
        I_PACKAGE[] = SOURCE_PACKAGE[].
        LOOP AT SOURCE_PACKAGE assigning <i_package>.
          IF ( <i_package>-BWGEO EQ 0
          AND <i_package>-BWGEOO EQ 0
          AND <i_package>-BWMNG EQ 0 ).
            DELETE SOURCE_PACKAGE index sy-tabix.
            CONTINUE.
          ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
          IF <i_package>-NOSCL IS INITIAL.
            IF <i_package>-ROCANCEL = 'X'.
              <i_package>-NOSCL = -1.
            ELSE.
              <i_package>-NOSCL = 1.
            ENDIF.
          ENDIF.
        ENDLOOP.
    Points have been assigned accordingly.
    Thanks,
    Csaba

  • ABAP program running time-BW update Rules

    Hi All,
    I have an ABAP program that is in one of the update rules from source ODS to destination ODS. Source ODS has 20million records. When we are loading the records to destination ODS , Is there any way I can find howmuch time will take to process 1 record and also when it is running how do I know howmany records it has processed or howmany yet to process ? I have tried with SM50 but not able to find much useful information?
    Please help me and if you have any documents please send it to [email protected]
    Regards
    Vennela

    Hi Vennela,
    just choose one request and click on monitor -> details. Click on processing -> Data Package 1 -> Update Rules. If you put the cursor on the first node, you'll see a date and time field on the screen (below). If you click on the last node you'll see how long it took to process the records.
    Another possibility would be to run it in simulation mode and check the response time. To do so, you'll have to click on 'Response Time' in the SAP GUI field below at the right side of your screen (normally it shows the system name and mandant).
    Hope that helps!
    Regards
    Nicola

  • IN BW UCCHECK transaction for Unicode does not list Transfer/Update rules

    Hi All,
    We are going to update our BW system to install Enhancement Package 1 SP 7 on our BW 7.0 and we are going also to convert our data base to Unicode.
    We used the UCCKECK Transaction to have a list of the abap programs to be modified before the u201Cconversionu201D procedure.
    But the transaction does not list the abap code included into transfer rules, update rules and start routines.
    Have you an idea to recover them?
    And do you think the conversion procedure will abort if these kinds of routines are not adjusted or they will go in error at runtime?
    Do you have experienced this problem?
    Thanks a lot.
    Antonella

    Hi Nils, sorry for delay in replyu2026
    Unfortunately we started to develop our routines in BW2.0 and checking some of them we receive the error u201CIn Unicode programs, the "-" character cannot appear in names, as it does here in the name "W-DATE" u201Du2026
    And further more in subsequent BW releases the same error is only a u201Cwarningu201D into a NON Unicode system. 
    So I think we should check and correct all our routines before the Unicode conversion.
    My best regards, Antonella

  • How-to get transformations from transfer/update rules

    Hi all,
    we did an upgrade to BI 7.0 frm BW 3.5, how shall we get the new things like transformations,DTP for tha already existing cubes/ODS. is there any procedure to convert transfer and update rules to transformation.
    Thanks all,
    Regards

    Migration - Yu may wish to read below steps
    Transformation Rules
    automatic mapping without the use of an Infosource.
    steps are listed below.
    On the InfoSource Tab (Note- Ensure DataSource and Infosource have not been migrated)
    1. Right Click > Additional Functions > Create Transfer Rules
    2. Activate Transfer Rules
    3. Right Click > Additional Functions > Transformation erzeugen
    On the DataSource Tab
    4. Create Transformation (Map to DSO, should map automatically)
    5. Migrate DataSource
    6. Create InfoPackage
    7. Create DTP
    Assessing Migration Scenario's
    Transformation Rules
    Strategy toward new and 3.x datasource / infosource
    Re: Few questions on BC activation..
    Replicate NEW/3.x datasource - Methodology
    Replicate NEW/3.x datasource - Change back to 3.x datasource Methodology
    Re: Datasource Identification
    Hope it Helps
    Chetan
    @CP..

  • Diff. bt update rules & transfer rules....,

    Hi all,
    wht is the diff. bt update rules & transfer ruls...,
    mainly i want to know that when we use for update & when for transfer rules we have to choose........,
    let me know from any one plzzzzzz...,
    Regards,
    Swetha.

    Hi Swetha
    Transfer rules :use the transfer rules to determine how you want the transfer structure fields to be assigned to the communication structure InfoObjects
    Update Rules :Update rules specify how the data (key figures, time characteristics, characteristics) is updated to data targets from the communication structure of an InfoSource. You are therefore connecting an InfoSource with a data target.
    Basically update rules are specific to Data Targets where as Transfer rules applies to InfoSource.When you want rule to apply to all the datatargets from a Infosource ,you write it in Transfer rules.
    Hope this helps.
    <i>Sudh</i>
    Assign points if this helps

  • What is the Relationship between Update Rule and Infopackage/Transfer Rules

    Hello Experts,
    can you help explain these scenarios to me:
    What is the relationship between update rules and infopackges?
    What is the relationship between transfer rules and infopackges?
    What is the relationship between update rules and transfer rules?

    Hello,
    Info-packages trigger the data load into BW system from the source system. An info-package is created for a specific data source and info source combination.
    1) When you trigger the info-package it sends an request to the source system to start the extraction process and this corresponds to the step "Data Request Received" in monitor under details tab. It is the first step.
    2) Then the selections specified in the info-package are transferred to the source system to select the requested data from BW system. Then it is sent back to BW system.
    3) Once it reach BW, it gets into the PSA and then it gets updated into the data target (depends on what settings are made in IP). No rules (Transfer rules / update rules) comes into picture when data is stored in PSA. Only the transfer structure is used to map the BW info-objects with the source system fields.
    4) After data is stored into PSA, the update into the data targets begins. First the transfer rules are applied -> data then flows through the communication structure -> update rules are applied and finally the records gets updated into the data target. 
    The extraction flow is: -
    Source System (DS) -> PSA -> Transfer Rules -> Communication Structure -> Update Rules -> Data target.
    Info-package actually triggers the whole data flow in BW system.
    Hope it gives you a clear picture.
    Thx,
    Soumya

Maybe you are looking for