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.

Similar Messages

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

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

  • Statement is not accessible

    Hi Anybody ,
    i am getting an error 'Statement is not accessible'
    REPORT  ZZDEMO_EXPORT.
    TABLEs : NAST.
    DATA : i_vbeln  TYPE VBAK-VBELN.
    DATA:  lf_fm_name            TYPE rs38l_fnam.
    DATA:  lf_formname           TYPE tdsfname.
    DATA:  XSCREEN(1) TYPE C.
    DATA:  RETCODE   LIKE SY-SUBRC.
    FORM entry USING return_code us_screen.
      DATA: lf_retcode TYPE sy-subrc.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen
                         CHANGING lf_retcode.
      IF lf_retcode NE 0.
        return_code = 1.
      ELSE.
        return_code = 0.
      ENDIF.
    ENDFORM.                    "ENTRY
    data: GT_LINES like tline OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = 'ZPRI'(002)
        LANGUAGE                      = 'B'
        NAME                          = '123456'
        OBJECT                        = 'VBBK'
      TABLES
        LINES                         =  GT_LINES
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM processing USING proc_screen
                    CHANGING cf_retcode.
    i_vbeln = NAST-OBJKY.
    LF_FORMNAME = 'ZCFR_EXPORT_RAJIVPLASTIC2'(001).
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING
              FORMNAME           = lf_formname
       IMPORTING
              FM_NAME            = LF_FM_NAME
       EXCEPTIONS NO_FORM        = 1
              NO_FUNCTION_MODULE = 2
              OTHERS             = 3.
    CALL FUNCTION LF_FM_NAME
      EXPORTING
        i_vbeln                   = i_vbeln.
    ENDFORM.                    "PROCESSING
    How can I solve that problem ?
    Thanks & Regards
    Ambrish Dwivedi

    Hi,
    I have changed the source code , please check it.It is working fine.
    TABLEs : NAST.
    DATA : i_vbeln TYPE VBAK-VBELN.
    DATA: lf_fm_name TYPE rs38l_fnam.
    DATA: lf_formname TYPE tdsfname.
    DATA: XSCREEN(1) TYPE C.
    DATA: RETCODE LIKE SY-SUBRC.
    data: GT_LINES like tline OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    ID = 'ZPRI'(002)
    LANGUAGE = 'B'
    NAME = '123456'
    OBJECT = 'VBBK'
    TABLES
    LINES = GT_LINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8
    IF SY-SUBRC NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM entry USING return_code us_screen.
    DATA: lf_retcode TYPE sy-subrc.
    CLEAR retcode.
    xscreen = us_screen.
    PERFORM processing USING us_screen
    CHANGING lf_retcode.
    IF lf_retcode NE 0.
    return_code = 1.
    ELSE.
    return_code = 0.
    ENDIF.
    ENDFORM. "ENTRY
    FORM processing USING proc_screen
    CHANGING cf_retcode.
    i_vbeln = NAST-OBJKY.
    LF_FORMNAME = 'ZCFR_EXPORT_RAJIVPLASTIC2'(001).
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = lf_formname
    IMPORTING
    FM_NAME = LF_FM_NAME
    EXCEPTIONS NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    CALL FUNCTION LF_FM_NAME
    EXPORTING
    i_vbeln = i_vbeln.
    ENDFORM. "PROCESSING
    Regrads,
    Suvajit

  • 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

  • INCLUDE - Statement is not accessible.  URGENT.

    II am making change to user exit in INCLUDE MV45AFZZ.
    I just put an if condition in the INCLUDE ztest_so.
    It is giving following ERROR (RED) when I check the syntax.
    Include ZTEST_SO
    Statement is not accessible.
    FORM userexit_move_field_to_vbak.
    Include ztest_so
    Endform.
    *&  Include           ZTEST_SO
    if sy-uname eq 'TRAIN014'             
    endif.
    Please help.

    You created the include alright. But there is no call to the include (Perform statement) from any program, hence include cannot be accessed.
    MV45AFZZ is standard SAP User Exit where all Forms are being called at specified points in standard SAP code.
    Iam not sure/not tried but if you create your new Form you will have to modify SAP code to make a call to this FORM, which is not recommended.
    The best solution is to use the available Forms and put your code in the one that is being called at the right place for you to be able to use it.

  • Statement is not accessible in Exit include

    Hi,
    I have added code in the exit V05EZZWE (in system ECC 6). When i try to check it, it gives an Error saying "Statement is not accessible" at the beginning of the code. I tried going through some of the related links in the forum, but it is not clear to me why this is happening. Nonetheless, I can still activate the include and the main program.
    Can anyone explain this error?
    Thanks a lot,
    Shivali

    Did you already check this SDN - thread?
    It looks very similar to your problem.
    Re: Statement not accessible

  • Trying to save files on "PC" side of Mac, using a FreeAgent external harddrive.  I get the error message E:/not accessible or something similar.  Can I not use an external harddrive, if not, what is the best way to back up PC side of a Mac

    Trying to save files on "PC" side of Mac, using a FreeAgent external harddrive.  I get the error message E:/not accessible  access denied.  Can I not use an external harddrive, if not, what is the best way to back up PC side of a Mac

    Apple has really crappy NTFS read-only that does not always work. And it is probably a licensing issue.
    Paragon Software is constantly being updated and supported with their NTFS for Mac OS X - they also have an HFS+ driver for Windows that works - Apple's HFS+ read-only driver for Boot Camp / Windows does not.
    I keep seeing problems and lack of support for MacFUSE, that could change.
    http://www.bing.com/search?q=ntfs+for+mac

  • Pulseaudio Error, Home Directory Not Accessible: Permission Denied

    I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
    I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
    D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
    D: [pulseaudio] core-util.c: RealtimeKit worked.
    I: [pulseaudio] core-util.c: Successfully gained nice level -11.
    I: [pulseaudio] main.c: This is PulseAudio 3.0
    D: [pulseaudio] main.c: Compilation host: x86_64-unknown-linux-gnu
    D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
    D: [pulseaudio] main.c: Running on host: Linux x86_64 3.7.10-1-ARCH #1 SMP PREEMPT Thu Feb 28 09:50:17 CET 2013
    D: [pulseaudio] main.c: Found 2 CPUs.
    I: [pulseaudio] main.c: Page size is 4096 bytes
    D: [pulseaudio] main.c: Compiled with Valgrind support: no
    D: [pulseaudio] main.c: Running in valgrind mode: no
    D: [pulseaudio] main.c: Running in VM: no
    D: [pulseaudio] main.c: Optimized build: yes
    D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
    I: [pulseaudio] main.c: Machine ID is 6aee4708a200492ea6f54ed069a7da94.
    I: [pulseaudio] main.c: Session ID is 1.
    I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
    E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied

    It seems to be fine in windows, I have logged a bug for Linux.
    Thanks
    Sue

  • Compiler error: Code could not be generated

    When I tried to run the example.VI (attached) there was an error:
    Compiler error. Report this problem to NI Tech support
    copy cvt, csrc = 0X40
    bad mode in _GenCopyCOnvertNumCode xc = 0X40
    Could anyone help me in this regard.,
    Thanks in advance
    Rajesh
    Attachments:
    example_test.vi ‏44 KB

    Hi,
    If I understand correctly, all you want to do is to convert a single to a
    binary string.
    The attached VI does this. It can be turned into a subvi very easily.
    Regards,
    Wiebe.
    "Intern" wrote in message
    news:[email protected]..
    > Hi Wiebe,
    > I use LV6 and fortunately the VI runs after I changed array
    > initialisation of the last 2 inputs. But there prevails a new problem
    > in my example VI.
    >
    > There are 2 more inputs which are in single precision mode. Say,
    > N and M are the 2 inputs.
    >
    > eg.,
    > N = 40
    > M = 5
    >
    > I want the numerical conversion of those inputs as 7 bit binary value.
    > N = 40 ---> 0101000
    > M = 5 ---> 0000101
    >
    > I could convert the I/P into U8 or I8 type in wh
    ich there prevails
    > another zero at the MSB that is not interesting for my application. I
    > have also attached the updated VI along with this email. You could see
    > the inputs which are in single precision mode and the required output
    > is a 24 bit word.
    >
    > N --> 7 bit
    > M --> 7 bit
    > V --> 1 bit
    > X --> 2 bit
    > R --> 2 bit
    > n so on..
    >
    > Help me in this regard.
    >
    > Thanks in advance.
    > Regards
    > Rajesh
    [Attachment Single to Binary.vi, see below]
    Attachments:
    Single_to_Binary.vi ‏17 KB

  • Oracle Error - statement handle not executed state

    Hello,
    A BCA scheduled job has failed and returned with the following error. Does anyone have an idea to fix this error.
    Connection or SQL sentence error: (DA0005): [Exception: DBD, ORA-24338: statement handle not executed State: N/A] The following data providers have not been successfully refreshed
    Thanks
    -Gopi

    Please provide more information on what Crystal Reports or Business Objects product you are using. The more details you can provide, the quicker the resolution...
    Ludek

  • ODI 11g (11.1.1) error -- statement is not in batch mode

    I am getting this ODI error:
    ODI-1217: Session SOME_NAME (1225001) fails with return code -1256.
    ODI-1226: Step SOME_NAME fails after 1 attempt(s).
    ODI-1240: Flow SOME_NAME fails while performing a Loading operation. This flow loads target table SOME_NAME.
    ODI-1228: Task SrcSet0 (Loading) fails on the target SUNOPSIS_ENGINE connection SUNOPSIS_MEMORY_ENGINE.
    Caused By: java.sql.SQLException: statement is not in batch mode
    It most often occurs when my dataset has a number of records that is divisible by 10
    Any ideas on how to resolve this annoying and reoccurring error???
    Thank you for your help
    ....

    It seems you are hitting on an ODI bug for which patch is available. Please refer to Note ID 1530553.1 on support.oracle.com
    "java.sql.SQLException: statement is not in batch mode' Signalled When Executing An ODI 11g Scenario Populating An XML File After Upgrade From 10g [ID 1530553.1]"

  • Palm Desktop Re-Install Error: "Networkaddress 0\ not accessible"

    Hi All,
    after having to reinstall Palm Desktop (Version 4.1.0420 german) cause there have been some strange behaviors after reboots i'm fighting with this problem.
    I use Win XP SP3 on my desktop and use a USB connected Palm TX since appr. 2 years. Everything went fine but now...
    When trying to install Palm Desktop from the original Palm CD it starts the installation automatically, then the screen appears with the comment "Calculating memory requirement" (i translated the messages from german to english) and after 1 or 2 minutes i get the error message stated in teh subject. 
    I have full admin rights when trying to install
    I tried to reinstall Palm Desktop - same error
    I completely uninstalled Palm Desktop - same error
    I disabled network and firewall - same error
    I did not know what to do now. Did not like to reinstall the whole desktop.
    Any help there?
    Thanx in advance
    jollytheb
    Post relates to: Palm TX

    In very rare cases we do not need to do this but use this link http://kb.palm.com/wps/portal/kb/common/article/39671_en.html

  • JSP compilation error, IOException, can not output (Urgent)

              Hi,
              I met the error that Weblogic can compile the jsp to a temporary java file but can
              not compile the temporary java file to class file, it said java.io.IOException, anybody
              can tell why?
              Thanks a millon!
              

              Your system does not have enough swap space to run the JSP compiler.
              Add swap space.
              Mike
              "dai shui" <[email protected]> wrote:
              >
              >Hi,
              >I met the error that Weblogic can compile the jsp to a
              >temporary java file but can
              >not compile the temporary java file to class file, it
              >said java.io.IOException, anybody
              >can tell why?
              >
              >Thanks a millon!
              

  • Compile error (Code could not be generated)

    When I try to run the attached vi I get the following error message "Code
    could not be generated correctly for this VI."
    I use Labview 7.1 under Windows XP.
    Attachments:
    ParSettings.zip ‏293 KB

    The "Representation" enum is defined differently in the "SDO Par In", "SDO Par", PDO Par In" and "PDO Par" clusters. Labview does apparently not recognice this and crashes instead of warning for incompatible data types.

