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?

Similar Messages

  • Normal Indexes created for Primary/Unique Keys in Oracle8/8i

    I remeber prior to Oracle8, when we create a Primary/Unique Key constraints, an unique index will be created by default. But I am noticing now in 8/8i when we create either Primary or Unique key, only normal/simple index is created. We are not able to override this normal index either by dropping and recreating the index alone. I believe it would be pretty much better in case of performance if we have a unique index for this columns. Can anybody help why is it changed so in 8/8i??
    Thanks,
    R. M.

    Dear Rob,
    since your answer was helpful and since it was the only one I will grant you full points on that.
    Thanks again for your input. In case other developers should look this thread up being confronted
    with the same kind of problem, here is how we solved it:
    We added an artificial primary key (a number of type NUMC 8) to the table which is supposed to
    include the structure. This key alone takes care of the uniqueness of eacht entry.
    All the others fields that we want to have available for a fast direct access, including the ones
    from the included structure, are put together in a secondary index.
    best regards
    Andreas

  • Cannot create DDL for Unique Key

    I have a relational model with a unique key constraint. When I go to Export -> DDL File for my model, and look at the PK and UK constraints tab for "DDL Generation Options", the UK is checked. But upon inspecting the generated DDL file, it is not being generated! The target database in Oracle 11.1 and I am using DM 4.0.3.853.

    Hi,
    Very strange.  Is there anything unusual about the Table or its Unique Key column(s)?
    Is everything else being generated as expected?
    Are there any relevant error messages in the log?  (You can use External Log on the View menu to display the log.)
    David

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

  • Transfer Rule Routine: Assign Date Value into Blank Field

    Can anyone help me with regards to writing some ABAP code in a transfer rule so that I can assign "99991231" value into a date characteristics if it is blank?
    Many thanks for advance.

    I would like to check if the value of EXPIRYDATE is blank in data source. If its value is blank, assign '99991231' to it. Otherwise, it will get the value of EXPIRYDATE in transfer rule. I have rewritten the routine as follows. But there is no effects on the result.
    if TRAN_STRUCTURE-EXPIRYDATE IS INITIAL.
      RESULT = '99991231'.
    else.
      RESULT = TRAN_STRUCTURE-EXPIRYDATE.
    endif.
    Many thanks in advance.

  • Transfer Rule Routine: Change date format

    Can anyone help me with regards to writing some ABAP code in a transfer rule so that I can change the format of a date (from 04/01/06 in the PSA) so that it's wrtitten as 01.04.06 into the cube?
    Many thanks in advance,
    Matt
    Message was edited by:
            Matt Potts
    Message was edited by:
            Matt Potts

    Hi Matt,
    so you are not using a standard date field or any other characteristic that refers to 0date, aren't you? If that is the case, just do the following in a routine:
    replace all occurrences of '/' in tran_structure-<your date field> with '.' into result.
    If you are using a standard date field which is always displayed as dd.mm.yy you need to convert it into the internal sap value which is yyyymmdd. You can achieve that by calling the fm CONVERT_DATE_TO_INTERNAL in a routine:
    call function 'CONVERT_DATE_TO_INTERNAL'
    exporting date_external = tran_structure-<your date field>
    importing date_internal = result
    exceptions date_external_is_invalid = 1.
    if sy-subrc <> 0.
    a action needs to be done, because the date was not valid.
    clear result.
    endif.
    kind regards
    Siggi

  • Returncode in transfer rules routine

    In every transfer routine template there is such interesting line of comment:
    * returncode <> 0 means skip this record
    I've tried to set the returncode to 1, was a certain condition encountered. However the record isn't ignored at all, and I get this error message in the monitor:
    <i>Record 1 :Returncode 1 with the conversion for the field SOLD_TO</i>
    How does the returncode function?
    Thanks, <a href="https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari">Davide</a>

    hi Davide,
    checked sap help say ?
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/54a2a4705c3c4d9a3726773d741392/frameset.htm
    have you set the option for error handling in infopackage ?
    hope this helps.

  • "Assertion failed" error in Transfer rule routine

    Hello Experts,
    I am new to BW. I am writing small abap routine in Transformation.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-DIVISION TYPE /BI0/OIDIVISION
        SOURCE_FIELDS-/BIC/ZDIVNAME TYPE /BIC/OIZDIVNAME
       EXPORTING
         RESULT type tys_TG_1-/BIC/ZDIVNAME
         Data: wa_Division type /BI0/TDIVISION.
         select single * fROm /BI0/TDIVISION into wa_division where DIVISION
         = SOURCE_FIELDS-DIVISION.
         IF SY-SUBRC = 0.
         RESULT = WA_DIVISION-TXTSH.
         ENDIF.
    My aim here is that I have a Division Infoobject and I want to get its text(name) from text table /BI0/TDIVISION but this code doesnot work.
    Any suggestions!!
    Regards,
    DNP

    Hi Jerry,
    Please find below the details of dump. Thankyou very much for your help.
    Short text
        The ASSERT condition was violated.
    What happened?
        In the running application program, the ASSERT statement recognized a
        situation that should not have occurred.
        The runtime error was triggered for one of these reasons:
        - For the checkpoint group specified with the ASSERT statement, the
          activation mode is set to "abort".
        - Via a system variant, the activation mode is globally set to "abort"
          for checkpoint groups in this system.
        - The activation mode is set to "abort" on program level.
        - The ASSERT statement is not assigned to any checkpoint group.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        The following checkpoint group was used: "No checkpoint group specified"
        If in the ASSERT statement the addition FIELDS was used, you can find
        the content of the first 8 specified fields in the following overview:
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "ASSERTION_FAILED" " "
        "CL_RSTRAN_GEN=================CP" or "CL_RSTRAN_GEN=================CM00H"
        "GET_SOURCE_PARAMETER"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
    User and Transaction
        Client.............. 001
        User................ "USNDIPA"
        Language key........ "E"
        Transaction......... "RSA1 "
        Transactions ID..... "498AF810CE1C0214E10080000AF00ED9"
        Program............. "CL_RSTRAN_GEN=================CP"
        Screen.............. "SAPLSPO4 0300"
        Screen line......... 19
    Information on where terminated
        Termination occurred in the ABAP program "CL_RSTRAN_GEN=================CP" -
         in "GET_SOURCE_PARAMETER".
        The main program was "RSAWBN_START ".
        In the source code you have the termination point in line 39
        of the (Include) program "CL_RSTRAN_GEN=================CM00H".
    Source Code Extract
    Line  SourceCde
        9     lr_rule           TYPE REF TO cl_rstran_trfn_rule,
       10     l_posit_source_ex TYPE rsposit,
       11     l_seg_source      TYPE rstran_segid.
       12
       13
       14   lr_rule = i_r_rule->get_model_rule( ).
       15 *-- GET POSIT pointer to segment field of source.
       16   CALL METHOD lr_rule->get_posit_ext
       17     EXPORTING
       18       i_paramtype = cl_rstran_stat=>paramtype_importing
       19       i_ruleposit = i_posit
       20       i_rulesegid = i_segid
       21     IMPORTING
       22       e_segid     = l_seg_source
       23       e_posit     = l_posit_source_ex.
       24
       25   ASSERT l_seg_source = i_segid.
       26
       27 *-- Get component name from seg
       28   READ TABLE i_t_segment_m ASSIGNING <ls_s_seg>
       29     WITH KEY segid = i_segid.
       30   ASSERT sy-subrc = 0.
       31
       32 *-- Get field name from source field with extern posit.
       33   READ TABLE i_t_seg_source ASSIGNING <ls_s_seg_source>
       34     WITH KEY segid = i_segid.
       35   ASSERT sy-subrc = 0.
       36   IF sy-subrc = 0.
       37     READ TABLE <ls_s_seg_source>-t_field ASSIGNING <ls_s_field>
       38       WITH KEY position = l_posit_source_ex.
    >>>>>     ASSERT sy-subrc = 0.
       40   ENDIF.
       41
       42 *--  r_s_parameter-param_id has to be set out side due to type inheritance of RuleStepMappin
       43
       44   CONCATENATE '<' <ls_s_seg>-y__nm '>' INTO
       45   c_s_connector-s__nm.
       46   c_s_connector-f__nm = <ls_s_field>-fieldname.
       47
       48 ENDMETHOD.
    Regards,
    DNP

  • Two formulas for a single field in Transfer Rules ?

    Hi friends ,
    I am learning BW  3.5 . I have got a problem could you please solve it ...
    My flatfile:           Empno     Empfirstname       Emplastname
                               1000         rajiv                     gandhi
    Expected Result: Empno     Empfirstname       Emplastname
                               1000         RAJIV                RAJIVGANDHI
    I need to concatenate and Convert it into capital letters for the same field (Emplastname)
    Points will be rewarded
    Thanking You

    Hi,
    then just create a routine in the transfer rules.
    routine for first name.
    result = tran_structure-empfirstname.
    translate result to upper case.
    routine for last name.
    concatenate tran_structure-empfirstname tran_structure-emplastname into result.
    translate result to upper case.
    kind regards
    Siggi

  • 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

  • How to create a unique key using two or more attributes?

    how to create a unique key using two or more attributes ?

    The following example illustrate how to create a unique key using two or more attributes/fields
    Scenario: Implementing Unique Key on ManagerID & Location ID in DepartmentEO(Department Table)
    Step#1: Open the Desired Entity Object “DepartmentEO”. Go to Overview tab & Click “General” Finger tab.
    Step#2: Expand “Alternate Keys” section & click “+”.
    Step#3: In the Pop-up wizard, Enter a name for alternate Key “Unique_Manager_X_Location”.
    Step#4: Select the desired attributes/fields from available list & Shuffle to right side.
    Step#5: Now go to “Business Rules” finger tab.
    Step#6: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#7: In the Pop-up, Select “Rule Type” as Unique Key
    Step#8: In the “Rule Definition” tab select the key “Unique_Manager_X_Location”created.
    Step#9: Now go to “Failure Handling” tab, and click the Magnifier Icon .
    Step#10: If the key is not already created then in the “Select Text Resource” Popup, Using the functional design document, Enter display value, Key and Description. And click “Save & Select” Button.
    Step#11: Now Click “OK”.

  • 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

  • Unique Key Violation While Doing Multiple Updates And Create in EJB

    Hello All,
    I am using oracle 9i and Weblogic 7.0. I have a table that has a unique key constraint on one column , say 'Col1' and i am using a CMP to read,create and update data in this table. The problem description is as follows.
    I have JTable that display the data from the above said table. The user can modify the existing data and insert new data that will be reflected in the DB using the CMP. Let us say the following are displayed
    ROW1
    Col1 : 3
    Col2 : 'ABC'
    Col3 : 1 (Primary key in the table)
    Now the user modifies the above row and inserts a new record. Now the following will be the display
    ROW1 (Modified)
    Col1 : 4
    Col2 : 'ABC'
    Col3 : 1 (Primary key in the table)
    ROW2 (New)
    Col1 : 3
    Col2 : 'DEF'
    Col3 : 2 (Primary key in the table)
    When the above data is saved i do the following in the Code
    a) Session Bean
    For (all the data in the Jtable)
    try
    home.findByPrimaryKey(Col3);
    remote.update(Col1,Col2);
    catch(FinderException fe)
    home.create(Col1,Col2,Col3);
    When the above code is run During the first loop the update runs succesfully (i.e update old value of 3 with 4 ) but during the 2nd loop the create (i.e Insert new value 3) gives me the unique key violated exception. The following is the stack trace
    <Oct 25, 2004 11:36:22 AM IST> <Info> <EJB> <010049> <EJB Exception in method: ejbPostCreate: java.sql.SQLException: ORA-00001: unique constraint (UAT_CYCLE2_1.UK_PYMT_DET_TX) violated
    java.sql.SQLException: ORA-00001: unique constraint (UAT_CYCLE2_1.UK_PYMT_DET_TX) violated
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:579)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1892)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2130)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2013)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2869)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
    at weblogic.jdbc.jts.Statement.executeUpdate(Statement.java:509)
    at de.dl.ucs.contract.entity.TerminalPaymentsCMP_kbdoop__WebLogic_CMP_RDBMS.__WL_create(TerminalPaymentsCMP_kbdoop__WebLogic_CMP_RDBMS.java:1435)
    at de.dl.ucs.contract.entity.TerminalPaymentsCMP_kbdoop__WebLogic_CMP_RDBMS.ejbPostCreate(TerminalPaymentsCMP_kbdoop__WebLogic_CMP_RDBMS.java:1353)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.manager.DBManager.create(DBManager.java:1023)
    at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:904)
    at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:180)
    at de.dl.ucs.contract.entity.TerminalPaymentsCMP_kbdoop_LocalHomeImpl.create(TerminalPaymentsCMP_kbdoop_LocalHomeImpl.java:73)
    at de.dl.ucs.contract.helperclasses.SubsegmentMaintanence.saveTerminalPayments(SubsegmentMaintanence.java:697)
    at de.dl.ucs.contract.controller.SubsegmentSL.saveSubsegmentDetails(SubsegmentSL.java:570)
    at de.dl.ucs.contract.controller.SubsegmentSL.processFinanceSubsegmentSave(SubsegmentSL.java:1601)
    at de.dl.ucs.contract.controller.SubsegmentSL_kgzv4j_EOImpl.processFinanceSubsegmentSave(SubsegmentSL_kgzv4j_EOImpl.java:498)
    at de.dl.ucs.contract.events.FinanceSubsegmentBEH.saveSubsegmentDetails(FinanceSubsegmentBEH.java:749)
    at de.dl.ucs.contract.events.FinanceSubsegmentBEH.processEvent(FinanceSubsegmentBEH.java:232)
    at de.dl.ucs.framework.flowcontroller.ControllerBean.delegateAction(ControllerBean.java:229)
    at de.dl.ucs.framework.flowcontroller.ControllerBean_riqvk4_EOImpl.delegateAction(ControllerBean_riqvk4_EOImpl.java:46)
    at de.dl.ucs.framework.flowcontroller.ControllerBean_riqvk4_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:441)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:382)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:726)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:377)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    >
    <Oct 25, 2004 11:36:22 AM IST> <Info> <EJB> <010051> <EJB Exception during invocation from home: [email protected] threw exception: javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exception is: java.sql.SQLException: ORA-00001: unique constraint (UAT_CYCLE2_1.UK_PYMT_DET_TX) violated
    Please help me with this, as far as i am concerned since both update and create is in the same transaction the update on the row must be visible to the create and hence there shouild not be any problem.....
    thanks in advance
    Shanki

    Hi,
    Thanks,
    There are 3 columns involved with that table . Out of whihc one is a Primary Key (string) , The other column (Number) has a unique key constraint defined on it and the last column stores a value corresponding to the 2nd column.
    The reason for me to do a create in the Finder exception is as follows.
    I Loop through the Data present in JTable. As given in the example let us assume that there are 2 rows in the JTable. Out of whihc the First row needs an updation and the second row , which is a new row needs to be created. So During the First iteration of the loop, The findermethod does not throw any exception (Because it is a modfied row) and hence the update gets fired successfully. During the second iteration , since it is a new row the findermethod will throw a finder exception and hence create will get fired.
    I understand that this is not a good coding style but then it is not 100% wrong and i need to find out as to why it is not working.
    Hope am clear in explaining my problem
    Thanks
    Shanki

  • 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

  • Migration of Transfer Rules ( Create Transformation)

    Iam loading master data using direct update through 3.5 datasource. Now i want to migrate the data-source as well as the transfer rules.
    First thing i do is right click on the transfer rules Additional Functions--> Create transformation
    I get the following message
    " Initial error occurred during generation of the transformation "
                      Message no. RSTRAN667
    I tried deleting the transfer rules and recreating it, i get the same problem. I think first i need to create transformation against the transfer rules then i need to migrate the datasource.
    I also tried just migrating the datasource and the transfer rules are gone.
    The same procedure i tried with Business Content master data datasource and that one works.
    Note: we are on Suport pack 12.
    Please let me know if iam missing anything.
    Your suggestions are highly appreciated..
    Thanks

    Thanks for your message..
    But the thing iam doing is Iam migrating 3.5 stuff to 7.0 iam not creating transformations on the datasource.
    In order to attain that migration ,first iam migrating the transfer rules as iam using direct update for master data. While iam doing that Iam getting the error message.
    Voodi I'll look at that option and see if i can accomplish my migration by first migrating DS and then transfer rules....
    But did u get this message for direct update of the master data...
    I tried creating a generic master datasource even for that one also iam getting the same message ...while migrating the transfer rules....

Maybe you are looking for