Routine In Program giving syntax error

Hi All,
I am calling below FORM from Script in 4.6C Version.
/:  PERFORM GET_YY42V_ACTID
                  IN PROGRAM    Y42S_FORM_POOL
/:  USING &VBELN&
/:  USING &POSNR&
/:  CHANGING &ACTID&
Y42S_FORM_POOL is a function pool.
FORM  GET_YY42V_ACTID USING   TABLES   in_par        
                                                        structure itcsy
                                      out_par   structure   itcsy .
  read  table in_par  with  key  'VBELN' .
ENDFORM.                    " GET_YY42V_ACTID
When I do syntax check getting below message:
  in_par  is not defined as tables    nor as Internal Table.
Why i am getting this error?????
2. i then left the routine without any code and activated.
   And this time while in Debugging checked that from Print Program control went to SAP code:
    perform (co_perform-form) in program (co_perform-program)
                              tables co_sym_using
                                     co_set_symbols
                              if found.
     co_perform-form & co_perform-program contains correct
     script name and Routine Pool names.
But after pressing F%its going for Dump ...
No Clues on that ?????????
getting message:
Runtime errors         PERFORM_TOO_MANY_PARAMETERS
Exception              CX_SY_DYN_CALL_PARAM_NOT_FOUND
       Occurred on     2008/08/29 at   09:14:38
Too many parameters specified with PERFORM.
Any idea about this problem.
Thanks in advance.
Praveen

1) FORM GET_YY42V_ACTID TABLES in_par
structure itcsy
out_par structure itcsy .
The USING parameter is wrong.  Check again the syntax of FORM.  This leads to the second problem as with what you had, it considers TABLE, in_par structure itcsy out_par structure itcsy to all be parameters.
matt