Maybe you are looking for

  • Blank screen on Mac Mini running Boot Camp 3.1 with XP SP3

    After upgrading from 3.0 to 3.1 of Boot Camp I now am getting a blank screen after Windows finishes it's loading screen. Booting to safe mode works. I have tried uninstalling 3.1 and reverting back to 3.0, but the issue remains. Reinstalling 3.1 agai

  • User Exit in F110 ( Automatic Payment Run Transaction )

    HI all, I trying to find an User Exit, where i can get the 1. Run Date 2. Identification used in F110 transaction. I needed this to code for a 'Change Variant' for my custom program which is added to F110( PrintOut/data Medum). I tried to use Exit :

  • Custom Workflow Activities on diferente languages sites

    Hello everyone, I've developed some custom workflow activities on VS, and they are all working correctly on all sites of the default language (English). My problem now is that I've installed another language pack (Portuguese) and created several site

  • Once a row is deleted from a table ,how can i recover it back in the table?

    Hi I have made a delete program in Jdev. I had deleted some of the rows from table such that count goes 2 from 10. Now I want to use this table again for some other program,how should i restore the deleted rows so that i can use the table properly. H

  • What do i do when im locked out of my ipad

    so, i have put a password on my ipad air 2 and i have failed the attempts to unlock it. ive emailed apple and there not doing any thing about it. what do i do?!?!?!