Copy routines written in transfer rules to other system

<Moderator Message: Even as a newbie you should be able to copy and paste or read here and write there>
Hi All,
In the datasource '0CO_OM_OPA_6' , in the transfer rules for infoobject 0PART_CCTR' , we have a ruotine written 'Fill  Partner Cost Center from Partner Objects'.
Now I want to write the same routine for same infoobject in another test server for the same data source.
Can anybody please tell me how to go about from start as I am new in BW.
Regards,
Sushmita
Edited by: Siegfried Szameitat on Jun 8, 2009 3:47 PM

I think you should check the source system assignment in the transport connection. It might have directed to the old sytem.
Cheers
Chanda

Similar Messages

  • Problem in standard routine 0RPM_DSKF in transfer rules 0rpm_role_d

    HI all,
    I am extracting the data from xRPM 4.0 to BW 7.0.Even though i am using BI 7.0 presently we are using 3.5 only.I have installed the transfer rules after that i am trying to activate the transfer rules .But i am getting the error with standard routine ( Syntax error ) written In transfer rules for one key figure 0RPM_DSKF.
    Data source : 0RPM_ROLE_D
    Data Target : 0RPM_C02
    Info Source : 0RPM_SRAR_02
    Routine :
    if TRAN_STRUCTURE-&RU& <> 'FTE'.
    RESULT = TRAN_STRUCTURE-ANUMBER.
      else.
        RESULT = 0.
      endif.
    There is no filed inT.Stru contains RU.
    Please suggest me what would be the solution for this.
    If is there any relavant OSS Note plz provide me that and also provide me the valuable suggestions.
    Thanks & Regards
    Ramakanth

    Hi Rathy!
    Thank you very much for your quick help! Usually I do the same. Now I faced with BI system, where data source were already activated in system A and replicated. I can see all needed active sata source un BI already. But I can not see transfer rules in content!
    What you can advise?
    Reagrds, Iryna.

  • 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

  • Creating a start routine in the transfer rule

    I'VE CREATE a start routine, seel bleow.  Now I want to get at one of the fieds for a Key figure.    How do i do that?    do I need to add it to the transfer structure
    LOOP AT ROUTEDAY INTO WA_ROUTEDAY.
    CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT'
    EXPORTING
       input = ROUTEDAY-ROUTE_DAYS
    IMPORTING
         output = WA_DAYS_OUT.
      WA_ROUTEDAY-ROUTE_DAYS_CONV = WA_DAYS_OUT.
      APPEND WA_ROUTEDAY.
    ENDLOOP.

    Hi Mick,
    check these links
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    Hope this might help you.
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • 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

  • Restore transfer rules after source system deletion

    Hello,
    due to several reasons I had to cut source system assignment.
    The source system is now new connected to BW.
    My transfer rules and datasources are lost.
    Is there a programm, t-code, ....available to restore that stuff?
    Points will be assigned.
    Best regards.
    Pascal

    Hello,
    Just go to transaction rsa13 right-click over your source system and choose "Restore"
    Diogo.

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

  • Filter data in transfer rules using start routine

    Hi all!
    I am an absolute newbie here, but I have a question regarding start routines and I noticed many questions get solved around here. My situation is the following: I have to create a start routine where the data to be transferred is filtered on an attribute "DESTINAT" in info object "0BILL_TYPE". DESTINAT can be 'M' or 'D' and depending on that letter, data must flow to a separate ODS.
    Well,I came up with the following:
    somewhere in my start routing I guess I'll have to put:
    loop at data_pak.
    DELETE DATAPAK Where DESTINAT = 'D'
    endloop.
    When I place this in my start routine of my transfer rules leading to the ODS where data must be of DESTINAT type 'M', will this do the trick?
    I want to put the following code in the transfer rules leading to my other ODS, where data must be of type DESTINAT = 'D':
    loop at data_pak.
    DELETE DATAPAK Where DESTINAT = 'M'
    endloop.
    I'm sorry that this is a very basic question, but like I said: I'm a newbie in SAP...

    hi Joris,
    have a lok at the foll  help docs.:
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/content.htm
    cheers
    shameem

  • Start Routine for transfer rules

    Hello experts,
    I want to use the SQL DISTINCT keyword to return non-duplicate results from a table in a DataSource (data base) in a the start routine for the transfer rules.
    How do I address that table in the start routine of the TR?
    I thought about something like that.
    TABLES: mytable
    DATA: itab_mytable type table of mytable
    SELECT DISTINCT CUSTID, etc.
    FROM mytable into table i_tab.
    I am new to ABAP so I would be happy to get some suggestions!
    thanx in advance
    Axel

    Hello Oscar,
    as fa as I understood the entire data package in the transfer structure format is used as parameter (DATAPAK) for the routine.
    so I want to perform a SQL statement on DATAPAK!
    But it sais it can't find DATAPAK in ABAP-Dictionary as a table!
    can I actually perform SQL statements on DATAPAK?
    Thanx
    Axel

  • Challenge - Defining "global" variable accessible in Transfer Rules Routine

    Hi,
    Is there a way to define a global variable in BW which is accessible via all the "Routines" in the Transfer Rules in the Info Source.
    Scenario:
    1) I have a field called ZTEXT in the transfer rules.
    2) I am adding code in the Routine to manipulate this data in the Transfer Rules for the Info Source.  Ultimately the RESULT will be populated with a value.
    RESULT = .
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line   
    3) In the Routine Code, the value of the RESULT will be derived based on what's in a field called "g_value".  I don't want to derive the value in the "g_value" field in each Routine for each record that gets processed as it will take a performance hit. I am looking for a way that "g_value" can be populated once e.g. in a START Routine or another alternative and then "g_value" can be used throughout the Routine for any field in the transfer Rules.
    Is there a way to define and populate "g_value" as a global variable so its VALUE can be retained and used in all the Routines in the same transfer rules.  Note that there will be a fair amount of logic to derive "g_value" and hence the need to avoid deriving it each time.
    Could someone advise me if this is even possible?  If so, could you give me a ABAP code sample for it please? 
    Thank you very much,
    Haritha

    if you create the variable as global and in your start routine, calculate and give it a value, you can use that value in all your individual routines.

  • Creating an Incremental Unique Key in Transfer Rules Routine

    Hello Experts,
    In my Infosource, I have created a routine in the transfer rules on my infoobject.  I am trying to load my data from a flat file and create a unique key by autonumbering a field in my infosource/datatarget. 
    I am new to ABAP and can not figure out why my code will not return a value...
    Under "Use of Transfer Structure Fields" I chose my field to change only, and entered the following code:
    Under Global Code I declared my counter because I want it to maintain its value during the entire load:
      DATA: COUNTER TYPE I VALUE 0.
    Then in my routine I have the following code:
      COUNTER = COUNTER + 1.
      RESULT = COUNTER.
      RETURNCODE = 0.
      ABORT = 0.
    I expect this to return 1 for the first record, 2 for the second, and so on - therefore giving me a unique key.  Any assistance in my code or other ways to automate this process in BW would be greatly appreciated.
    Thank you.

    Sean,
    It looks like your routine is basically correct.  Have you tried using single quotes around the S instead?  Also - you may want to add a statement to indicate what 0AMOUNT should be in the instance where your condition isn't true.  Something like this:
    IF tran_structure-shkzg  = 'S'.
    RESULT = tran_structure-wrbtr * -1.
    ELSE.
    result = ???
    ENDIF.
    Good luck!  The syntax check in the transfer rules leaves a bit to be desired, doesn't it?

  • 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

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

  • Unable to activate Transfer Rule

    Hello Experts,
    I am not able to activate Transfer Rule in my System ( BW 3.0).
    I have written one routine and then when I am trying to activate I am getting below error messageu201D
    Object 0NOTIFICATN_ATTR object version not found in table.
    My Data Source name is 0NOTIFICATN_ATTR.
    I have also tried to activate by using   RS_TRANSTRU_ACTIVATE_ALL but still no luck.
    I also checked table TADIR and I can see entry over there.
    Regards,
    Pankaj Naik.

    Hi Pankaj,
    Try to activate the transfer rules by executing the SE38 report  - RS_TRANSTRU_ACTIVATE_ALL.
      Also check the note - 884385 , For 'RSAR' errors while activating update and transfer rules.
    Regards,
    Lokesh

  • How to delete blank space from value of Infoobject in the transfer rule

    does anyboady know how to write a routine in the transfer rule in order to delete ending blank spaces from value of Infoobject 'ORDTEXT'. E.g. value: 'ABM    '?  After routine, the result should be 'ABM'.
    Thanks for any input.

    Deleting 'ending blank spaces' from a character type field (ie info-object or text) in SAP is not meaningful. For all usage, a char type field of length 8 having value  'ABM     '  is same as 'ABM'.
    Ok, HTML is changing the display in the above, so let me restate it
    For all usage, a char type field of length 8 having value  'ABM_____'  is same as 'ABM', take the underscore character (_) in the first string as a placeholder for space character.
    Edited by: Ajay Das on Jul 29, 2009 12:07 PM

Maybe you are looking for

  • Problem while accessing object in remote database

    Hi All, We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which

  • How to attach .mdf file to sql server 2008 EXPRESS

    I have .mdf files created using SQL SERVER management studio 2012 in another computer and wish to attach the same to SQL SERVER 2008 EXPRESS in another computer. How should I do so? I tried this method :How to: Attach a Database File to SQL Server Ex

  • Photoshop CS2 and iPhoto

    I just got a iMac and when I try to set CS2 as editor in preferences of iPhoto: there is no choice allowing this. I only get choices of Aperture or window selections. No other program including CS2 which was transferred from my previous Mac is offere

  • Error for install illustrator cc

    when I'm downloading illustrator throws me this error: Exit Code: 6 Please see specific errors below for troubleshooting. For example, ERROR: -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2

  • Any Alternative to install apps

    Hi Everyone, I am Govinda from Bangalore,India. I am using BB Z3. I just want to know is there a way to install the apps from Blackberry world in SD Card storage rather than the Internal phone storage? Thanks, Govinda