"Statement not accessible" error in Implicit enhancement - SAPMF05A

Hi,
  I am trying to implement Implicit Enhancement in program SAPMF05A, in module transaktions_init. When I click on Edit -> Enhancement Option -> Show implicit enhancement, it displays implicit enhancement at end of module ( after ENDMODULE) statement. When I click " Enhancement" icon, write code and it gives error statement not accessible.
Please suggest.
Regards,
Priya

You will have to put the code in a module and then call that module.
Rob

Similar Messages

  • Statement not accessible error in Implicit Enhancement of  SAPMPE03

    ENDMODULE.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Include MPMKMO00, End                                                                                S
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1 ZENH_PE03.
    MESSAGE 'hi' TYPE 'I'.
    ENDENHANCEMENT.
    *$*$-End:   (1)
    As shown above i added a line MESSAGE 'Hi' Type 'I' in the implicit enhancement portion. But it gives me error "Statement not accessible"
    Thanks

    Hi Amber,
    just in case you have to do something similar again: ABAP Code must always be between MODULE ... ENDMODULE or FORM ... ENDFORM. In the example in this post the statement
    MESSAGE 'hi' TYPE 'I'.
    is just after an ENDMODULE. statement and so this code can never be reached (or is not accessible ). The implicit enhancement option outside the existing modularization units is used to define completely new MODULEs or FORMs.
    Hope this helps!
    Regards
    Oliver

  • Statement not accessible error - Any ideas please.

    Hello all:
              We were using macro from TRMAC table in 4.6C version and it used to give a warning but after upgrading to ECC6.0 it is syntax error! Please look at the code below:
    *SELECTION SCREN / PARAMETERS                                          *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
    PARAMETERS: p_mode(1) TYPE c DEFAULT 'N' OBLIGATORY,
                p_grp     LIKE apqi-groupid DEFAULT 'SKF_POST' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN SKIP 1.
    unix_pc_path text-001 text-002 text-003.
    *Intialization                                                         *
    *INITIALIZATION.
    *At selection screen                                                   *
    AT SELECTION-SCREEN OUTPUT.
      PERFORM format_unixpath(yunixctrl) USING 'YHOME_UX' yhome_ux.
    AT SELECTION-SCREEN.
      IF ( rdb_pc = 'X' AND yhome_pc IS INITIAL ) OR
         ( rdb_ux = 'X' AND yname_ux IS INITIAL ).
        MESSAGE e000 WITH 'A filename is required'.
      ENDIF.
    AT USER-COMMAND                                                      *
    AT USER-COMMAND.
    *Start-of-selection                                                    *
    START-OF-SELECTION.
      IF NOT rdb_ux IS INITIAL.
        unix_getname yhome_ux yname_ux v_file_in.
        PERFORM upload_parse_unix_file.
      ELSEIF NOT rdb_pc IS INITIAL.
        v_file_in = yhome_pc.
        PERFORM upload_parse_pc_file.
      ENDIF.
      PERFORM skf_posting.
    *End-of-selection                                                      *
    END-OF-SELECTION.
    The program does not like the line "unix_pc_path text-001 text-002 text-003." and gives an error "Statement not accessible". I went through some discussion forums on this here but nothing related to macro. Could anyone please give me an idea how I could resolve this? All the answers will be rewarded.
    Thanks.
    Mithun

    You cannot put it in START-OF-SELECTION a you need the unix path in the
    AT SELECTION-SCREEN FOR OUTPUT event.. move the statement from the selection-screen block to the INITIALIZATION event.
    ~Suresh

  • Statement not accessible error

    Hi, we have upgraded the project from 46c to ecc version.
    In one standard include MV45AFZZ , one statement is added  IMPORT itab1chk FROM MEMORY.
    In MV45AFZB , the value for itab1chk is getting exported.
    In 46c , we r not getting any error when we run the VA01 transaction.
    But in ECC, this transaction going for Dump giving error 'The statement is not accessible ' referring to the statement IMPORT itab1chk FROM MEMORY which is in MV45AFZZ include.
    I tried by adding ID <KEY> to the IMPORT AND EXPORT statement. But still getting same error.
    Can any one please suggest the solution.
    Thanks,
    laks.

    Hi,
    You get this Error normally when you are doing a syntax check on the Includes in which the code lines are not between FORM and ENDFORM.
    I dont think this is a serious error atleast till 4.7 as the system will allow you to activate the Include. May be the ECC is a bit more stringent on this issue.
    I think your problem will be solved if you try to include all the code lines only in the FORM and ENDFORM.
    regards,
    Mahesh

  • Statement not accessible - Syntax error

    Hi all,
    There is a form within a standard include. The form has an include within it. Its a custom include. So its an exit i suppose. Now i have a problem in the custom include. There is "statement not accessible" error. Find below the code in the custom include.
    *&  Include           ZZIMOVEKVGR4                                     *
    DATA: r_vkorg TYPE RANGE OF vkorg.
    CONSTANTS: c_z_salesorg_zzkvgr4 TYPE rvari_vnam VALUE
                                                    'Z_SALESORG_ZZKVGR4'.
    * Get the values from variant Z_SALESORG_ZZKVGR4 of TVARVC tavle
    CALL FUNCTION 'Z_FILL_RANGE_TABLE_FROM_TVARV'
    EXPORTING
    name                 = c_z_salesorg_zzkvgr4
    *   INITLINE             = ' '
    *   LINE_SEPARATOR       = ','
    TABLES
    rngtab               = r_vkorg.
    * Check for the sales orgranisation in TVARVC table
    IF vbrk-vkorg IN r_vkorg.
    * Move field Customer group 4 to KOMPCV structure
      MOVE vbrp
    ENDIF.
    Please help me understand how to overcome the same. The function module called has a select query. Does it have something to do.
    Pasting here the form that calls this include.
    FORM USEREXIT_ACCOUNT_PREP_KOMPCV.
    *  KOMPCV-zzfield = xxxx-zzfield2.
    *{   INSERT         TSTK9B000H                                        1
    * TSTK9A05ZS-Begin of changes For scr 7060
    * Only for the sale organisation S096
        INCLUDE ZZIMOVEKVGR4.                                "TSTK9A05ZS
    * TSTK9A05ZS-End of changes
    *}   INSERT
    ENDFORM.
    Thanks & Regards,
    Selvakumar M.

    Hi,
    this form in RV60AFZZ is to modify KOMPCV fields.
    I can't see any attempts to change those fields in your include.
    You can either move your code directly into form routine USEREXIT_ACCOUNT_PREP_KOMPCV, or correct your code in your include to make it work (as Sudhi told before).
    Regards.
    Klaus

  • Statement not accessible in include called in a user-exit

    I am working on an upgrade project, and we receive an error 'Statement not accessible.
    In the following user exit:
    FUNCTION EXIT_SAPLZLWB_002.
    INCLUDE ZZLWBU02 .
    ENDFUNCTION.
    If I go to the include, I get an the error 'statement not accessible'.
    I tried to put all the code in the include between a form...endform statement,
    but then I get an incorrect nesting error because the form...endform is between a function...endfunction.
    How can I solve this?
    Thx!
    Edited by: christophe latinne on Jan 9, 2009 4:31 PM

    this seems to be a clone of a standard SAP function group, and thats why you can;t access the exits here.
    EXIT_SAPLZLWB_002
    you can create the exits starting with Z* in order to access those at runtime.

  • " Statement not accessible"

    Hi all
    there is an error  for the below statemnt
    APPEND 'Techn.Platz' TO it_fieldnames.
    " Statement not accessible"
    Thanks
    Protyusha

    Hi Protyusha,
    It seems that you are trying to append the complete line of a tabel with this 'Techn.Platz' . Instead you provide the field name that you are trying to append
    For ex:   it_fieldnames-fieldname.
    If still you are not clear then send me the complete code I will explain you in detail.
    Regards,
    Md Ziauddin

  • Statement Not Accessible for a FM

    Hi i am getting Statement not accessible syntax error at the Call Function Statement,(bold line) for the following code. Can somebody clarify me why this is happening. Thanks in advance.
    PROGRAM ZHR_FEATURE_RLPGR .
    TABLES : PERNR.
    TABLES : T74HG,  PSKEY, T5UB3, T5UB9, T5UBT, T5UBA .
    infotypes:0001,0021.
    CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'    
      EXPORTING
        _PERNR                 = PSKEY-PERNR
        _BEGDA                 = PSKEY-BEGDA
        _ENDDA                 = PSKEY-ENDDA
        _BAREA                 = T5UB3-BAREA
        _BENGR                 = T5UBT-BENGR
        _BSTAT                 = T5UB9-BSTAT
        _BPLAN                 = T5UBA-BPLAN
        _SUBTY                 = PSKEY-SUBTY
        _OBJPS                 = PSKEY-OBJPS
    IMPORTING
       _RLPGR                  = T74HG-RLPGR
       EXCEPTIONS
       EVALUATE_FEATURE       = 1
       CUSTOMER_ERROR         = 2
       OTHERS                 = 3

    Hi,
    Try with as below.
    CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'
      EXPORTING
        _pernr                 =
        _begda                 =
        _endda                 =
        _barea                 =
        _bengr                 =
        _bstat                 =
        _bplan                 =
        _subty                 =
        _objps                 =
        iscobra              =
        _nontx                 =
    IMPORTING
      _RLPGR                 =
    EXCEPTIONS
      EVALUATE_FEATURE       = 1
      CUSTOMER_ERROR         = 2
      OTHERS                 = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Ram.

  • My Mac OSX is coming up with error message when i try to write a disc "The disc can't be burned because the disc drive is not accessible (error code 0x80020020)." Same also when I tried my external disc writer-any clues?

    My Mac OSX (version 10.7.5) is coming up with error message when I try to write a disc "The disc can’t be burned because the disc drive is not accessible (error code 0x80020020)." I have tried several discs with the same message - Same also when I tried my external disc writer. Both disc drives will read my discs that have music or photos on it, it just won't write any new discs - any clues?

    Hi Klaus1
    So, I tried all the suggestions and followed the links - all to no avail.
    as you can see, (screenshot below) my iMac is a 21.5 inch late 2009 model which isn't showing in the updates listed above
    My system report shows that my Mac has the following:
    I reset the PRAM and the SMC - still have the same error message when I try to burn discs. I've used both CD's and DVD's and tried with my external Discwriter too.
    Any further suggestions??

  • How to find invalid statements(not syntax error) executed using v$ views

    Hi
    I want find invalid statements(not syntax error statements) that executed, when some of the applications runs in the server,
    for eg: permissions denied, table/view doesn't exit .. etc
    I could not able to find it in v$sql views. is there any other view that gives this information?

    V$ views only contain parsed statements, not incorrect ones.
    Max

  • Getting error "Statement not accessible"! Please help!

    We upgraded from 4.6C to ECC6.0 and some warnings in 4.6C are "syntax errors" in ECC6.0! I have the following code:
    SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-T04.
    UNIX_SINGLE 'MYPAR1' MYPAR3 P_BDWAVE  TEXT-SS3.
    SELECTION-SCREEN END OF BLOCK B4.
    UNIX_SINGLE is a macro. I found some information on this error here but could not relate my problem to any of those forums! Could someone please help! Any answers will be rewarded.
    Thanks.
    --Mithun

    DEFINE CLEAN.
    CLEAR &1
    REFRESH &1
    END-OF-DEFINITION.
    You call it like this...
    CLEAN MY_INTERNAL_TABLE.
    Greetings,
    Blag.

  • Enhancement in Module getting the message 'Statement is not accessible.'

    Hi All,
    I have a requirement in ME11/12/13 Info record. I have to put a check on 'Minimum order quantity' field and throw a message if it is blank. So i tried to create the Implicit enahncement in program SAPMM06I and screen number 102 inside MODULE CHECK_MANDATORY_FIELDS. After endmodule there is a place where we can do the implicit enahcement. i tried to create the same but will activating i am getting an error 'Statement is not accessible.'
    Is it because i am writing the implicit enhancement in module pool??? please help me out because i have to display the message at eine-minbm field 'Minimum Quantity'.
    thanks in advance
    Rahul

    I think a module should be placed in the enhancement and called elsewhere.
    Rob

  • "Statement is not accessible." - Error

    Hi,
    am working for an ECC upgradation project and am getting the above error "Statement is not accessible." at the below coding.
    WS_VBELN = XLIPS-VBELN.
    Kindly get me a solution <removed by moderator>
    Thanks in adv,
    Siva
    Edited by: Mike Pokraka on Sep 5, 2008 12:26 PM

    Hi all,
    Pls check the code below :
    DATA: WS_SPLITTOR(3)  TYPE C,
          WS_SPLIT(1)     TYPE C,
          WS_SPLIT1(1)    TYPE C,
          WS_SPLIT2(1)    TYPE C,
          WS_SPLIT3(1)    TYPE C,
          WS_VBELN        TYPE LIPS-VBELN,
          WS_POSNR        TYPE LIPS-POSNR,
          WS_NO_OF_LOOP(1) TYPE C,
          WS_NO_OF_ITEM(1) TYPE C,
          WS_BAL(1)        TYPE C,
          WS_MODNO(10)     TYPE C,
          PAR_ID(20) TYPE C.
    DECLARATION OF INTERNAL TABLE
    DATA: INT_XLIPS  LIKE XLIPS OCCURS 0 WITH HEADER LINE,
          INT_XLIPS2 LIKE XLIPS OCCURS 0 WITH HEADER LINE.
          WS_VBELN = XLIPS-VBELN.
          WS_POSNR = XLIPS-POSNR.
    MOVE SY-MODNO TO WS_MODNO.
    CONCATENATE 'SPLIT' WS_MODNO INTO PAR_ID.
    Regs,
    Siva

  • Compile Error Statement is not accessible

    Hi All,
    I have report in SAP 4.7 . when i do syntax check on it it give a warning -"statement is not accessible."
    But same thing when we compile we are getting as Syntax error in ECC 6.0 .
    when I compile it, it prompts
    <i><b>Include ZHRIPENR
    Statement is not accessible.</b></i>
    <i><b>My REPORT program -</b></i>
    REPORT ZHRIBANK  NO STANDARD PAGE HEADING
                     LINE-SIZE  80
                     LINE-COUNT 65.
    START-OF-SELECTION.
    INCLUDE ZHRIPENR.
    END-OF-SELECTION.
    <i><b>My INCLUDE program -</b></i>
    *INCLUDE ZHRIPENR.
    PERFORM BATCH_INIT.
    FORM BATCH_INIT.
    ENDFORM.                               " (BATCH_INIT)
    when I compile it, it prompts
    <i><b>Include ZHRIPENR
    Statement is not accessible.</b></i>
    Please let me know how can i proceed .
    Cheers,
    Reddy

    Hi ..
    The Reason may be bcoz you are Placing the FORM statements inside the Include.
    Just Remove the FORMS from the Include and Place the in ur Main program in the Last.
    Note: Subroutine definitions has to be in the end of the code.
    REWARD IF HELPFUL.

  • "Create Object " statement gives error: statement is not accessible

    Hi All
    U must b doing good.
    I am new in ABAP Objects.
    I have writeen a simple Class definition n Implimentasion code.
    but whenever i write statement "Create object", it gives error.
    'm working on SAP Dev 4.7.
    the code was like this:-
    class counter definition.
      public section.
        METHODS: set IMPORTING VALUE(set_value) TYPE i,
                 increment,
                 get EXPORTING VALUE(get_value) TYPE i.
       private section.
       DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        count = count + 1.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA: cnt_1 TYPE REF TO counter.
    DATA number TYPE I VALUE 5.
    CREATE OBJECT cnt_1 .
    CALL METHOD cnt_1->set
      EXPORTING set_value = number.
    DO 3 TIMES.
       CALL METHOD cnt_1->increment.
    ENDDO.
    CALL METHOD cnt_1->get
      IMPORTING get_value = number.
    write: number.
    its giving error like:-"Statement is not accessible."
    plz tell me the way to resolve this error.
    thanx n regards
    Prashant tiwari

    hi prashant....
      this is the link to post your therads for abap objects:
      [ABAP Objects;.
      if you want to reward, on the left of every reply ther would be some radio buttons like answere, helpful answer,... so on. click the radio button which suits you. answered closes the thread and other points are displayed there itself.
    ---regards,
       alex b justin

Maybe you are looking for

  • Calling a transaction in Portal

    Hi Guys,              I am calling a transaction in portal from WebDynpro. Here is my code. MOVE 'OkCode' TO param-key.   MOVE '/00' TO param-value.   APPEND param TO lparams.   MOVE 'TCode' TO param-key.   MOVE 'MIR4' TO param-value.   APPEND param

  • Sending File Over Serial PORT

    Hi, I'm able to read/write data over serial port using Java Comm APIs in Linux. Can anybody please tell me how to write/read a file over Serial port? Is it similar to sending a file over network? An early response is appreciated...

  • Exporting photos with keywords

    I recently organized over 600 family photos and organized each by keywords. I now want to export them to a CD to share. I am exporting the photos for my PC using family around the country. When I export the photos, the keywords don't go with it. Is t

  • Does anyone have the link to report in app purchases made by a minor

    does anyone have the link to report in app purchases made by a minor?

  • Can´t install Adobe PDF Reader 9.3: Asking for Administrator

    Hi, I can not install the Reader 9.3! Software is asking to be logged in as administrator. But I am logged in as administrator I have Windows Vista. What do I have to do to get the reader installed?