"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

Similar Messages

  • Firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • 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

  • How to resolve can't create object: 'OracleInProcServer.XOraSession'  ERROR

    Hello Everyone,
    We just replace our web server from windows server 2000 to windows server 2003 and we also
    upgrade our oracle database from 9i to 10g... But when i transfer all the asp pages into new server and
    run the scriprt i encountered error can't create object: 'OracleInProcServer.XOraSession' did i missed some of the requirements when doing this...
    I hope there someone will help me ragarding my problem.
    Thanks a lot

    user8794432 wrote:
    YES! I already upgrade the oracle client to 10g.. And im planning to install a OLE object OO40 for oracle 10g.
    Do you think this will work..?
    Well it was a suggestion. Give it a try. If it works, great. Else :-)

  • Editing a pdf form that I created. Adding header error msg "do not have sufficient permissions to perform this task"

    Editing a pdf form that I created. Adding header, currently the header only appears on page 1 of a 3 page pdf form.  I want it to appear on each page.  I am receiving the error msg "do not have sufficient permissions to perform this task"

    In Adobe Acrobat use a Action for this.

  • HT1386 I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message as not connected to internet, even though am connected

    I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message
    Unable to verify update
    ios 7.1.1 failed verification because you are no longer connected to the internet
    Close          Try again
    Event though I am connected to the net
    Tried repeatedly but frustrating. Am able to do the same in another iphone 4 which my brother has....Do not know what setting to change. Even cant update via itunes

    Hi GajaPsy,
    If you are getting errors or alert messages when you try to update your iPhone, you may find the troubleshooting steps outlined in the following article helpful:
    Apple Support: Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/ts1275
    Regards,
    - Brenden

  • Creating new analysis gives "Error loading XML Document from ..."

    Trying to create analysis and getting "Error loading XML Document from saw.dll/answers/answersproperties.xml?fmapId=S1clug.
    The response given was:" after choosing subject area. Analysis editor is opened but Subject Areas is empty and can't do anything.
    The problem is on Mozilla 12 (16.0.2, 17.0.1) and IE 8. Chrome works fine.
    My system is Win 7, BI 11.1.1.6.0 is on Oracle Linux (and by the way Mozilla from Linux system works fine)
    What could be the reason of this?
    Edited by: 898973 on 4/12/2012 15:11

    Reinstalling Mozilla with "Remove personal data" option checked resolved the problem.

  • Brrestore give error termination message not found

    Dear all
    i have try to restore offline backup to test system bcaz while database upgrade it got crashed it shows error ora-01157 and ora-01110 i have the backup of system
    while i am trying to restore the backup it throws error terminated message not found d:\oracle\SID\sapbackup\beojggvh.afd log file incomplete
    i used following command
    brrestore -b beojggvh.afd -m full -c
    i copied backSID.log and beojggvh.afd file from offline backup folder to target system /oracle/sid/sapbackup  suggest i went wrong
    i am on windows
    Regards

    Hi,
    Share the complete error log file and make sure data file using for restore should be a successful one complete offline backup.In addition share alert_<SID>.log file also.
    Regards,
    Gaurav

  • Ent 9 - Can't run mgmt console - admin.cwr gives Error 404: page not found

    Post Author: Alan Weiner
    CA Forum: Deployment
    We just did a fresh install of Crystal Enterprise 9.  When we try to run the Management console, we get an "Error 404: page not found"
      http://wdcwfc80/crystal/enterprise9/admin/en/admin.cwr
      Error 404: The page cannot be found

    Post Author: Alan Weiner
    CA Forum: Deployment
    From the server (although, it uses a browser to connect)
    colin mackenzie:
    Hi Alan Weiner.
    Do you get this message when you run this from the server? or just the workstation / client browser?

  • 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

  • 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

  • Is there any way to create objects in jstl even if its not a java bean

    please someone help me :<(
    thx in advance for the time you'll spend on my question.
    i am translating some code in jsp with embedded java to jstl. and in scriptlets they created java object of some class and using it in loop. but that class is not bean, so i can't use <jsp:useBean> tag so how do i do that here is the code
    <% TabLayoutConfiguratorImpl tabsConfigurator = new TabLayoutConfiguratorImpl();
    %>
    <logic:iterate id="tab" name="tabList" type="TabItem" >
    <% // compute href
    if (!tabsConfigurator.isHidden(tab))
    -----statements-----
    %>
    </logic:iterate>
    how can i create TabLayoutConfiguratorImpl class object and use everything should be done in jstl? is there any way at all?
    here is my class
    package conf;
    import javax.servlet.http.*;
    import org.apache.struts.tiles.ComponentContext;
    public class TabLayoutConfiguratorImpl implements TabLayoutConfigurator
    public void configure(HttpServletRequest request) {
    HttpSession session = request.getSession();
    ComponentContext context = ComponentContext.getContext(request);
    this.configureDefinition(context);
    java.util.Iterator i = ((java.util.List) context.getAttribute("tabList")).iterator();
    while (i.hasNext())
    TabItem tab = (TabItem) i.next();
    this.configureTab(tab, session);
    // subclasses should override this if there the attributes in the Definition
    // need to be manipulated
    protected void configureDefinition(ComponentContext context)
    // default implementation does nothing
    // subclasses should override this if tabs in the definition
    // need to be manipulated
    protected void configureTab(TabItem tab, HttpSession session)
    // default implementation does nothing
    // subclasses should override this if they want to hide tabs in the
    // configuration
    public boolean isHidden(TabItem tab)
    // default implementation returns false - ie they are visible
    return false;
    }

    I don't see what is wrong with
    <jsp:useBean id="tabsConfigurator" class="com.mypackage.TabLayoutConfiguratorImpl"/>
    The class has a no-args constructor at least. The useBean tag will work with it. Probably.
    But still, some code just can't be translated into scriptless JSTL.
    Calling methods which take parameters is one of those things.
    In this case you probably want to write a custom tag to work with your tabs
    I would probably look at using custom tags like this:
    <%@ taglib prefix="tab" uri="/WEB-INF/TabLayout.tld"%>
    // tab to create the configurator.
    // either export it as a var, or use other tags only nested within this one
    // so you can get access to the configurator.
    <tab:configure var="configurator">
      <tab:render configurator="${configurator}" tab="${tab}">
    </tab:configure>I don't know exactly what the scriptlet code will be doing. But I think a custom taglib would be the only way to eliminate scriptlet code that you have here.

  • Universe Created by Integration gives error

    Following workflow is describing the problem:
    When creating a universe on a SAP/BI query, the objects are generated
    automatically
    A parse is executed afterwards to check the object syntax.  This parse
    reveals one problem with a filter object that is coming from the SAP System.
    The BusinessObjects error message is:"Filter Parse failed:  Invalid
    Definition (UNV 0023)"
    [cid:[email protected]]
    However when the syntax is manually checked, no special failures can be
    found within the syntax of the object.  The definition of the prompt seems
    to be correct and identical to other prompt syntaxes used in the specified
    universe.
    Hereby the object syntax that fails to parse: <FILTER
    KEY="[!V000001]"><CONDITION OPERATORCONDITION="Between"><CONSTANT
    TECH_NAME="@Prompt('Operational Company Selection From','A','Operational
    Company\LovOperational Company
    SelectionBase',mono,primary_key,,{'AAA':'[ZOPERCOMP].[AAA]'})"/><CONSTANT
    TECH_NAME="@Prompt('Operational Company Selection To','A','Operational
    Company\LovOperational Company
    SelectionBase',mono,primary_key,,{'ZZZ':'[ZOPERCOMP].[ZZZ]'})"/></CONDITION>
    </FILTER>
    When the universe is published to the server and reports are created on the
    enterprise system, all works fine.  When reports are created locally the
    prompt screen appears normally.[cid:[email protected]]
    The query starts to run afterwards, but after a short while an error message
    is appearing on screen
    [cid:[email protected]]
    This error is not appearing when the query is run in InfoView with exact the
    same parameters, on exact the same universe.
    Hereby the complete error:
    Data - ASP CCR Global - Internal Costs2
    A database error occured. The database error text is: The MDX query SELECT 
    { [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCCZK8EFK3JDH81JC4FDD8E],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD079ZBD8393KJ1J59J9DQ],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD0UBK76CN4PX0JQ63P5J2],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD1HD52ZH70C9I1X6XV1OE],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD2RGAULQARKYH2B8M6TZ2],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD3EHVQEUUN7AYKI9GCQ4E],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD41JGM7ZEITNG2PAAIM9Q],
    [4FYCCZCJVGYE0QXRVP9S5BEIM].[4FYCD24EPYSLQVYLZK47S0XTQ] }  ON COLUMNS , NON
    EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN(
    [ZSERVTEAM__ZREGLEV2].[LEVEL01].MEMBERS,
    [ZSERVTEAM__ZREGLEV3].[LEVEL01].MEMBERS ),
    [ZSERVTEAM__ZSERTEAM2].[LEVEL01].MEMBERS ),
    [ZASAPCOMP__ZBPCCNTRY].[LEVEL01].MEMBERS ),
    [4FYCCUFVRD334CIG5HRXQ281Q].MEMBERS ) ON ROWS FROM
    [ZCCR_M01/QZCCR_M01_5007_BO] SAP VARIABLES [!V000001] INCLUDING
    [ZOPERCOMP].[AAA] : [ZOPERCOMP].[ZZZ] [!V000003] INCLUDING [0CALMONTH2].[06]
    [!V000002] INCLUDING [0CALYEAR].[2009] [!V000003] INCLUDING
    [0CALMONTH2].[06] [!V000002] INCLUDING [0CALYEAR].[2009] [!V000001]
    INCLUDING [ZOPERCOMP].[AAA] : [ZOPERCOMP].[ZZZ] failed to execute with the
    error Inconsistent input parameter (parameter: <unknown>, value <unknown>).
    (WIS 10901)
    We have these issues on several PC's.  The report was created via WebI Rich
    client last Thursday.  Nothing has changed in the meanwhile to the server 
    On Windows level automatic updates were installed.

    Hi,
    is the prompt a custom objects in the Universe or is it a filter based on a variable in the query ?
    in case it is a custom object I would suggest you post the definition here.
    Ingo

  • Add monitoring wizard gives error 'page could not be loaded'

    Dear forum members,
    I use the Cisco USC management pack and i get this error. In the opsmgr eventviewer i don't see nothing at all.Does anybody have an idea to solve this?
    Kind regards,
    André

    Hi
    I tried to do a new install, even with a newer version. But i still get the error.
    This is the error:
    Note:  The following information was gathered when the operation was attempted.  The information may appear cryptic but provides context for the error.  The application will continue to run.
    Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.UISDKException: The page could not be loaded. Please review the errors and try again. ---> Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.UISDKException: The page could
    not be loaded. Please review the errors and try again. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Cisco.UCS.MP.UI.Proxy.Template.Page.ProxyDetailsPage.LoadPageConfig()
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageWrapper.LoadPageConfig()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageWrapper.OnPageAdded()
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageWrapper.OnPageAdded()
       at Microsoft.EnterpriseManagement.ConsoleFramework.WizardFramework.AddPage(Page page)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageManagerBase.AttachToFramework(IPageFramework pageFramework, Boolean readOnly)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Pages.TemplateListPage.AddPagesForSelectedItem()
    Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.UISDKException: The page could not be loaded. Please review the errors and try again. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Cisco.UCS.MP.UI.Proxy.Template.Page.ProxyDetailsPage.LoadPageConfig()
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageWrapper.LoadPageConfig()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.PageWrapper.OnPageAdded()
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Cisco.UCS.MP.UI.Proxy.Template.Page.ProxyDetailsPage.LoadPageConfig()
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)

  • Import javax.servlet.* gives error "package does not exist"

    I am working through Monica Pawlan's book "Essentials of Java PL".
    My PC runs Windows2000 prof. I have downloaded and installed j2sdk-1_3_1_01-win.exe in c:\jdk1.3.1_01
    I have downloaded and installed tomcat4.0 (jakarta-tomcat-4.0.zip) into c:\jakarta-tomcat-4.0
    CATALINA_HOME is set to c:\jakarta-tomcat-4.0 and CLASSPATH is set to .;C:\jakarta-tomcat-4.0\common\lib\servlet.jar
    I can compile an applet starting:
    import java.awt.Color;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.*;
    //Class Declaration
    class SwingUI extends JFrame implements ActionListener { ... }
    but trying to compile my servlet starting:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExampServlet extends HttpServlet { ... }
    gives me the error (import javax.servlet.*) "package does not exist".
    Any pointers on this immediate problem? and is my book out of date?
    Many thanks,
    James Towell

    You downloaded the Java 2 SDK Standard Edition, but you need to also download the Enterprise Edition if you want to write programs that use enterprise features.

Maybe you are looking for

  • Not all backups appear in Time Machine-at first

    When I run Time Machine.app to see my backups of a particular folder, the most recent five or so backups are missing. They do not appear at all, as if they never took place. The reason I know they are missing is because after I close TM and then re-o

  • Skype cant connect please help!~

    So I have been getting ddosed latly so I looked up online how to prevent it and someone said they get my ip though skype. So I followed some steps to setup a proxy on skype and after I did that now when I goto sign in on skype it says "Skype can't co

  • Previous Meter reading results

    Hi Experts,                       I need to get previous MR results based on current MR result. Is there any table or function module for the same.  Please provide your valuable inputs. Thanks in advance. Regards, Laxman.P

  • Songs have to be put onto ipod again

    Hi- Whenever I plug my 5G iPod, it seems as it has to transfer some songs again, that have not had any change from what I believe since they last were put onto the iPod. I have no idea what may have made this happen, but it may be because i listened

  • IPad in UK iTunes

    Whilst I understand the reasons for the delay in releasing the iPad in the rest of the world (it was always going to happen). I do not understand why Apple have not opened the iPad in iTunes for the rest of the world. I am probably one of thousands o