Error handling in Transfer rules

Hi All,
I have a small code for material mappnig (EAN to SAP) in my transfer rules. If mapping does not exist then I am writting Error message(Type E) in error table G_T_ERRORLOG and setting up value of Returncode to 1.
Also I have done the Error Handling in Infopackage to 1000 Records and selected the radio button "Valid records update, reporting possible(request green)".
Now say I am uploading 5000 records. In that 500 are without mapping.
So, in ideal case system should update request with 4500 records in data target(with status Green) and also create another request with those 500 records(with status Red). In my case it is creating the new request but with zero records and also the request with 4500 records are showing status red, though 4500 records are getting updated in ODS.
But when I do the same validation in Update rules it all works fine. The only difference in coding is, in transfer rules error table is G_T_ERRORLOG and in update rules it is MONITOR.
Any help....
Thanks & Regards,
Samay Mehta

Hi samay,
In the transfer rules, if returncode is not 0, the upload stop,so..
Actually I delete the "wrong" data in the start routine of the transfer rules

Similar Messages

  • Error while migrating transfer rules

    Hi all,
    When migrating <b>2LIS_02_SCL</b> transfer rules to transforamtions I got a shotdump "ASSERTION_FAILED  in 'CL_RSTRAN_TEMPLATE->CREATE_ROUTINE" for this I have implemented Snote : 986199  after this when I am migrating transforamtions are getting created but showing syntax errors (for this transfer rules there are standard routines ) .Can anyone help me to sort out this issue.
    Regards
      KK

    Hello,
    unfortunately not all transfer rules can be migrated automatically.The migration of the business content transformation is done on customer project base. This means some of the adjustments needs to be done manually.
    Please adjust the rules to the ABAP OO compliance.
    This how to paper should help:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fc61e12d-0a01-0010-2883-e2fc63ef729b
    and
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e73bfc19-0e01-0010-23bc-ef0ad53f2fab
    I hope this helps.
    Michael

  • Error when transporting transfer rules

    Hi, i got an error when i transport transfer rules. i got the following errors in various transfer rules:
    Mapping between data source 0CUSTOMER_ATTR and source system EMP300 is inconsistent
    AND
    Reference to transfer structure 0CUSTOMER_ATTR_BB not available. No activation possible.
    I tried to activate the data sources and transport them several times, but i got the same errors. Checking manually i can see the data sources active in my source system, in development and productive instances.
    Thanks in advance.
    Diego Lombardini

    Hello Diego
    Do you choose the correct Transfer Structure in DEV?
    I mean the one that is assigned to EMP300.
    Are you saying that your PROD have the following:
    0customer_text_BA
    And that your DEV only have the following:
    0customer_text_BB
    If the answer to the above questions is YES;
    Find out if some one has assigned ATTR to 0CUSTOMER directly in PROD or somebody has changed 0CUSTOMER_ATTR in DEV without transporting it to PROD.
    I think that one way to resolve this problem is to use the option "overwrite origanls" in STMS.
    Use it with caution and do not mass transport when you use this option.
    Good luck
    /FZA
    Message was edited by: Fariborz Zangoui
    Message was edited by: Fariborz Zangoui

  • Error while activating transfer rules needs help.

    The error while activating 0FI_AP_6 transfer rules is listed below.
    ''InfoObj. 0DEBITOR from fld KUNNR of dataSource 0FI_AR_6 is not active but BCT ex. -> Dtl'' how to resolve this issue and activate transfer rules?

    Hi
    The problem is with your data source replication.
    Activate your data source & replication too.
    Activate your transfer atructure through RS_TRANSTRU_ACTIVATE_ALL .
    If not so, Activate your transfer rule manually.
    Regadrs
    Saravanan.ar

  • Error in creating transfer rules beween infosource and datasource in BI 7.0

    Hello Guys
    I am gettting the following error when trying to create transfer rules between infosource and datasource.
    1. Error while activating transformation
    2. Deletion of Objects with Type Transformation
    3. Preprocessing/Collecting DDIC Objects for Transfor mation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    4. Post Processing/Checking the Deletion for Transfor mation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    5. Object Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K has been deleted
    6. Name of object of type 'TRCS' is missing
    7. Name of object of type 'TRCS' is missing
    8.Key rule 1 (target field: 0COMP_CODE): Initial update set
    9. Key rule 2 (target field: 0PLANT): Initial update set
    10. Key rule 3 (target field: 0OI_EBELN): Initial update set
    11. Key rule 4 (target field: 0AC_DOC_NO): Initial update set
    12. No rule exists
    13. Saving Objects with Type Transformation
    14. Saving Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    15. Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K saved successfully
    16. Activation of Objects with Type Transformation
    17. Saving Objects with Type Transformation
    18. Internal Activation (Transformation )
    19. Preprocessing / Creation of DDIC Objects for Trans formation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    20. Post Processing/Checking the Activation for Transf ormation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    21. Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K was activated
    22. Syntax error in GP_ERR_RSTRAN_MASTER_TMPL, row 1,644 (-> long text)
    23. Error during generation
    24. Error when activating Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    25. Resetting of Incorrect Objects Back to the Active Version (Transformation )
    26. Preprocessing / Creation of DDIC Objects for Trans formation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    27. Post Processing/Checking the Activation for Transf ormation 094TBEAT814OF89GQXFOFI0DX7ATMS4K
    28. Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K was activated
    29. Transformation 094TBEAT814OF89GQXFOFI0DX7ATMS4K was reset to the active version
    Can anyone send me a document on how to create cubes, info and data sources,ODS's,multicubes and t/f and update rules in BI 7.0
    Thanks.

    Transformations in BI7
    http://help.sap.com/saphelp_nw04s/helpdata/en/f8/7913426e48db2ce10000000a1550b0/content.htm
    Regards,
    R.Ravi

  • Error while activating transfer rules

    Transfer method 'TRFC with PSA' is not supported by the source system
    Message no. RSAR508
    Diagnosis
    The PSA transfer method is used to transfer data from source system GBQ480 to transfer structure 0ASSET_ATTR_G4. Source system GBQ480 does not support a PSA transfer.
    Procedure
    Define the PSA in the source system.

    Change Transfer method to PSA in Transfer rules and then activate. If PSA is selected, you will not face this error.
    If you still face this error even after changing Transfer method, check below thread.
    Transfer method 'TRFC with PSA' is not supported by the source system
    Edited by: koundinya karanam on May 22, 2008 12:47 PM

  • Error while creating transfer rules.

    Hi
    I am creating transfer rules and a error  message says " IS_00_BB does not exist". (IS_00) is the desc. of the info source)
    can someone help me on this????
    I had created transfer rules for another cube in the same info area, but no error had come then..
    Thanks.
    Aswath.

    Hello,
    The problem you are reporting could be that you are using the Transfer 
    Method 'IDOC' for the affected transfer rule(s). You should use the    
    'PSA' transfer method (rather than the 'IDOC' method), as the IDOC     
    method is very old.                                                                               
    If so, please change the transfer method in the affected transfer rules
    to 'PSA', then try to activate the transfer structure again. This should
    solve the problem, in which case, please let us know by clicking on the
    'Close' button.                                                                               
    If the problem persists please create the report that is relevant for your system release
    as per the SAP note 493422 and execute the report in your system, the report can be
    created in se38, please talk to your basis team if you have problems creating the report.
    Best Regards,
    Des

  • BI Content Error when activating transfer rule / SAPSQL_ARRAY_INSERT_DUPREC

    Hello Experts,
    when i want to iinstall the transfer rule /CRMBW/OLTP_OPPORTUNITY_ITEM
    from Data Source /CRMBW/OLTP_OPPORTUNITY_ITEM to InfoSource
    /CRMBW/OPPORTUNITY_I  (all Business Content Objects) Iam facing the following situation:
    1. When I use "Simulate Installation" i get the warning for all of the fields: Field APP_SERVER is not supported by DataSource /CRMBW/OLTP_OPPORTUNITY_ITEM in source system SLOGICOCRM. Transfer rules were deleted however, delivered.
    2. When I use "Installation" i get a  dump of the following type:
        Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
        Except.                     CX_SY_OPEN_SQL_DB
        Error in the ABAP Application Program
        The current ABAP program "CL_RSAR_FORMULAS==============CP" had to be
         terminated because it had come across a statement that unfortunately cannot be executed.
        More details of the dump are:
        Trigger Location of Exception
        Program                                 CL_RSAR_FORMULAS==============CP
        Include                                 CL_RSAR_FORMULAS==============CM00E
        Row                                     40
        Module type                         (METHOD)
        Module Name                       GENERATE_ACTIVE_VERSION
    The problem is, i can not map the transfer rule by myself because the the transfer structure contains some important Routines and Formulas which are missing in thereports and i dont know the source code they are using.
    Can anybody help me?
    Greetings from Barcelona
    Oliver
    Edited by: STRATESYS CONSULTING on Jul 23, 2009 2:35 PM

    Hi Oliver,
    Can you please check if you can use the SAP notes 1263075 and 985052 to resolve the problem?
    Best Regards,
    Des

  • Error when activate transfer rule 0DISTR_CHAN

    Hi dear all,
    I''ve a quesiton urgent, plz.
    I've activated IO 0DISTR_CHAN, so his flow before and after. I went to load master data, but I found his transfer rule isn't yet activated. I tried to activated it but a error message like:
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred in the program generation:
    Program / Template:   RSTMPL80
    Error code / Action: 6
    Row:        49
    Message:    Statement concluding with "...LIKE" ended unexpect
    Procedure
    If the problem occurred during the data load or transport, activate the transfer rule.
    If the problem persists, search in the SAP note system under 'RSAR 245'.
    Please help!
    Thanks a lot.
    Juan

    Hi dear all,
    Thanks!
    I tried to re-install this business content just with flow before. And It works.
    Best regards.
    Juan

  • 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

  • Error Handling in Business Rule

    Hi,
    In my Business rule, I want to handle the error with respect to the Run Time Prompt value entered by USer at the time executing the Rule.
    How can i display and customize that message.
    Ex: IF( <cond> is True)
    execute the logic
    ELSE
    display an error message in the run time prompt pop-up
    ENDIF
    In my current logic i implemented , it is executing the logic if the Condition is true but if condition is not ture then it is closing the running pop-up and displaying a message in the web form "<Rule Name> was successful"
    Any thoughts how to handle this!!!!
    Regards,
    KP

    Hi,
    Unfortunately you cannot raise custom error messages from business rules to Planning web client. I suggest you check what you can do with validatedata.js. It provides you with custoomization facility which you can utilize for raising custom messages based on the values on the form.
    Cheers,
    Alp

  • Error in Transporting Transfer rule/structure to Q for generic DS

    Hi,
    We're in NW2004s. we're getting error when we transport Transfer Rules and Structure of generic data sources to Q.
    In R3 Q the DS is active and it pulls data in RSA3 and it is replicated and all the fields are available in BW side as well, but when we transport TR/TS i still get error saying the Datasource is not active. This happens only for generic ones.
    Any idea.
    thanks
    Mayil

    Hi,
    have you inserted both the transfer rule and the communication structure in the same change request?
    When you transport an InfoSource, all it's dependent objects must be present in the same change request; in this way the datasource will be activated.
    I hope it helps you,
    Vito

  • Transport Error while moving Transfer rules - RS_ISMP_AFTER_IMPORT for object type(s) ISMP ( )

    Hello Experts
    Strucked up with an issue while transporting the Transfer rules that are created for an UPFILE source system.
    Transport is included with  list of Data source Replica, Transfer rules, Transfer structure and Info Package.
    My data Source : ZVPRCRDT for an UPFILE
    Below is my error screen :
    Tried to resolve the error by moving the Data source Replica as an individual Transport.
    Still see the same error and my data source is active in the current system.
    Looking for a resolution to find out the root cause.
    Any help is appreciated...

    Thanks for your response Ram.
    My Source System UPFILE is in active mode.
    Unsure why system is throwing error as source system assignement was inconsistency.
    All fields are mapped perfect with one-one relation.
    Worked by reassigning the UPFILE - source system to the data source but still i m seeing the same error : Data Source doesnt exist in source system of version A.
    Transported the DS alone to Quality initially where i m unable to find the transported data source in my quality(target). DO i need to perform replicate meta data ...something like that in quality so that imported data sources will get refreshed?
    If so can you let me know the approach.
    Thanks

  • Error in collecting transfer Rules in transport request after system copy

    Hello,
    Recently we had a system copy from Production to Test system.
    We are trying to collect all the transfer rules from production in the transport request with the procedure which is given in the below link.
    Re: Q: Transfer Rules after system copy
    When we are trying to transport such objects, system first prompt for transportable workbench request, after specifying request once, it prompts for it again and after providing transport request number system results with message u201CSpecify a requestu201D.
    Please suggest how to overcome this issue.

    thats scary that you are copying your transfer rules from production to test system well if you guy sare doing it good luck..
    a part from that make sure your prd is open so it allows items to be able to transport an dthere is a conenction between prd to test for transports to go through
    if you have already copied all te data source to TEST, replicate them IN BWQ( your test system) then send over tranfer fules .
    hope that helps.

  • Error in Infosource, transfer rules transportation

    Hi
    I transport the datasources from R/3-DEV to R/3-QA systems . And those are transported successfully. Then i replicated the datasources from
    R/3-QA system to BI-QA system.
    Now im trying to tranpsort the InfoSource, Transfer rules from BI-DEV to BI-QA system then it says that
    <b>DataSource 1_CO_PA_COST does not exist in source system QS1CLNT400 of version A.
    QS1CLNT400 - R/3 QA system.</b>
    Pls let me know what i need to do
    kumar

    Hi Ravi,
    check in RSA6 whether ur DS is there or not.
    If it is not available,then check in STMS whether the transport has been imported or not.If you do not have authorisation to STMS,ask ur Basis guys to check that.
    Thanks & Regards,
    Suchitra.V

Maybe you are looking for