Syntax Error in Routine while Activating Transformation

Dear All,
I am activating whole scenario for 0SD_C03. we have made transformation for 2lis_11_vaitm, during installation we get below errors:
- Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
-Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
-Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
I really appreciate your any input for this.
Thanks & Regards,
Darshan

Hi,
I hope there is inbalance in between SOURCE Datapackage and Target Datapackage. So in the start routines pls check it and it not found then add in DATA_PACKAGE...
Check with ABAPer
under ,
TYPES:
      BEGIN OF tys_TG_1_full,
        SUBTOT_1S           TYPE /BI0/OISUBTOT_1S,
and also you can fin dsimilar kind of threads in SDN.
Re: Syntax Error in Routine while Activating Transformation
Re: Issue while creating Transformation from Update rule.
Re: 0IC_C03 activation of Transformation rule ends with ERROR
Re: Error in activation of transformation
Thanks
Reddy

Similar Messages

  • Error in routine while activating transformation

    Dear all,
    While activating 2LIS_04_P_ARBPL Transformation activation , I am facing following error while checking in Routine
    E:Field "COMM_STRUCTURE-TGTPROCCAP" is unknown. It is neither in one of
    the specified tables nor defined by a "DATA" statement. "DATA"
    statement.
    I replaced COMM_STRUCTURE with SOURCE_FIELDS as suggested in on eof the forum as its field level routine.
    Then I got the error as :
    *E:Field "SOURCE_FIELDS" is unknown. It is neither in one of the
    tables nor defined by a "DATA" statement. "DATA" statement.*
    please help me out for this

    Where are you writing this Routine?
    Start Routine or Field Routine?
    Start Routine:
    You cannot use SOURCE_FIELDS. You will have to use SOURCE_PACKAGE.
    SOURCE_PACKAGE does not have a header line, so you cannot use it directly.
    You can just use commands like Sort SOURCE_PACKAGE or Delete SOURCE_PACKAGE.
    Field Routine:
    You can use SOURCE_FIELDS.
    Check if you have selected the field as your source field while writing the field routine.
    Please let us know where you are facing the error.
    Edited by: Vishal Sanghvi on Jun 2, 2011 2:04 PM

  • Start routine errors while activating transformations 2LIS_13_VDITM

    Hi Friends,
    I have an error while activating transformation for Cube: 0SD_C03
    Transformation Z2LIS_13_VDITM
    The start routine error is like this->
    Start Routine: Syntax error in routine
    Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0SUBTOT_2S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0SUBTOT_3S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0SUBTOT_4S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0SUBTOT_5S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0SUBTOT_6S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0QUANT_B, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0DOC_ITEMS, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0COST_VAL_S, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0GR_WT_KG, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0NT_WT_KG, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0VOLUME_CDM, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0BP_GRP, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0CP_CATEG, group: 01 Standard Group): Syntax error in routine
    S:RSTRAN:552 38 0CRM_PROD 01 Standard Group 0MATERIAL
    Rule (target: 0DEB_CRED, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
    Key rule 43 (target field: 0VERSION): Initial update set
    pls guys if some one can suggest me to solve this i would be very greateful
    Bala
    Edited by: bala dondeti on Jun 20, 2011 12:32 PM
    Edited by: bala dondeti on Jun 20, 2011 12:43 PM

    Thanks for the info Umesh,
    Just to be sure - I should simply change "SOURCE_PACKAGE" to "DATA_PACKAGE" in the code of the start routine? "Source_Package" is present in two places in that code:
    METHODS
          start_routine
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
            EXPORTING
              monitor                  type rstr_ty_t_monitors
            CHANGING
              SOURCE_PACKAGE              type tyt_SC_1
            RAISING
              cx_rsrout_abort.
    and then after that in:
    Migrated update rule call
      Perform routine_9998
      TABLES
        SOURCE_PACKAGE
      CHANGING
        l_abort.
    Or should I revert to the 3.5 version? (as a side note, that Data Source (2LIS_13_VDITM) has been activated in 7.0 version by default, when I replicated data sources in BW).
    Praveen, as to your remarks, I have the datasource 2LIS_13_VDITM (in version 7.0) active, along with the appropriate Infosource. Transformation between the DataSource and InfoSource is active, and only the transformation between the InforSource and the Cube poses problems.
    BR,
    Alek

  • Data Source 0HR_PA_0 Syntax Error in the start routine while activating

    Hi All,
    I have migrated the Business content for the data source 0HR_PA_0
    While activating the transformation-2 there is errors like:
    Start Routine: Syntax error in routine
    Rule (target: 0HDCNT_LAST, group: 01 Standard Group): Syntax error in routine
    Rule (target: 0AGE_KYF, group: 01 Standard Group): Syntax error in routine
    .................... etc
    I need help to resolve this issue.
    Thanks & Regards,
    Savitha

    Hello Jurgita,
    When Data Source was migrated the codes related to COMM_STRUCTURE was missing in the start routinue.
    Following codes (in bold) with regard to COMM_STRUCTURE added and then got activated
    4.     *--
    5.         COMM_STRUCTURE   type tys_sc_1__rule_25,
    6.         l_subrc          type sy-tabix,
    7.         l_abort          type sy-tabix,
    8.         ls_monitor       TYPE rsmonitor,
    9.         ls_monitor_recno TYPE rsmonitors.
    10.     
    11.       REFRESH:
    12.         MONITOR.
    13.     
    14.     * Runtime attributs
    15.         SOURCE_SYSTEM  = p_r_request->get_logsys( ).
    16.         move-corresponding SOURCE_FIELDS to COMM_STRUCTURE.
    17.     
    18.     *  Migrated update rule call
    19.       Perform routine_0011
    20.       using
    21.         COMM_STRUCTURE
    22.       CHANGING
    Regards,
    Savitha
    Edited by: Savitha  Ravi on Jun 19, 2009 6:34 AM

  • Error while activating transformation in BI 7.0

    HI,
       Error: Error while activating transformation.
    Does anyone know how to solve this.
    Sheela

    Hi,
    There may be many issues like:
    If you have any routines,  check the syntax.
    Check all the fields are mapped properly or not.
    Check any currency or unit conversion in transformation.
    Data type mismatch -> make sure source and target infoobject either numerical or interconvertible.
    Length mismatch between source and target infoobject.
    Rgs,
    I.R.K

  • Error while activating transformation

    Hi Experts,
    I need to activate a transformation between a cube and DSO.
    But I am getting an error message while activating the Transformation the messages are as followed.
    1. Error when writing routines
       Message Number. RSAA561
    2. Error while activating transformation
        Message Number. RSTRAN510
    3. Error activating transformation.
       Message number. RSO404
    I have checked the transformation and each field is mapped to correct field and there are no routines its just 1:1 mapping can any body tell how to check the error on basis of Message Number as there is no other information available when we are displaying the error.
    Regards
    Shubh Karan

    Might be a problem with the time conversion routines. delete the transformationa nd try again.
    Good luck,
    vijay

  • Error while activating Transformation CO_OM_WBS_3

    Hi everybody,
    i get the following error message while activating the transformation for  CO_OM_WBS_3 in Dev
    Error while activating transformation
    Message no. RSTRAN510
    Error when writing routines
    i checked the routine for co_om_wbs_3 the syntex was correct.
    i have checked in forum am not getting clear picture  please guide me and
    sap component version : SAP EHP 1 for SAP NetWeaver 7.0
    SAP_BW    7010006    SAPKW70106
    BI_CONT    704   0006  SAPK-70406INBICONT
    Regards,
    Sunder

    Dear anand,
    thankyou
    Regards,
    sunder
    Edited by: sundersham on Mar 28, 2010 12:34 PM

  • While activating  Transformation 0PS_C041 - 0CO_OM_WBS_2 am getting error

    Dear all
    While activating the Transformation 0PS_C041 - 0CO_OM_WBS_2 am getting the following error
    Error when writing routines
    Message no. RSAA561
    Error while activating transformation
    Message no. RSTRAN510
    Error when activating Transformation 0N7SM4TBBDTRG1KKDKS3QRMWAHMV490Q
    Message no. RSO404
    plz guide me seniors
    Regards,
    Sunder

    Hi,
    Make sure your routines are syntatically correct in the transformation before activation.
    still it is giving the same error please elaborate the issue and post it over here.
    Thanks
    Suresh

  • Error while activating transformation  ----   Message no. RSTRAN510

    Hi,
    while I am Extrating Data From Flat File I encountered this Error.
    I am working on <b>ECC 6.0 , BI 7.0.</b>
    I am trying this one in IDES, it is newly installed server.
    For Flat File Extraction I follwed the Steps
    1) I created Data source -
    let us assume I have created a Flat File with 3 fields
    SNO SNAME MARKS
    File is located in workstation
    Data source created successfull , I have checked in preview.
    2) I have created 2 key Figures, 1 characteristic
    3) I have created Infocube
    <b>here I have some doubt</b>
    while I am creating Infocube, the look and Feel is very different to 3.XX
    when i try to create in 3.XX , we can see the Tabs for Kef figs,chars,Time chars and we assign chars to Dimenstions.
    when i am creating Infocube in BI 7.0 , I don't Find such a Tabs and how I am assign the chars to Dimension
    I created Like this
    select
    Info Area -
    > create Info cube   -
    given name of the cube and create (F5).
    the Info cube window displayed on the Right side
    Then I did like this
    select
    key Figures -
    > Info object Direct Input   
    Then I inserted my two key figures SNO,MARKS
    --- continue (F5)
    Dimension 1 -
    >  Info object Direct Input    
    I inserted the 1 char  SNAME
    --- continue (F5)
    Then I saved the Info cube
    Info cube saved successfull and activated successfull
    <b>Is it Right way For create InfoCube ?</b>
    4) I created Transfomation for the Data source
    Data source -
    > create Transfomation
    I have given
    Object Type  : InfoCube
    Name           :YSTU    - i selected which I already created.
    It automaticall taken these parameters
    Obejct Type     : DataSource
    Data source     : YSTU
    source system :PC_FILE
    create Transformation (Enter)
    I got the Error
    <b>Cannot generate proposal</b>
    <b>Message no. RSTRAN017</b>
    Then I try to activate, I got the Error.
    <b>Error while activating transformation</b>
    <b>Message no. RSTRAN510</b>
    Before I post this , I had searched in Previous SDN post for this Error , But I can't understand the solution.
    I have lot of doubts like <b>Basis Guy need to install any Patch</b> or
    I did mistake any where.
    Help me to Find the solution...
    sure you can get the points
    Thanks
    prasanna

    Thank You so much Voodi, yes you are Right , I am not concentrated on Mapping, Now Transformation is activated.
    and i created Info Package too for the Data source , created successfully.
    I am struck on Final step  <b>creating DTP</b>
    when I am creating DTP
    Data Transfer Proc  : here I need to give the Dtp name ex: YDTP
    DTP Type               : Standard (Can be sheduled)
    Target of DTP
    <b>Object Type</b>       : Info cube
    <b>Name </b>               : YSTU  (This is my Cube Name)
    Source of DTP
    <b>Object Type</b>     : Data source  (It automatically Taken)
    <b>Data source</b>     : This is Disabled
    <b>Source system</b>:  This is Disabled
    continue (Enter)
    I got the message ?
    <b>Specify Name of source</b>
    and courser is in <b>Data Transfer Proc </b>
    Thanks
    prasanna

  • Error while activating Transformations

    Hi gurus,
    Iam facing a problem while activating Transformations.
    Its a flat filre loading consisting of 4 objects , 3 are standard and one is customised key figure ZPLN_VAL  Data type is Amount, currency is fixed INR.
    But iam getting following errors while activating transformations.
    1,RULE(target ZPLN_VAL, Group;01 standard group); Conversion type missing.
    2.RULE7 (Target field:ZPLN_VAL) Field planned value must be assigned to an Infoobject.
    3.RULE(TARGET FIELD ZPLN_VAL) NO SOURCE UNIT ASSIGNED.
    Regards
    Amar.

    Hi,
    Map it with required Unit filed from your Source .
    Mayank

  • Start Routine: Syntax error in routine 2LIS_03_BF Transformations

    Hi experts,
    I enhanced the 2lis_03_bf data source, and replicated the data source in bw system, i have mapped the transformations and when i try to activate the transformations it is giving the below error.
    Start Routine: Syntax error in routine
    when i check the start routine it is giving the  below error message.
    E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter
    "SOURCE_PACKAGE" is incompatible with the formal parameter
    "DATA_PACKAGE".
    please provide me the solution.
    Regards
    venuscm

    Hi Venu,
    This seems to me like you have earlier migrated the update rules to transformations. We did the same earlier and faced issues whenever we add new fields/infoobjects. The error message was different, if i remember correctly.
    We had to add the new field/infoobject added, to the structure '_ty_s_*****' that exists at the top of the start routine code. This was one disadvantage of migration of rules.

  • Error while activating transformations? can you please help me

    Hi
    I am trying to create info cube , i created info objects, info cube,datasource. when i am trying to creat transformation it is throwing and error :
    Error while activating transformation
    Message no. RSTRAN510
    Can any one help me?
    Srinath

    Hi
    I think you are trying to activate the transformation.
    Have you tried to generate proposal?
    I think you will get the following error message :
    Cannot generate proposal
    Message no. RSTRAN017
    the system would never generate a proposal . u need to map the fields manually in the transformations... after u map it ... check the mapping and activate it ...
    Due to this when you are going to activate the transformation it is throwing this error message.
    If this works kindly assign me some points.
    Regards,
    Debjani..

  • Problem While Activating Transformation

    Hi BW Gurus,
    I am currently working on BW 7.0 on Purchasing Area, I found some problem while modifying the transformation or activating the transformation. I have mapped the data source 2LIS_02_SCL Purchasing Data (Schedule Line Level). I have written a routine for mapping rules of 0ORDER_VAL base on the source field of BWVORG, BWAPPLNM, BWEFFWR, BEDAT, WAERS, HWAER, WKURS. And it shows no error while syntax check. But while activating the Transformation it leads to dump. And after that if I try to change the routine, it leads me to the same dump.
    Please advice.
    For reference, find the code what I wrote in the routine below,
    IF ( SOURCE_FIELDS-BWVORG = '001' or SOURCE_FIELDS-BWVORG = '011'
      or SOURCE_FIELDS-BWVORG = '021' or SOURCE_FIELDS-BWVORG = '004'
      or SOURCE_FIELDS-BWVORG = '014' or SOURCE_FIELDS-BWVORG = '024' )
    AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'
    AND SOURCE_FIELDS-BWEFFWR  0.
       PERFORM LOC_CURR_CONVERT
               USING    SOURCE_FIELDS-BWEFFWR
                        SOURCE_FIELDS-BEDAT
                        SOURCE_FIELDS-WAERS
                        SOURCE_FIELDS-HWAER
                        SOURCE_FIELDS-WKURS
               CHANGING RESULT.
    ENDIF.
    where the LOC_CURR_CONVERT is given below
          FORM LOC_CURR_CONVERT                                         *
    -->  LC_DOCUMENT_VALUE                                             *
    -->  LC_DATE                                                       *
    -->  LC_DOCUMENT_CURRENCY                                          *
    -->  LC_LOCAL_CURRENCYY                                            *
    -->  LC_RATE                                                       *
       LC_LOCAL_VALUE                                                *
    FORM loc_curr_convert
      USING    lc_document_value
               lc_date
               lc_document_currency
               value(lc_local_currency)
               lc_rate
      CHANGING lc_local_value.
    conversion of lc_rate from floating-point to decimal. Necessary for *
    call of CONVERT_TO_LOCAL_CURRENCY.
    data lc_rate_dec type p decimals 5.
    lc_rate_dec = lc_rate.
      IF lc_document_currency = lc_local_currency
      no conversion necessary -> Main case 1
        AND NOT ( lc_document_currency IS INITIAL
               OR lc_local_currency IS INITIAL ) .
        lc_local_value = lc_document_value.
      ELSEIF NOT ( lc_document_currency IS INITIAL
      OR lc_local_currency IS INITIAL OR lc_date IS INITIAL ) .
      conversion necessary with lc_date -> Normally not possible
        CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
            date                 = lc_date
            foreign_amount       = lc_document_value
            foreign_currency     = lc_document_currency
            local_currency       = lc_local_currency
            rate                 = lc_rate_dec
          IMPORTING
          EXCHANGE_RATE        =
            local_amount         = lc_local_value
          EXCEPTIONS
            NO_RATE_FOUND        = 1
            OVERFLOW             = 2
            NO_FACTORS_FOUND     = 3
            NO_SPREAD_FOUND      = 4
            DERIVED_2_TIMES      = 5.
        IF sy-subrc NE 0.
      message a802 with lc_date lc_document_currency lc_local_currency
                        sy-subrc.
        ENDIF.
      ELSE.
      if conversion not possible -> assign target values
        lc_local_value = lc_document_value.
        lc_local_currency = lc_document_currency.
      ENDIF.
    ENDFORM.
    Thnaks
    Regards,
    Deep.

    Hi,
    Please check routine if any for 0CO_REPLINE and also expert routine.
    Regards,
    Rema.

  • Syntax error in routine

    Hi Gurus,
        I have added new fields in ODS  and Cube.While activating transformation I am getting the following error : 'Start routine:Syntax error in routine'Please let me know how to trouble shoot the same.
    Regards
    Hasini

    Hi Pallavi,
    Pls gothroug the Routine:
    MONITOR_RECNO.
    Runtime attributs
        SOURCE_SYSTEM  = p_r_request->get_logsys( ).
    Migrated update rule call
      Perform routine_9998
      TABLES
        SOURCE_PACKAGE
      CHANGING
        l_abort.
    *-- Convert Messages in Transformation format
        LOOP AT MONITOR_RECNO INTO ls_monitor_recno.
          move-CORRESPONDING ls_monitor_recno to MONITOR_REC.
          append monitor_rec to MONITOR.
        ENDLOOP.
        LOOP AT MONITOR INTO ls_monitor.
          move-CORRESPONDING ls_monitor to MONITOR_REC.
          append monitor_rec to MONITOR.
        ENDLOOP.
        IF l_abort <> 0.
          RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
        ENDIF.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "start_routine
          Method inverse_start_routine
    E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter
    SOURCE_PACKAGE" is incompatible with the formal parameter
    "DATA_PACKAGE".
    Regards
    Hasini

  • Error in  END ROUTINE while activating the transformation.

    Hi ALL,
    While writing an END ROUTINE IN BI, I got no error while saving the code.
    But when Activate the Transformation I got the following Error.
    " Syntax Error in GP_ERR_RSTRAN_MASTER_TMPL,row 54(->long text)
    Diagnosis:Component called CRM_OBJ_ID already exits  "
    I have used the above object in the transformation.
    Please help me debug the error or highlight on it.

    Hi,
    i guess u have create two object with  same variable name.check.
    regards,
    rakesh

