Transfer rules yellow state

Hi Exterts,
i have done the BC installation of 0PM_C03
now we have to make  it adaptable to our system by  creating ZC objects
so i have created ZC objects
now transfer rules are in yellow state even though i have activated it
i saw the mapping.
some infoobjects  and some field are not mapped in transfer rules
but i could see that all the objects  that are present in 0PM_C03  are mapped in transfer rules and also all objects are mapped in update rules.
now what i have to do to make transfer rules as green
Please Advise ,
Thanks in Advance.
Nitya

HI
try this,
1.check the all dependent objects are in active version or not?
2. are you giving the right source system name, technical name also check if any source system dependent fields your using and trying to club with different sourcesystem in transfer structure?
3. Transfer Rule with YELLOW status signifies that there are fields/InfoObjects which are yet to be mapped.If all the Fields/InfoObejcts are mapped then the status would be GREEN.
check the link
Edited by: Srikanth.T on Nov 3, 2011 9:54 AM

Similar Messages

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

  • Request in Yellow State in Delta update cube.

    Dear Exprts,
    In request , no. of transfered record is 73260 &  added record in cube 73212 with yellow status. Everything O.K. but in Data package  2  in update rule it has  tranfered only 16247 out of 16295. ( this is same diffrence of number of records as in cube ) .
    PSA request is also in yellow state.
    Regards,
    Anand Mehrotra.

    Dear experts,
    Thanks for reply.
    In R/3 & BW  , it showing status job is finished . But  PSA request  is also yellow state.
    In transfer rule ( Data package 2 ) no of tranfered record is equal to added . But Update rule it is different green status.
    how to find out   these records in update rule.
    Regards,
    Anand Mehrotra.

  • How to make use of a global internal table in SAP BW during transfer rules

    HI friends,
    I am ABAP consultant working on some APO info cubes. I have an issue during the upload of planning area data into APO info cube.
    Please help.
    I am using a transfer routine to find the TECHWEEK from a data base table ZGC_CALWEEK based on the on the calender month and calender week.
    Code I am writing is like below.
    *       FORM COMPUTE_/BIC/ZCALWEEK
    * Compute value of InfoObject ZCALWEEK
    * in communication structure /BIC/CSZT6DPPA
    * Technical properties:
    *     field name      = /BIC/ZCALWEEK
    *     data element    = /BIC/OIZCALWEEK
    *     data type       = NUMC
    *     length          = 000006
    *     decimals        = 000000
    *     ABAP type       = N
    *     ABAP length     = 000006
    *     reference field =
    * Parameters:
    *  -->  RECORD_NO       Record number
    *  -->  TRAN_STRUCTURE  Transfer structure
    *  <--  RESULT          Return value of InfoObject
    *  <->  G_T_ERRORLOG    Error log
    *  <--  RETURNCODE      Return code (to skip one record)
    *  <--  ABORT           Abort code (to skip whole data package)
    FORM COMPUTE_/BIC/ZCALWEEK
      USING    RECORD_NO LIKE SY-TABIX
               TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
               G_S_MINFO TYPE RSSM_S_MINFO
      CHANGING RESULT TYPE /BIC/OIZCALWEEK
               G_T_ERRORLOG TYPE rssm_t_errorlog_int
               RETURNCODE LIKE SY-SUBRC
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
    *$*$ begin of routine - insert your code only below this line        *-*
    * DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    DATA: LV_WEEK         TYPE ZGC_CALWEEK-APOWEEK,
            LV_MONTH        TYPE ZGC_CALWEEK-APOMONTH,
            LV_TECH_WEEK    TYPE ZGC_CALWEEK-TECHWEEK.
      LV_WEEK   = TRAN_STRUCTURE-CALWEEK.
      LV_MONTH  = TRAN_STRUCTURE-CALMONTH.
      SELECT SINGLE TECHWEEK INTO LV_TECH_WEEK
        FROM ZGC_CALWEEK CLIENT SPECIFIED
        WHERE  MANDT = SY-MANDT
        AND  APOWEEK  = LV_WEEK
        AND   APOMONTH = LV_MONTH.
      IF SY-SUBRC IS INITIAL.
        RESULT = LV_TECH_WEEK.
      ELSE.
        RETURNCODE = 1.
        ENDIF.
    *$*$ end of routine - insert your code only before this line         *-*
    ENDFORM.
    There are more than 50-80 million records that wil be transferred from planning area to info cube. The select statment is giving pathetic performance as this has to run 50-80 million times.
    After adding the select statment to find the TECHWEEK it is taking 4 times the time that used to take before writing the select statment.
    Is there a way that I can first fetch the data from ZGC_CALWEEK to one internal table and that internal table can be used using read statment during the transfer routine instead of writing select statement here.
    Please help in this case?

    Hi Ashutosh,
    Thanks for the reply,
    The structure of the ZGC_CALWEEK is as below. I have already created a secondary index on the table for this table for the fields APO WEEK and APO MONTH. This didn't help much on the performance.
    I am also planning to keep the ZGC_CALWEEK database table to be fully buffered and this may definitely improve the performance but I need to reduce the data base hits as less as possible.
    MANDT                           MANDT                           CLNT     3     0     Client
    TECHWEEK                           ZTECHWEEK                           NUMC     6     0     Technical Week
    FROMDATE_TECH     DATUM                           DATS     8     0     Date
    TODATE_TECH     DATUM                           DATS     8     0     Date
    APOWEEK                           /BI0/OICALWEEK     NUMC     6     0     Calendar year / week
    FROMDATE_APO     DATUM                            DATS     8     0     Date
    TODATE_APO     DATUM                            DATS     8     0     Date
    APOMONTH                           /BI0/OICALMONTH     NUMC     6     0     Calendar year/month
    The table ZGC_CALWEEK is in APO system, where the transfer rules are being executed.
    As you mentioned START ROUTINE, In the start routine Can I create an internal table let's say GT_CALWEEK with structure ZGC_CALWEEK and pull all the records (I have a max of 2000 records in this table) from ZGC_CALWEEK to GT_CALWEEK and Can I used the same internal table GT_CALWEEK in the transfer routine to read the TECHWEEK from internal table.
    Thank you very much again for you reply. Any help regarding this would be greatly appreciated.
    Best regards,
    Siva

  • 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

  • How to write ABAP Routeines in Update/Transfer Rules ?

    Hi Experts,
    Iam new to BW and i don't have ABAP knowledge.Can any body help me ..to write ABAP Routeines in Update rules/Transfer rules.Give me some basic knowledge with proper example.and what type of routeines we need to write ?
    I will appreciate if some one helps me with proper Documentation.My mail id is [email protected]
    Points will be rewarded.
    Thanks in advance,
    Nayanasri.

    Hi Nayanasri,
    It is not mendatory that u need to write Update routines for all update rules. It depends on the requirement. Without update routine u can always manage. My last implementation was for a small chemical firm where i did not use any of the update routine. Suppose if u want to change the records in datapackage depending on certain conditions, then u can go for this. I'm just pasting one of my update routine program
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS8YGTGDCL6B.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    DELETE DATA_PACKAGE WHERE /bic/yverbr NE  'V2'.
    DELETE DATA_PACKAGE WHERE /bic/ydpbasfs = 0 AND /bic/yoplqty = 0.
    ENDFORM.
    Where the delete statement deletes the records when the field /bic/yverbr noe equals to 'V2' or deletes it when /bic/ydpbasfs equals zero.
    If the explanation is not suffecient, pls post further
    Regards
    Sriram

  • Transfer Rules: How does the mapping work?

    Transfer Rules: How does the mapping work?
    Is there a document out there that explains the following or can someone help clarify it for me. I have some confusion on what is really going on.
    When I create an InfoSource (IS_Test)  as a “Flexible update…”  and then “Assign DataSource”  (DS_Test) and I respond Yes, to the message “DataSource assignment DS_Test to InfoSource IS_Test Save”
    a) <b>Under “Transfer_Structure/Transfer_Rules”</b> in the InfoSource
    1)  the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (<b>Communication Str/</b>Transfer rules) eventually go?
    2)  the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test? The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    b) Under “<b>Communication_Struct.”,</b> in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    4. The left column is “<b>Communication Structure</b>”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    Thanks.

    Hi Caud,
    As Ashish pointed out, communication structure contains fields (infoobjects) that suppose to go to data targets. Which IO in CS to which IO in the data target will go (and what transformation of data may occur) is determined in URs of the data target.
    The transfer structure is the structure in which the data is transported from the source system into BW:
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/0e503c3c0d563de10000000a114084/frameset.htm
    In “Transfer_Structure/Transfer_Rules” in the IS, DataSource /Trans. Structure” tab, right part shows fields in the Datasource, the left part – fields in the transfer structure. There is also a transfer structure in R/3 for a given DS. Transfer structure in BW is created identical to the TS in R/3 during TRs activation.
    During data load data are transferred 1:1 from TS in R/3 to TS in BW.
    TS in BW corresponds to the PSA table structure.
    How data from PSA are transferred to the CS is determined in TRs.   
    The 3rd column (“Field”) (“Transfer Rules” tab, right part (Assigned InfObjct-field)), contains field names of the DS (TS); and the 1st column shows IO in the CS to which the DS field will go. So, it’s a mapping DS filed -> CS field.
    The left part (“Communication str./Transfer rules”) is always identical to the CS content. But the 4th column (“Tp”) shows possible data transformation during transfer from PSA to CS. If this column contains a yellow triangle then there is no transformation (Value of DS field will go to value of CS field). If there is a red cross, it means that no data for this CS field is supplied from a DS. You can click on this yellow triangle and choose: 1). Another field from a DS; 2). Constant; 3). ABAP routine; 4). Formula. So, here you can determine the data transformation. Moreover, there is a possibility to create a start routine (blank sheet icon at the top).
    And finally, here are the answers on your questions:
    Q:
    a)     Under “Transfer_Structure/Transfer_Rules” in the InfoSource
    1) the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (Communication Str/Transfer rules) eventually go?
    A: Right part shows a mapping between DS and CS fields. Left part shows CS fields and data transformation (TRs) during data transfer from TS (PSA) to the CS. These are fields in the CS that will go to data target and which are fed from a TS (DS).
    Q: 2) the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test?
    A: Yes, you are right.
    Q: The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    A: As I described, left and right parts are identical. These fields will go to CS.
    Q: b) Under “Communication_Struct.”, in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    A: these are fields from an IS template, the name of this template you can see above this right part.  Actually, during IS (CS) creation you can choose different templates and choose fields from them transferring them into the left part.
    Q: 4. The left column is “Communication Structure”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    A: these are fields of CS (left part) and as I said before they will go to data target.
    Q: 5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    A: CS in 4 just shows IOs that will be transferred to data target. CS in 1 also shows how values for CS IOs are to be fed and transformed.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Issue with the activation of transfer rules

    Hi,
    I am working with the datasource 0PRODUCT_TEXT, and I am trying to install transfer rules from BI Content and unable to get the active version.
    But the transfer rules are showing inactive and the error is as follows.
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred during program generation:
    Template:   RSTMPL80
    Error code: 6
    Row:        47
    Message:    Statement concluding with "...LIKE" ended unexpect
    Procedure
    Correct the template to remove the problem
    Please help me in this issue.
    Thanks in advance,
    Rama Murthy.

    Try to run RSActivate* all transfer rule program that will activate the inactive transfer rules. Don't forget to replicate the datasource once again before you run the program.
    thanks.
    Wond

  • 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

  • ABAP Error while Migration of Transfer Rules

    HI
    I am migrating the standard Transfer Rules for the
    Cube : 0COOM_C02
    InfoSource: 0CO_OM_CCA_9
    When I converted the Transfer rules it gave me syntax error for ABAP.  When i checked for any routines in transformation rules i found 0PART_CCTR and some more info Objects having routines. When i did syntax check i got the following error
    <b>
    ERROR:</b>
    E:Field "C_T_SELECTION" is unknown. It is neither in one of the specified       
    tables nor defined by a "DATA" statement. "DATA" statement. "DATA"              
    statement.     
    <b>CODE    </b>       
    DATA:
    L_S_SELECTION LIKE LINE OF C_T_SELECTION.
    An empty selection means all values
    CLEAR C_T_SELECTION.
    L_S_SELECTION-FIELDNM = 'RSPAROBVAL'.
    L_S_SELECTION-FIELDNM = 'RSPOBART'.
    Selection of all values may be not exact
    E_EXACT = RS_C_FALSE.
    Please help me how to rectify the following error. I am getting the same error for the rules which has the routines.

    This is the whole code and it is not declared anywhere
    PROGRAM trans_routine.
          CLASS routine DEFINITION
    CLASS lcl_transform DEFINITION.
      PUBLIC SECTION.
        TYPES:
          BEGIN OF tys_SC_1,
         Field: RSPOBART Partner (short).
            RSPOBART           TYPE C LENGTH 4,
         Field: RSPAROBVAL Partner IO val..
            RSPAROBVAL           TYPE C LENGTH 28,
          END   OF tys_SC_1.
        TYPES:
          BEGIN OF tys_TG_1,
         InfoObject: 0PART_CCTR Partner Cost Center.
            PART_CCTR           TYPE /BI0/OIPART_CCTR,
          END   OF tys_TG_1.
        DATA:
          p_check_master_data_exist
                TYPE RSODSOCHECKONLY READ-ONLY,
    *-    Instance for getting request runtime attributs;
        Available information: Refer to methods of
        interface 'if_rsbk_request_admintab_view'
          p_r_request
                TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
      PRIVATE SECTION.
        TYPE-POOLS: rsd, rstr.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
        METHODS
          compute_0PART_CCTR
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
              SOURCE_FIELDS              type tys_SC_1
            EXPORTING
              RESULT                   type tys_TG_1-PART_CCTR
              monitor                  type rstr_ty_t_monitor
            RAISING
              cx_rsrout_abort
              cx_rsrout_skip_record
              cx_rsrout_skip_val.
        METHODS
          invert_0PART_CCTR
            IMPORTING
              i_th_fields_outbound         TYPE rstran_t_field_inv
              i_r_selset_outbound          TYPE REF TO cl_rsmds_set
              i_is_main_selection          TYPE rs_bool
              i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
              i_r_universe_inbound         TYPE REF TO cl_rsmds_universe
            CHANGING
              c_th_fields_inbound          TYPE rstran_t_field_inv
              c_r_selset_inbound           TYPE REF TO cl_rsmds_set
              c_exact                      TYPE rs_bool.
    ENDCLASS.                    "routine DEFINITION
    $$ begin of 2nd part global - insert your code only below this line  *
    ... "insert your code here
    $$ end of 2nd part global - insert your code only before this line   *
          CLASS routine IMPLEMENTATION
    CLASS lcl_transform IMPLEMENTATION.
      METHOD compute_0PART_CCTR.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-RSPOBART TYPE C LENGTH 000004
        SOURCE_FIELDS-RSPAROBVAL TYPE C LENGTH 000028
       EXPORTING
         RESULT type tys_TG_1-PART_CCTR
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    CALL FUNCTION 'CO001_BIW_PARTNER_DECODE'
    EXPORTING
    DEL  :I_PIOBJSV = TRAN_STRUCTURE-rspobart
    I_PIOBJSV = SOURCE_FIELDS-rspobart
    DEL  :I_PIOVALUE = TRAN_STRUCTURE-rsparobval
    I_PIOVALUE = SOURCE_FIELDS-rsparobval
    IMPORTING
    E_COSTCENTER = RESULT
    E_ACTTYPE =
    E_ABC =
    E_WBS_ELEMT =
    E_VBELN =
    E_VBELN_POSNR =
    E_KSTRG =
    E_COORDER =
    EXCEPTIONS
    OBJECT_TYPE_NOT_SUPPORTED = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    RESULT = .
    returncode <> 0 means skip this record
    DEL  :RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
    Please adjust the syntax manually.
        - Automatically replaced: COMM_STRUCTURE with SOURCE_FIELDS
        - Automatically replaced: TRAN_STRUCTURE with SOURCE_FIELDS
        - Included the new Exception Handling (instead of ABORT)
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "compute_0PART_CCTR
          Method invert_0PART_CCTR
          This subroutine needs to be implemented only for direct access
          (for better performance) and for the Report/Report Interface
          (drill through).
          The inverse routine should transform a projection and
          a selection for the target to a projection and a selection
          for the source, respectively.
          If the implementation remains empty all fields are filled and
          all values are selected.
      METHOD invert_0PART_CCTR.
    $$ 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 = 'RSPAROBVAL'.
    L_S_SELECTION-FIELDNM = 'RSPOBART'.
    Selection of all values may be not exact
    E_EXACT = RS_C_FALSE.
    Please adjust the syntax manually.
        - Automatically replaced: COMM_STRUCTURE with SOURCE_FIELDS
        - Included the new Exception Handling (instead of ABORT)
    $$ end of inverse routine - insert your code only before this line -
      ENDMETHOD.                    "invert_0PART_CCTR
    ENDCLASS.                    "routine IMPLEMENTATION

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

  • Routine in Transfer Rules - Error

    Hi Experts,
    I want to have a routine on Key Fig 0AMOUNT in Transfer Rules which says something like:-
      if tran_structure-shkzg = "S".
        RESULT = tran_structure-wrbtr * - 1.
      endif.
    However the syntax check will not allow this.  The error says:-
      E:Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR", or ")".
    What does this mean?  Why cant I perform this calculation on 0AMOUNT?
    Thank you for your help.

    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?

  • Transfer rule Activation failing

    hi
    I am trying to install the BCT transfer rule and activate it - but it fails saying there is syntax error for an infoobject.
    This is the error:
    <i>E:Field "L_TEXT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.</i>
    The BW version is 3.5.
    Any help would be well rewarded.
    thanks
    Esan

    Hi Esan,
    Check oss 913954
    Symptom
    A syntax error is reported in the transfer rules of some product InfoSources.
    For example:
    0PR_PURCHASE_CATEG_ATTR,
    0PR_BASE_UNIT_ATTR or
    0PR_ID_CMP_TEXT
    The syntax error occurs in the "two-digit source system" routines for determining the system ID. Error message: E: Field "L_TEXT" unknown.
    Other terms
    PR_BW, 0PR_PURCHASE_CATEG_ATTR, 0PR_BASE_UNIT_ATTR, 0PR_ID_CMP_TEXT,
    PRODUCT, L_TEXT
    Reason and Prerequisites
    The routine contains the "rs_bct_bupa_form_prod_syst" include but the global DATA statement is missing.
    Solution
    You must insert two new lines between the following two lines in the affected routines:
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line -
    and
    $$ end of global - insert your declaration only before this line -
    The new lines are as follows:
    DATA:   l_s_errorlog TYPE rssm_s_errorlog_int,
            l_text TYPE string.
    Save the routine.
    Jaya

  • Dump when activating transfer rules

    Hi All,
                 I am trying to create transfer rules and activate from a DB connect source system and I am getting the following error when activating.
    Runtime Errors         ASSERTION_FAILED
    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.                              
    Can somebody help me with this error?
    Thank you.

    BI User
    Please check the OSS Notes 914998 and 791549 and see these notes helps
    Thnaks
    Sat

Maybe you are looking for

  • Other party can't head me speak; Apple won't fix. What to do?

    A few weeks ago my IPhone 4 started showing problems during phone conversations. People can't hear me speak, but I can hear them without problems. It doesn't matter if I'm using the internal microphone ornament Bluetooth headset. Rebooting/restoring/

  • My TiddlyWiki is not saving properly in FF4.

    I just upgraded to FF4. Now, when I try to save my TiddlyWiki after editing, it always fails to actually save. It tells me it has saved, but the next time I open the file, everything new is missing. Is there a fix for this?

  • I have error 1669 .how to solve that?

    I have issue my iphone error 1669 i can't restore and update my iphone so please help me

  • Forgot to manage Open Item basis...........

    Hi, I have posted hundreds of document and later came to know that all GL a/c should have managed open item basis  while creating GL A/c so what is the solution to make it right. Thanks & regards Viplav Swain Moderator: Please, search before posting

  • Best practice of expanding partition size

    Hi, I am just wondering what's the best practice of expanding a partition. Currently the server I am working in has the partitions configure as below: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup01-LogVol00 5046848 4630796