Similar Messages

  • Program giving syntax error in Production client

    Hi Experts,
                I have moved an object into testing client its working fine there,but when it was moved from testing to production client.
                they are getting the error as "program ZSIOPCN contains syntax errors", when they are trying to create a variant in SE80 for this program from menu goto-->variants.
                Can anyone give any idea why this error comes, when the program is working fine in Quality client. Please give me suggestions,why it may happen.
    all answers will be rewarded, Thanks in advance.
    Thanks & Regards,
    Poorna.

    hi Rodrigo Paisante,
               i didn't understand the point "one or more objects wold be moved too", means moving the same object many times.
               we generally move the workbench requests in a sequence, in which they released. This transport sequence is follwed in the same sequence when moving from one client to another client.
               can you eloborate the solution and possible cause for this problem. i am getting message error DB: 242.
    Thanks,
    Poorna

  • Use Of "#EC CI_EXECSQL in ABAP with EXEC SQL. Statement giving Syntax Error

    Dear Gurus,
    I have encountered an issue while trying to remove warning for using Native SQL statement using pseudo comment "#EC CI_EXECSQL
    The thing is like this -- i have used follwing native sql command in abap.
    EXEC SQL.
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    Now when i am checking this code in code inspector it is showing a warning with information below
    CA CL_CI_TEST_CRITICAL_STATEMENTS0006
    Code Inspector
    Critical Statements
    Use of Native SQL
    Authorization checks cannot be appropriately run using EXEC SQL and should be carried out at program level.
    The message can be hidden using the pseudo-comment "#EC CI_EXECSQL
    Use of exceptin handling section for that warning showing me to use :
    The message can be hidden using pseudo
    comment      "#EC CI_EXECSQL
    Now when I am using "#EC CI_EXECSQL in the abap like below :
    EXEC SQL. "#EC CI_EXECSQL
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    It is giving syntax error
    The text literal ""#EC CI_EXECSQL        " is longer than 255
    characters.Check whether it ends correctly.
    Please provide the guideline to resolve this issue.
    Thanks & regards
    Saifur Rahaman.

    Hi Saifur,
    You can remove the warning using the following syntax:
    EXEC "#EC CI_EXECSQL
      SQL.
        CONNECT TO 'SURROUND_DB'
      ENDEXEC.
    At least, it worked fine for me when using OPEN CURSOR, SELECT, FETCH and so on statements.
    The way to use the pseudo comment is not very intuitive, but at least for my examples worked fine.
    I hope this may help you.
    Best regards,
    Edgardo G. König

  • (NOLOCK) is giving syntax error

    Hi,
    I have query which runs properly in 1 server and in the other server it gives syntax error because of (NOLOCK).
    When i remove (NOLOCK) its working fine.
    my query is a big one...
    But it is something like
    INSERT INTO @abc
    SELECT a.id,SUM(b.count) FROM
    (SELECT DISTINCT id FROM table1 (NOLOCK)) AS a
    INNER JOIN Table2 (NOLOCK) AS b
    GROUP BY a.id
    It is giving syntax error at only one (NOLOCK) that is near Table2 in one server and in other server it works fine...
    Both the server versions are exactly same...
    What is the reason?

    First, it is generally a bad idea to post a follow-up "me, too" response to an old and answered question.  Fewer people will look at an answered question generally. 
    Next, the reason this thread provides no information about the original problem and the solution is because the complete problem was not posted.  If your query generates an error message, it is important to see the complete and actual error message.
    Given the conversation, it is likely that there was a syntax error in the various statements that OP tried and it was a happy accident that the removal of the hint caused the error to go away. 
    Lastly one should refrain from using hints generally.  For some unfathomable reason there is a myth that it is a good practice to use the nolock hint. 

  • Code working fine in Enterprise version giving syntax error in Rel 4.6C

    Hello All,
    <b>Consider the following piece of code.</b>
    FORM fill_itabs  TABLES   p_t_table
                                            p_t_table_dummy.      
    Internal table to be used for dynamic where condition
      DATA: lt_wherecond TYPE STANDARD TABLE OF ty_wherecond,
    Structure for dynamic where condition
                ls_wherecond TYPE ty_wherecond.
      p_t_table_dummy[] = p_t_table[].
      REFRESH lt_wherecond[].
      CLEAR   ls_wherecond.
      ls_wherecond-data = 'kunnr = p_t_table_dummy-kunnr'.
      APPEND ls_wherecond TO lt_wherecond.
      SELECT kunnr INTO TABLE gt_kunnr
          FROM kna1
          FOR ALL ENTRIES IN p_t_table_dummy
          WHERE (lt_wherecond).
    ENDFORM.
    This is working fine in Enterprise version, but when I am trying the same in Rel 4.6C, I am getting a syntax error at the Select statement which states,
    "The WHERE condition does not refer to the FOR ALL ENTRIES table.-"
    Could anyone please suggest how to avoid this error?
    Regards
    Indrajit

    Hi Chemmam,
    yes, that will be a version problem. The general rule says, always use the NWDS corresponding to your server, and the main reason are the differences within the webdynpro implementation.
    So if you have a 6.40 with SP13 for example, use NWDS 2.0.13 as the base of your deployment.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance! This also holds for: /thread/80658 [original link is broken]

  • FIM Portal giving Syntax Error "WebResource.axd"

    Hi Team,
    It is fresh installation of FIM 2010 R2. FIM Sync, FIM Service and Portal are installed on the same box.
    When opening FIM Portal, it does not load properly. Some boxes are misplaced and on checking the status bar I can see a list of errors.
    First error in the list is "Syntax error" "WebResource.axd" Code: 0 URL: http://FIMPOrtal/webresource.axd?.......
    It is followed by several "The value of the property 'WebForm_GetElementByTagName' is null or undefined, not a Function object" error for ScriptResource.axd file.
    I have sharepoing 2010 installed. There is no NLB installed. I get the same error when accessing portal using "localhost" or IP.
    I have tried to repair the FIM Service and Portal installation that did not help. I have also re-installed the service and portal.
    It gives the same error after lowering the security on IE, trying from other machine or adding the portal website to local sites. 
    Kindly help me fix this error. Any help would be greatly appreciated.

    Hello,
    can you provide a screenshot of that misplaced elements.
    I currently only know to reasons of misplaced elements in portal.
    1. NLB (which you dont use)
    2. Redirect in IIS
    but maybe a screen would provide more information to us.
    Regards
    Peter
    Peter Stapf - Doeres AG - My blog:
    JustIDM.wordpress.com

  • The following sql stmt is giving syntax error

    Dear abap experts,
    The following sql stmt is givin me the followin error.
    Incorrect expression "  A~CURRENCY" in WHERE condition.          
    the sql stmt is
    SELECT AFLDATE APRICE ACURRENCY BCOUNTRYFR BCITYFROM  BAIRPFROM BCOUNTRYTO BCITYTO B~AIRPTO
                            FROM SFLIGHT AS A INNER JOIN
                            SPFLI AS B
                            INTO CORRESPONDING FIELDS OF                  ITAB_ALV
                            ON ACARRID = BCARRID
                            WHERE CARRID EQ CARRID
                            AND CONNID EQ CONNID.
    kindly tell me the error.
    Edited by: Ansuman  Parhi on Jul 7, 2008 11:30 AM

    Hi,
    SELECT AFLDATE APRICE ACURRENCY BCOUNTRYFR BCITYFROM BAIRPFROM BCOUNTRYTO BCITYTO B~AIRPTO
    FROM SFLIGHT AS A INNER JOIN
    SPFLI AS B
    INTO CORRESPONDING FIELDS OF ITAB_ALV
    ON ACARRID = BCARRID
    WHERE CARRID EQ CARRID
    AND CONNID EQ CONNID.
    above ur code.
    in the where condition exactly mention carrid and connid for belongs to which table. mean check it elow code.
    WHERE ACARRID = CARRID(PARAMETER NAME)  AND ACONNID = CONNID(PARAMETER NAME).
    REGARDS.
    sriarm.

  • Skip first screen & ECC 6 syntax error

    Hi,
    I have program that is in ECC 6 giving syntax error
      call transaction v_tcode using i_bdc options from i_options
                                          messages into i_message
                                          and skip first screen.
    I am getting a syntax error that "The additon AND SKIP FIRST SCREEN" cannot be used with "CALL TRANSACTION USING..."
    Any info how to correct this.
    aRs

    Hi,
    Thanks for your reply.
    The first screen i am calling in my program
        perform bdc_dynpro      using 'SAPMYCTC' '0100'.
        perform bdc_field       using 'BDC_OKCODE' '=ENTR'.
        perform bdc_field       using 'YCTC-CTCNUMBER'
                                      wa_yctc-ctcnumber.
    i am pushing the values to first screen , then i  need to screen skip the first screen
    aRs

  • ECC 6.0 related syntax error

    Hello Folks,
    My self Chetan , I am working in ABAP. I am on project, Now we are moving to ECC 6.0 from 4.7 and I am facing problem in some program regarding syntax error. I want remove the syntax error. Currently I am facing two problem.
    1. In one program there are three standards includes but they are not define so program is giving error include not found. then how can I remove this error.
    2. In second program it's giving error CCR1S table does not have BUKRS field but in 4.7 it BUKRS field is present .
    Can any bode please guide me in this issue.
    Thanks
    Chetan Chauhan.

    Hi
    1. In one program there are three standards includes but they are not define so program is giving error include not found. then how can I remove this error.
    If the program is a custom program as copy of std one, u should check the std program of rel. ecc 6.00 and find out how now the includes are called.
    If the program is std, u should active the version of release 6.00
    2. In second program it's giving error CCR1S table does not have BUKRS field but in 4.7 it BUKRS field is present .
    U should change the program in order to delete the code using that field, if u can't do it u should create a new structure ZCCR1S including CCR1S and add the field BUKRS, then use this new structure instead of std one.
    Max

  • Syntax Error in Web UI component post upgrade

    Hi Experts,
    We have a enhanced component in IC agent which is giving syntax error post upgrade from 7.0 to EHP2. It seems some attributes have been removed/altered in the new super class.
    In this case do we need to delete the component enhancement and re do the effort or is there any way to regenerate the enhanced component ?
    Thanks, Please help.
    Rohit

    Hi Rohit,
    I've written a few blogs where I collected the different steps necessary in CRM after an EhP or SP upgrade. Furthermore I described solutions to common problems in these blogs. Please have a look an see if one of the described approaches is suitable for your problem.
    http://scn.sap.com/docs/DOC-44983
    http://scn.sap.com/docs/DOC-49317
    http://scn.sap.com/community/crm/upgrades-and-enhancement-packs/blog/2014/02/21/sap-crm-ehp3-upgrade
    Best,
    Christian

  • IF Stmt - Syntax Error

    Hi,
    Can you please tell me how to write the follwing stmt. It is giving syntax error.
      IF VBAK-ERNAM = 'BATCHUSER'
         OR   VBAK-ERNAM = 'REDDYV'
        NO_ORDER1 = NO_ORDER1 + 1.
      ELSE.
        NO_ORDER2 = NO_ORDER2 + 1.
      ENDIF.
    Thanks
    Veni.

    Veni,
    You are missing period '.' after
    "OR VBAK-ERNAM = 'REDDYV' "
    So right statment is..
    IF VBAK-ERNAM = 'BATCHUSER'
    OR VBAK-ERNAM = 'REDDYV'.    " Period in the end
    NO_ORDER1 = NO_ORDER1 + 1.
    ELSE.
    NO_ORDER2 = NO_ORDER2 + 1.
    ENDIF.
    Cheers,
    Nilesh

  • Syntax error in Transformation routine

    Hi Folks,
    We are In SP 17.
    I have migrated standard 0bpartner_attr transfer rules to a transformation with syntax errors.
    I have a routine for a gender, Valid From and Valid To its giving the following erorr.
    E:Field "TRAN_STRUCTURE-VALID_FROM" is unknown. It is neither in one of
    the specified tables nor defined by a "DATA" statement. "DATA"
    statement.
    the following is the routine code for Gender.
    PROGRAM trans_routine.
          CLASS routine DEFINITION
    CLASS lcl_transform DEFINITION.
      PUBLIC SECTION.
    Attributs
        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.
      Rule specific types
        TYPES:
          BEGIN OF tys_SC_1,
         Field: XSEXM Male.
            XSEXM           TYPE C LENGTH 1,
         Field: XSEXF Female.
            XSEXF           TYPE C LENGTH 1,
         Field: XSEXU Unknown.
            XSEXU           TYPE C LENGTH 1,
         Field: RECORD.
            RECORD           TYPE RSARECORD,
          END   OF tys_SC_1.
        TYPES:
          BEGIN OF tys_TG_1,
         InfoObject: 0GENDER Gender.
            GENDER           TYPE /BI0/OIGENDER,
          END   OF tys_TG_1.
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
        METHODS
          compute_0GENDER
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
              SOURCE_FIELDS              type tys_SC_1
            EXPORTING
              RESULT                   type tys_TG_1-GENDER
              monitor                  type rstr_ty_t_monitor
            RAISING
              cx_rsrout_abort
              cx_rsrout_skip_record
              cx_rsrout_skip_val.
        METHODS
          invert_0GENDER
            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  *
    $$ end of rule type
        TYPES:
          BEGIN OF tys_TG_1_full,
         InfoObject: 0BPARTNER Business Partner.
            BPARTNER           TYPE /BI0/OIBPARTNER,
         InfoObject: 0BP_ACTITL1 First Academic Title.
            BP_ACTITL1           TYPE /BI0/OIBP_ACTITL1,
         InfoObject: 0BP_ACTITL2 Second Academic Title.
            BP_ACTITL2           TYPE /BI0/OIBP_ACTITL2,
         InfoObject: 0BP_BTHNAME BP: Person's Name at Birth.
            BP_BTHNAME           TYPE /BI0/OIBP_BTHNAME,
         InfoObject: 0BP_CAT Business Partner Category.
            BP_CAT           TYPE /BI0/OIBP_CAT,
         InfoObject: 0BP_CONS Business Partner (Consolidated/Cleansing).
            BP_CONS           TYPE /BI0/OIBP_CONS,
         InfoObject: 0BP_CONTACT BP: Contact Permission.
            BP_CONTACT           TYPE /BI0/OIBP_CONTACT,
         InfoObject: 0BP_EXTERN BP Number in External System.
            BP_EXTERN           TYPE /BI0/OIBP_EXTERN,
         InfoObject: 0BP_FSTNAME BP: Person's First Name.
            BP_FSTNAME           TYPE /BI0/OIBP_FSTNAME,
         InfoObject: 0BP_GROUP Business Partner Grouping.
            BP_GROUP           TYPE /BI0/OIBP_GROUP,
         InfoObject: 0BP_GRPNAM1 BP: Name 1 (Group).
            BP_GRPNAM1           TYPE /BI0/OIBP_GRPNAM1,
         InfoObject: 0BP_GRPNAM2 BP: Name 2 (Group).
            BP_GRPNAM2           TYPE /BI0/OIBP_GRPNAM2,
         InfoObject: 0BP_GRPTYPE BP: Group Type.
            BP_GRPTYPE           TYPE /BI0/OIBP_GRPTYPE,
         InfoObject: 0BP_LSTNAME BP: Person's Surname.
            BP_LSTNAME           TYPE /BI0/OIBP_LSTNAME,
         InfoObject: 0BP_MAR_STA BP: Marital Status.
            BP_MAR_STA           TYPE /BI0/OIBP_MAR_STA,
         InfoObject: 0BP_MDLNAME BP: Person's Middle Name or Second First
    *Name.
            BP_MDLNAME           TYPE /BI0/OIBP_MDLNAME,
         InfoObject: 0BP_SECNAME BP: Person's Second Surname.
            BP_SECNAME           TYPE /BI0/OIBP_SECNAME,
         InfoObject: 0CHANGEDBY Changed by.
            CHANGEDBY           TYPE /BI0/OICHANGEDBY,
         InfoObject: 0CH_AT Time of Last Change.
            CH_AT           TYPE /BI0/OICH_AT,
         InfoObject: 0CH_ON Last changed on.
            CH_ON           TYPE /BI0/OICH_ON,
         InfoObject: 0CREATEDBY Name of person who created the object.
            CREATEDBY           TYPE /BI0/OICREATEDBY,
         InfoObject: 0CREATEDON Date on which the record was created.
            CREATEDON           TYPE /BI0/OICREATEDON,
         InfoObject: 0CREA_TIME Time Created.
            CREA_TIME           TYPE /BI0/OICREA_TIME,
         InfoObject: 0GENDER Gender.
            GENDER           TYPE /BI0/OIGENDER,
         InfoObject: 0LEGALFORM Legal Status of Organization.
            LEGALFORM           TYPE /BI0/OILEGALFORM,
         InfoObject: 0NAME_ORG1 BP: Organization Name 1.
            NAME_ORG1           TYPE /BI0/OINAME_ORG1,
         InfoObject: 0NAME_ORG2 BP: Organization Name 2.
            NAME_ORG2           TYPE /BI0/OINAME_ORG2,
         InfoObject: 0NAME_ORG3 BP: Organization Name 3.
            NAME_ORG3           TYPE /BI0/OINAME_ORG3,
         InfoObject: 0NAME_ORG4 BP: Organization Name 4.
            NAME_ORG4           TYPE /BI0/OINAME_ORG4,
         InfoObject: 0NATION Nationality.
            NATION           TYPE /BI0/OINATION,
         InfoObject: 0TITLE_SPPL Name Supplement, for example, Noble Title
            TITLE_SPPL           TYPE /BI0/OITITLE_SPPL,
         InfoObject: 0BP_TYPE Partner:Partner Type.
            BP_TYPE           TYPE /BI0/OIBP_TYPE,
         InfoObject: 0GN_PAR_SSY Source System of a Partner.
            GN_PAR_SSY           TYPE /BI0/OIGN_PAR_SSY,
         InfoObject: 0LOGSYS Source System.
            LOGSYS           TYPE RSDLOGSYS,
         InfoObject: 0RECORDMODE BW Delta Process: Record Mode.
            RECORDMODE           TYPE RODMUPDMOD,
         InfoObject: 0BP_GUID GUID of Business Partner.
            BP_GUID           TYPE /BI0/OIBP_GUID,
         InfoObject: 0BPDATEFROM GP Attributes Valid from.
            BPDATEFROM           TYPE /BI0/OIBPDATEFROM,
         InfoObject: 0BPDATETO GP Attributes Valid to.
            BPDATETO           TYPE /BI0/OIBPDATETO,
         Field: RECORD Data record number.
            RECORD           TYPE RSARECORD,
          END   OF tys_TG_1_full.
    Additional declaration for transfer rule interface
      DATA:
        g_t_errorlog TYPE rssm_t_errorlog_int,
        RECORD_ALL   LIKE SY-TABIX.
    global definitions from transfer rules
    DATA: gs_cob_pro TYPE rsd_s_cob_pro,
          gt_viobj   TYPE rsd_t_viobj,
          gs_viobj   TYPE rsd_s_viobj.
    DATA:   l_s_errorlog TYPE rssm_s_errorlog_int,
            l_text TYPE string.
    FORM compute_BPDATEFROM
       CHANGING
        RESULT         TYPE tys_TG_1_full-BPDATEFROM
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
      INCLUDE rs_bct_bupa_form_valid_from.
    ENDFORM.                    "BPDATEFROM
    FORM compute_BPDATETO
       CHANGING
        RESULT         TYPE tys_TG_1_full-BPDATETO
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
      INCLUDE rs_bct_bupa_form_valid_to.
    ENDFORM.                    "BPDATETO
    FORM compute_GENDER
       CHANGING
        RESULT         TYPE tys_TG_1_full-GENDER
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
    INCLUDE rs_bct_bupa_form_gender.
    ENDFORM.                    "GENDER
    FORM compute_GN_PAR_SSY
       CHANGING
        RESULT         TYPE tys_TG_1_full-GN_PAR_SSY
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
    INCLUDE rs_bct_bupa_form_gn_par_ssy.
    ENDFORM.                    "GN_PAR_SSY
    $$ end of 2nd part global - insert your code only before this line   *
          CLASS routine IMPLEMENTATION
    CLASS lcl_transform IMPLEMENTATION.
      METHOD compute_0GENDER.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-XSEXM TYPE C LENGTH 000001
        SOURCE_FIELDS-XSEXF TYPE C LENGTH 000001
        SOURCE_FIELDS-XSEXU TYPE C LENGTH 000001
       EXPORTING
         RESULT type tys_TG_1-GENDER
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    *$*$ begin of routine - insert your code only below this line        *-*
      Data:
        l_s_error_log    type rssm_s_errorlog_int,
        l_subrc          type sy-tabix,
        l_abort          type sy-tabix,
        ls_monitor       TYPE rsmonitor,
        ls_monitor_recno TYPE rsmonitors.
    REFRESH:
      monitor,
      monitor_recno.
    Migrated transfer rule call
      Perform compute_GENDER
        CHANGING
          RESULT
          l_subrc
          l_abort.
    *-- Convert Messages in Transformation format
        LOOP AT G_T_ERRORLOG INTO l_s_error_log.
          move-CORRESPONDING l_s_error_log to MONITOR_REC.
          append monitor_rec to MONITOR.
        ENDLOOP.
        IF l_subrc <> 0.
          RAISE EXCEPTION TYPE cx_rsrout_skip_val.
        ENDIF.
        IF l_abort <> 0.
          RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
        ENDIF.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "compute_0GENDER
          Method invert_0GENDER
          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_0GENDER.
    $$ begin of inverse routine - insert your code only below this line-
    ... "insert your code here
    $$ end of inverse routine - insert your code only before this line -
      ENDMETHOD.                    "invert_0GENDER
    ENDCLASS.                    "routine IMPLEMENTATION
    let me know how to correct the above code.
    thanks

    Hi,
    the field tran_structure is no more available. The name changed to source_fields. Additionally there is no datapak available. It is now source_fields_table. You might need to use field symbols to access the fields.
    regards
    Siggi

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

  • Syntax error  while executing Key Figure routine

    Hello,
    I am posting my question again, as I have not got any solution. Please help it will be really appreciated. Here's the description
    I am loading data from flatfile to an Infocube with 3 keyfigures: Sales Price , Sales Quantity, Sales Revune. Getting values for Sales Price and Salea Quantity  from flatfile and calculating for Sales Revunue IO_VB_REV using routine
    - I created Transformations, and under Rule Group: Standard Group box I have not mapped IO_VB_REV  any datasource field and see 'X' sign against the field.
    - In rules detail screen, I add two source fields of Rule , IO_VB_QU and IO_VB_PRC. I see IO_VB_REV already added under 'Target fields of Rule' section
    - I then add the only following line to routine
    RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU * SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC .
    - Clicking on check button it gives no syntax error message. I save and exit back to Rule Details page.
    - For IO_VB_REV field If I select any of 2 options i.e. Fixed Unit or No conversion it gives me a dump. So I select 'from conversion' option. In that case I enter USD against 'Conversion Type' field. It gives me information box popup with 'Incorrect Input Message'
    - When check button hit on 'Rule Details' page, it gives me error message ' Syntax error in routine '
    Why is it giving me syntax error, inspite of the fact that I get 'no syntax error' message on routine page. Also why am I getting short dumps on changing Conversion Type

    Hi Olivier,
    I really thank you for ur efforts in helping me solving this problem. Below is complete description of KF defined,
    1. Created InfoObjects for Sales Quantity, Sales Price, Sales Revunue
    Definition of <b>Sales Quantity</b>
    Name: IO_VB_QU
    Type/Data Type : Quantity
    Data Type: QUAN - Quantity field, points to unit field with format UN
    Currency / unit of measure
    Unit / Currency: 0UNIT
    Definition of <b>Sales Price</b>
    Name: IO_VB_PRC
    Type/Data Type : Amount
    Data Type: CURR - Currency field, stored as DEC
    Currency / unit of measure
    Fixed Currency: USD
    Definition of <b>Sales Revunue</b>
    Name: IO_VB_REV
    Type/Data Type : Amount
    Data Type: CURR - Currency field, stored as DEC
    Currency / unit of measure
    Fixed Currency: USD
    2. As the data is being read from flatfile, created DataSource with fields for Sales ID, Sales Price, Sales Quantity. As I am reading unit for quantity from file (has values EA,BOX,CSE), I have a corresponding field UNIT in DataSource. No field for Sales Revunue.
    3. I use 'Create Transformation' functionality to automatically create transformations.
    4. Rule Details page of each of 3 KFs has following values
    <b>Rule Details page of Sales Quantity</b>
    Rule Type: Direct Assignment
    Aggregation : Summation
    Target Unit: 0UNIT
    Unit: from Source
    Source Unit: UNIT
    Source Fields of Rule: /BIC/IO_VB_QU, UNIT
    Target Fields of Rule: 0UNIT, IO_VB_QU
    <b>Rule Details page of Sales Price</b>
    Rule Type: Direct Assignment
    Aggregation : Maximum
    Fixed Target Currency : USD
    Currency: No Conversion
    Source Fields of Rule: /BIC/IO_VB_PRC
    Target Fields of Rule:  IO_VB_PRC
    <b>Rule Details page of Sales Revunue</b>
    Rule Type: Routine   
    Aggregation : Summation
    Fixed Target Currency : USD
    Currency: from Conversion
    Conversion Type: ??????.....(I entered USD it gives me Incorrect Input message)
    Source Fields of Rule: /BIC/IO_VB_PRC, /BIC/IO_VB_QU, UNIT
    Target Fields of Rule:  IO_VB_REV
    I have this line is the routine 
    RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU *   SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC.
    Let me know if u need any other info......
    I really appreciate u trying  to help me
    Vidya

  • Syntax Error occured in Program  in include " CNTN01

    Hi,
    We are working on SAP 4.6C to ECC 6.0 Migration. While testing One Transaction, I am getting following error:
    The current ABAP program "CL_GOS_TOOLBOX_MODEL==========CP" had to be
    terminated because it has come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "Z3I_CL_BASCULER_SCS_GOS=======CP " in include "<CNTN01> " in
    line 13:
    "Within classes and interfaces, you can only use "TYPE" to refer to ABA"
    "P Dictionary types, not "LIKE" or "STRUCTURE"."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    This Error is coming while executing transaction in ECC 6.0 however in R/3 4.6C it is working fine.
    Pls Advice what should be done to resolve this issue. This issue is coing in alot of transactions.
    I will appreciate if anyone of you can guide me regarding same.
    regards
    Sandeep

    Hi,
    I was trying hand on one of my Z class which contain  include <CNTN01>. in its Local Types.
    I commented the existing include statement and added new statement as
    INCLUDE CNTN01_OO.
    After saving now when i try to activate the Z Class, it is giving me following error:
    INCLUDE CNTN01_OO
    You can only define classes and interfaces at the highest level of CLASS-POOL.
    CLASS Z5C_CL_MESSAGE, Internal classes in a class include "CNTN01_OO" does not start with the prefix (Z5C_CL_MESSAGE=======)of the current class pool.
    pls advice what i should do correct this issue.
    Sandeep

Maybe you are looking for

  • Nginx + php-fpm problem

    Hello there. I just setup nginx with mysql and php-fpm to my archlinux install and i need help. i checked all over internet and try every solution, none still work. i have a blank page problem this is working correctly: <?php phpinfo(); ?> short tags

  • Select queries in pl/sql

    i don't know if this is a stupid question, but is it possible to pose a select query to an xml document using this xml parser?

  • Doubt in placing AT User Command

    Hi Gurus,       iam trying to create a drill down ALV where i have to call a transcation ME23N. i wrote this code, but it is not calling the transaction as expected. i have placed this code after resue_alv FM. Please advice wat has to be done FORM us

  • Bpel xpath query

    Hi, My wsdl contains: <wsdl:message name="BPELProcess1RequestMessage">           <wsdl:part name="payload" type="xsd:string"/> </wsdl:message> <wsdl:message name="BPELProcess1ResponseMessage">           <wsdl:part name="payload" type="xsd:string"/> <

  • How can I download images from my iphone to adobe bridge cs5

    How can I download images from my iphone to adobe bridge cs5?  I don't want to use iPhoto.