Maybe you are looking for

  • How to keep superscript in header text xref? It is OK in TOC.

    I am updating this generated book:http://www.crystalfontz.com/products/533/datasheets/1704/CFA533-YYH-KC_v1.0.pdf using FM 9, unstructured. As you can see on the title page, the product name has a superscript "2" in it. Unlike this post http://forums

  • Modifying an existing ABAP Query - sq01 (tcode)

    Hi All,   We have a query develped (Z) long before .Now we have a requirment where in which we need to add one   more table to the existing query.Kindly let me know how can we proceed.   When am giving the query name and clicked on change , am not ab

  • Creating links from report fields

    Hi, I have created a report but need to make one of the fields a hyperlink (ie 'LINK' field). The report is built from parameters entered by a user & so, every record returned will contain a different 'LINK' value. How can I specify that this needs t

  • Nokia 7373 turning off/memory

    Hey All, not sure if you can help but my phone was great at the start, stored loads of messages etc. but now its started turning its self off and then when i turn it back on all my text messages in my in box (not sent etc) have been deleted. also now

  • Media Encoder renders test pattern

    CC 2014 - latest build. When I choose to render with Adobe Media Encoder from AE, the Media Encoder renders a test pattern, not the video in the project. The files are on an external drive (TIFF sequence), but the timing for the project is correctly