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

Similar Messages

  • 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

  • Error while installing transfer rules for 0PM_C03 from Business content

    Hi All,
    When i try to install the transfer rules for the Infocube 0PM_C03 from the Business Content, i get the following error:
    "Mapping between 2LIS_17_I3HDR  2LIS_17_ORDER is inconsistent".
    Here 2LIS_17_ORDER is the Infosource, and 2LIS_17_I3HDR  is the datasource.
    Also, kindly let me know how can the Infosource and the datasource have different names, like in the case for this Cube.
    Kindly help...

    Hi,
    The datasource and infosource can have different names no issue with that.
    and while selecting transfer rule for installing find with '2LIS_17_I3HDR'.
    Regards,
    Rathy

  • Activating transfer rules for new source system

    Hi
    we are having 2 R/3 source system in BI. I had activated all the transfer rules with the first source system and now i have created a new source sytem connecting to a different R/3 client. I tried to change the transfer rules point to the new source system using the program RS_TRANSTRU_ACTIVATE_ALL giving the new source system and the infosource name. But i get the error "No Transfer Structure Selected" when i execute the prg.
    how can i change the source system without creating the transfer rules for the new source but use the existing transfer rules and just change the source system assigned to it????
    Regards
    Sujai

    Hi Sujai,
    There are many cases when this program is used.
    When the Trans rules get de-activated due to impact,we need to first replicate the data source and activate the TR using this program.This generally occurs during the data loads in prd.
    It does not makes sense to transport it when there r no changes done to the TR.So simply,u can use this program to activate.
    If the program does not work,then you are left with the transport option.
    Thanks & Regards,
    Suchitra.V

  • 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

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

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

  • Transaction to see the Open stock transfer order for the plant

    HI ,
    i need to develop one report in that client to make the report for the all open stock transfer order & the cost of the open stock transfer order for the plant .
    I need how to cretae the stock transfer order for the material , whci material master is required for this process.
    please give me step by step details for this .
    regards
    satish
    Edited by: satish kapartiwar on Jul 16, 2009 9:33 AM

    Hi Satish,
    You can see open stock transfer quantity in MB5T and stock value in MB5L. If you want to make stock transfer, there is two types intra company transfer(with in same company code) and inter company transfer (different company codes).
    Steps for Intra company stock transfer:
    This is only within the comp.code(w/o SD)
    (w/o SD) 351101 MvT. and (with SD) 641101
    1. Mat.(1434)should be maintained in both the plants.(@1000&1100).
    2. Should have enough stock in supplying plant(1000).
    3. Make its supplying plant as a vendor in vendor master record in receiving plant(1100).
    4. Make it receiving plant as a customer in customization.
    Create customer (xd01) & and define the shipping data for plants in both the plants.
    Path: spro u2013 img u2013 material mgmt u2013 purchasing u2013 po u2013 set up STO u2013 define shipping data
    (1 by1 )
    In Receiving plant (1100)
    Customer num. 123345 (for ex.)
    Sales org. yyy
    Dist. Channel yy
    Sales div. y
    In Supplying plant (1000)
    Customer num. -
    (don't fill)
    Sales org. yyy
    Dist. Channel yy
    Sales div. y
    5. Assign doc. Type is "NL" for intra company STO. If STO is inter company, Assign doc. Type is "NLCC".
    Position doc type is "UB"
    Enter supplying plant(1000) & doc type (NL)&checking rule (ex:01)
    6.Assign doc. Type is "UB" to u'r plants.(PO)
    Go for new entries
    Enter supplying plant(1000) & Receiving plant (1100)&doc type (UB).
    7. Create a PO, choose the doc type is 'UB' & item cat.'U', Enter supplying plant as a vendor in PO of the receiving plant(1100).
    8. Provide this num (PO) to SD people, they will do the delivery by using transactional code is VL10B.
    9. Sales people they will provide "out bound delivery num".
    10. Do the GR. In GR the second tab 05 outbound delivery instead of PO mov.type 101.
    11. See the stock overview in the receiving & supplying plants.
    Steps for Inter company Transfer:
    1) Create one Customer Master in XD01 with respect to Supplying Plant Sales Area and assign this Customer no with Receiving Plant in OLME->PO-> set up STO->Define shipping data for plant and for the supplying Plant assign the above sales area.( Make sure, In Customer Master, sales Area Tab: you are maintaining shipping condition)
    2) For Receiving Plant Pur. Org and Co.Code Combination create Vendor master in XK01 and in this vendor master assign the Supplying plant in Pur.Org.Data screen->Extras--> Add.Pur.data
    3) OLME->PO-> Set up STO------>For your supplying plant assign document type NB, Delivery type NLCC and Checking Rule RP
    4)then For your supplying Plant and receiving Plant assign Document type NB
    5)Make sure you are maintaining Sales View for the material at supplying Plant and in Sales /Gen plant Data view maintain Availability check, Loading group and Transportation group.
    6) In SPRo-->Logistics execution> Shipping->Basic shipping functions->Shipping point Determination>assign shipping points-> For your Loading group, Shipping Condition and Supplying plant combination, Assign shipping point
    these are the configuration settings you have to do in background.
    Then Create STO from Receiving Plant in ME21N with document type NB.
    Based on that STO, Create Delivery in VL10B from supplying Plant
    Do PGI in VL02N from Supplying plant
    Do GR in MIGO at Receiving Plant keeping Outbound delivery as a ref. document.
    Now your STO bet. two plants belongs to diff. Co.Codes will be completed.
    Regards,
    Prasath

  • 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

  • Problem in transfer rules-- Calling the function module.

    Hi All,
                 when we r extracting the data from r3,  the infoobject 0wbs_elem the data pulled is in internal format in which wbs element is stored.
    wbs element gets stored in a different way compared to front end.
    Eg. The external format is /abc/123 the internal format is 00012300.
    I have written a transfer routine using the function module CONVERSION_EXIT_ABPSP_OUTPUT.
    the code goes like this
    data ifield(30) type c.
    call function CONVERSION_EXIT_ABPSP_OUTPUT
    Exporting
    input  =  tran_structure-wbselem  (Field in transfer structure---name of the field in source system) .
    Importing
    output = ifield.
    result = ifield.
    End of code.
    Problem
    When I am Scheduling the package the job doesnt get completed for a long time and fails.Is there a problem with the code. When trying for the Simulation of the datapackets,  the system says no data package number could be determined.
    Please help me out...
    Thank You
    Mahesh

    Hi Mahesh,
    Could you please check ST22 and see if there is any short dumps ?
    try to do test run for the FMs using SE37 and see what is the output for your input.
    Do you have PSA for the load ? It may also have been deleted. You get this message when there is no PSA available.
    hope it helps
    Thanks
    Soumya

  • How to refer field of DataSource in transfer rule for DSO object  in BI 7.0

    hello Gurus,
    I am new to BI 7.
    pls tellme how to refer field of DataSource in transfer rule for DSO object.
    I will assign points to proper answer.
    Praveen.

    hi praveen,
    when u create the transformation for the DSO, it asks for the source. in that you enter your datasource, then you get the datasource fields on one side and the rules in the middle and the DSO objects on the other side. whichever field of DataSource you want to refer in tranformation rule, just connect that field to the rule for the required object of the DSO.
    hope this will help you.
    regards
    vaibhav

  • 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 delete unwanted transfer rules from the pool

    Hi experts,
    I want to know how to delete the unwanted transfer rules from the pool on the right hand side of the transfer rules. I realized I don't need them. I get a warning icon with them sitting in the pool.

    You can't delete it yourself.  All you can do is hide it so it doesn't appear on your purchased list, as explained here: iTunes Store: Hiding and unhiding purchases.  iTunes store support may be able to do this for you if you contact them by filling out this form: https://ssl.apple.com/emea/support/itunes/contact.html.

  • Technical Content BI Stat`s missing Transfer Rules for 0TCT_CA1

    Hi,
    I installed the new 7.0 technical content and had several glitches. Some are fixed with the new SP16, that we installed.
    We are at BI Cont 7.03, patch 8.
    There is no business content for the Frontend & OLAP Statistics (highly aggregated) 0TCT_CA1 transfer rules - although the cube and communication structure are there - as well as the virtual and multi cube with a lot of queries etc.
    Does anyone have a solution for this?
    Thanks!
    Kathleen

    Hi Kathleen Cooke ,
    I am having similar issue now, can you please let me know if you know the solution for the below problem..
    I am trying to activate the Business Content for BW Statistics, but the datasource and the  Transfer Rules are missing for the 0TCTPRCSVAR_TEXT and also a couple of BW Statistics objects...
    I am on
    BI_CONT 703, level 0005, Support Package SAPKIBIIP5
    SAP_BW 700, level 0012, Support Package SAPKW70012
    Thank You,
    Varun.

Maybe you are looking for

  • Performance on Select's LIKP, LIPS, VBUK, VBUP..ect..

    Hello Abap guru's... I have a performance issue on this select, Please give me good input's! SELECT VBELN LFART VKORG LFDAT INCO2 ROUTE    FAKSK KUNNR KUNAG         WAERK BLDAT VSART ZZINS_FACE ZZDELY_VAL ZZLSCH FROM LIKP         INTO TABLE ISO_LIKP

  • Report painter report o/p in grp cur and local curr.

    hi gurus, I have a cost center report for one user the reports gives output in local currency and for the another person it gives in group currency . is there any thing to do with user setting. as the report is very old and SAP developed one ...

  • Process Task Assigned to field

    HI, How does a process task get assigned to a particular user. we are running reconciliation and see that the System validation task is getting assigned to a disabled user. Thanks, M

  • CS6 Bridge caching bug

    In this thread we discussed a problem with CS6 Bridge constantly re-caching layered Tif files: http://forums.adobe.com/message/4473274#4473274 Since then a new related problem has been reported and discussed on other forums. Sometimes Photoshop refus

  • Flash Player won't work

    I was requested by the author of a video I was trying to view to upgrade my Flash Player.  I downloaded Flash Player 11 from the Adobe web site.  I uninstalled the old program.  Went back to the video I was trying to view and got another request to u