Updating object in main from package method

I need to update an object declared in the main class
from a method within a package. The main class has the import statement. The package has the package statement. The objects are declared as "public static".
I pass the object to the method.
I tried the following and get a compile error.
"classname.object" = somevalue
The error is Undefined name (classname).
Does anyone have any ideas?
Thanks...

When you say "main" do you mean the main() method?
--Ian                                                                                                                                                                                                       

Similar Messages

  • How to access Business object type attribute from a method/function modul ?

    Hello,
    i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
    data a type XXX.
    a = me->attribute
    this is creating a compilation error.
    Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
    pointes are awarded
    Regards

    Hello,
    thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
    the abap error was when i was checking the code is :
    the type me=>documenttype is unknown
    as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1
    regards

  • Errors when 'Updating Objects' during migration from r2 to 3.1 FP1.8

    Has anyone seen errors like this the Update Objects error log file.  I've done 5 or 6 test migrations, and before it was normally working fine, but a couple of times I would get thousands and thousands of rows in the log file such as this:
    ID     Object     Path     Error
    1000023     1000023     ...     
    1000029     1000029     ...     
    1000036     1000036     ...     
    1000069     1000069     ...     
    1000070     1000070     ...     
    1000075     1000075     ...     
    1000107     1000107     ...     
    1000116     1000116     ...
    In testing, there doesn't seem to be much of an indication of any problems, except that recurring schedules don't work after the upgrade, which is a big deal for us as we have about 1000 of them.

    I can't tell what  the compiler is complaining about. I tried a version of your code sample:
    struct Error { Error(int); };
    struct Warning : public Error {
        Warning(void) : Error(-8) {}
    struct Warning_NoNewMilestones : public Warning {
        Warning_NoNewMilestones(void) { }
    int main()
        throw  Warning_NoNewMilestones();
    It compiled without complaint using C++ 5.12 (Studio 12.3).
    There are always two possibilities: The code is OK and you hit a compiler bug, or the code was always invalid but the earlier compiler did not catch the error. Since you seem to have a variety of error messages, the most likely scenario is that the new compiler is catching more errors in your code.
    In general, there is no option to have the compiler accept invalid code. In rare cases, where the error is harmless, or when other compilers typically accept the invalid code, we have an option to allow the code. Please review the list of compiler options in Appendix A of the C++ Users Guide.
    Oracle Solaris Studio 12.3 Information Library
    If the reason for an error message is not obvious, you can post a (preferably small) example that can be compiled to show the error message. Someone in the forum can then probably explain the error, or verify that you hit a compiler bug.
    Here is an example of the badbinaryop error message:
    % cat z.cc
    struct S { };
    int main()
        S s;
        int j = s + 3;
    % CC z.cc
    "z.cc", line 5: Error: The operation "S + int" is illegal.
    1 Error(s) detected.
    I hope the reason for the error is obvious in this case.

  • Update object returned by a business method in stateful session bean

    I have a business method in stateful session Bean returning an Object "myObject getObject()". This object can be modified by the client.
    Is it necessary at the end to notify the bean about the changes with some kind of business method "setObject(Object myObject)"? or
    the client and the bean have the same reference to the object and it isn't necessary?
    Thanks

    When an EJB returns a value, it is serialised across the wire and is effectively lost to the EJB. Any changes to the returned object by the client, will have to be notified by a call on the EJB, as in your post.
    Dave

  • Calling a object of class from other class's function with in a package

    Hello Sir,
    I have a package.package have two classes.I want to use object of one class in function of another class of this same package.
    Like that:
    one.java
    package co;
    public class one
    private String aa="Vijay";  //something like
    }main.java:
    package co;
    import java.util.Stack;
    public class main extends Stack
    public void show(one obj)
    push(obj);
    public static void main(String args[])
    main oo=new main();
    }when I compile main class, Its not compile.
    Its give error.can not resolve symbol:
    symbol: class one
    location: class co.main
    public void show(one obj)
                              ^Please help How that compile "Calling a object of class from other class's function with in a package" beacuse I want to use this funda in an application

    kumar.vijaydahiya wrote:
    .It is set in environment variable.path=C:\bea\jdk141_02\bin;.,C:\oraclexe\app\oracle\product\10.2.0\server\bin;. command is:
    c:\Core\co\javac one.javaIts compiled already.
    c:\Core\co\javac main.javaBut it give error.
    Both java classes in co package.Okay, open a command prompt and execute these two commands:
    // to compile both classes:
    javac -cp c:\Core c:\Core\co\*.java
    // to run your main-class:
    java -cp c:\Core co.main

  • How to get caller object reference from a method

    Hi,
    I am working a already existing Java Swing project, now I got a problem, in a method I need to get the caller object reference otherwise, I can't succeed this operation. So please tell me a way how to get the caller object reference from a method. that method would be static or regular method anything will do for me.
    Edited by: navaneeth.j on Jan 29, 2010 11:20 PM

    navaneeth.j wrote:
    Actually my doubt is, I have a method "addition" method, which is using by many classes so my requirement is in the addition method I want to write a code snippet which will identify and get the the caller object. Actually I tried Reflection.getcallerclass but there I am getting "CLASS" object not the actual object reference, but I want object reference.
    Actually we have a huge project which is writen plain JAVA, so in this project the authors written the Database connection package for single database transaction. so now we are using this project source code for JSF application in this web application the DB package has serve based on the dynamic db connection parameters, so if we want to change this package fully means need to solve the dependency problem in hundreds of classes, so my point is if I can access the caller object in the DB package when ever it gets called by any class from any where of the project. So actually I liked Reflection.getcallerclass, the way of implementation perfectly works for me but it is not giving caller object reference, if something gives the caller object then I can get the DB connection parameters then there is no need to pass the parameters in the hierarchy.You can add a parameter (of type Object) to your addition() method
    and everywhere you call the addition() method also pass this (which from the POW of the addition() method will be a reference to the calling class instance).
    There may be alternative solutions
    but none that require less effort.

  • Update showing up in "Compliance 5 - Specific Computer" Report even after removing the update from the Software Update before creating Group and Package

    So I've created a Software Update Group and I did NOT want anything in there dealing with Internet Explorer 11 since the organization is currently stuck at using 10 as the highest. So I made sure that Internet Explorer was NOT in the list and then I deployed
    the package. 
    After running my Overall Compliance report it shows that the systems are compliant, but when I view the "Compliance 5 - Specific Computer" I see that "Internet Explorer 11 for Windows 7 for x64-based Systems" is listed in the report. 
    This is just a testing phase right now and I have not created a WSUS like Domain level GPO. I understand that the SCCM client creates a local policy on the clients for the location of the Software Update Point (Specify
    Intranet Microsoft update service location), but the "Configure Automatic Updates" policy is set to Not Configured, which it looks like when this
    is set, the "Install updates automatically (recommended)" at 3AM is the default. 
    Is the reason why the "Internet Explorer 11 for Windows 7 for x64-based Systems" update is showing up in the list due to the fact that the "Configure
    Automatic Updates" policy is set to Not Configured
    and therefore it is still reaching out to check Windows Update online? 
    So, if I do create a Domain level GPO to Disable the "Configure
    Automatic Updates" policy, then the "Internet Explorer 11 for Windows 7 for x64-based Systems" update would not show up in the "Compliance 5 - Specific Computer" report?
    By the way, I have a Software Update Maintenance Window configured for the hours of 1AM-4AM so the 3AM default time falls within this time frame, therefore, I am assuming the SCCM 2012 client will not allow the Windows Update Agent to install the "Internet
    Explorer 11 for Windows 7 for x64-based Systems" update, even though it has detected it is "Required". 
    Thanks

    But, don't you need a Deployment Package in order to deploy the Software Update Group? The Software Update Group uses the downloaded updates contained in the Deployment Package located in, wherever the Package Source is, right?
    One more quick question that you will know right off hand, because, well, you just will I'm sure.
    No. The software update group really has nothing to do with any update packages. The update group assigns updates to clients and in turn clients use update packages to download assign and applicable updates from. There is no connection between the two though
    as the client can download an update from any available update package. Thus, it's more than possible to updates in an update package that are not in any update groups and it is also possible for an update to be in an update group without being in any update
    package.
    If the "Configure Automatic Updates" policy is set to "Not Configured" and since this keeps the 3AM Automatic Updates default, if I was to remove the Software Update Maintenance Window from being between 1AM-4AM, will the WUA agent install updates
    at 3AM, or no because the SCCM 2012 client still manages and oversees it and basically blocks that from occurring?
    No, ConfigMgr does not in any way block the WUA; however, the WUA can only autonomously install updates it downloads directly from WSUS. Thus, since there are no updates approved or downloaded in your WSUS instance, there's nothing for it to download and
    install. If you happen to actually be going into WSUS and approving updates (which you should not be doing as its unsupported), then yes, it actually would install updates -- this is outside of ConfigMgr's control though. Generally, disabling the WUA via a
    GPO is the recommended to prevent any accidental installations or reboots (as the WUA wil also check for initiate pending reboots outside of ConfigMgr).
    Lots more info in these two blog posts:
    - http://blog.configmgrftw.com/software-update-management-and-group-policy-for-configmgr-what-else/
    - http://blog.configmgrftw.com/software-updates-management-and-group-policy-for-configmgr-cont/
    Jason | http://blog.configmgrftw.com

  • Error "Only edit objects from package /VIRSA/ZVIR in local requests"

    Hey, SAP gurus,
    After I applied OSS note 1149445 in our Dev box to fix the bug in program /VIRSA/ZVFAT, I had problem to realease the transport. I got the error u201COnly edit objects from package /VIRSA/ZVIR in local requestsu201D.
    u201CObjects in package /VIRSA/ZVIR cannot be edited in transportable Workbench requests in the current Dev system. The transport routes are configured such that objects from package /VIRSA/ZVIR can only be edited in local Workbench requests.u201D
    What can I do to release the transport and move it to our QA box?
    Thanks in advance!
    Fisher Li

    My co-worker and I followed SAP instruction on this one and solve the issue.
    We created a "transport of copies" by using Transaction SE01. Go to the request overview and choose Request/task -> Object list -> Include objects to include the "child transport number of my transport" in this "transport of copies". Add the target system and release the change request.
    Thanks!
    Fisher Li

  • Error : Only edit objects from package ZSD in local requests

    Hi Experts,
    We are modifying all Z-programs to unicode enabled programs in ECC6.0 Upgradation. While doing this we are not able to save it as a transportable request. It displays error as "Only edit objects from package ZSD in local requests".
    So can anyone tell me how to save it as a transportable request.
    Thanks,
    Ranjith C.

    Hi,
    two ways:
    1. change the transport type: create transport type copy in se01 and copy all mentioned objects to that transport
    2. better way: correct development class and transport layer
    case a.  target system was not definied (not known to TMS) or is empty
    case b.  source system (original system for objects) not known to TMS
    case c.  objects assigned to local package (former local development class)
    etc.
    If you don't understand this explanation, just use one of Z transport layers showed in stms, by changing the transport layer in the definition of the package (se80) to shown in STMS (link name from source to targed system)
    Kind regards,
    Mirek

  • How to return a object from a method in a java program to a C++ call (JNI )

    Sir,
    I am new to java and i have been assigned a task to be done using JNI.
    My question is,
    How can i return an object from a method in a java program to a call for the same method in a C++program using JNI.
    Any help or suggesstions in this regard would be very useful.
    Thanking you,
    Anjan Kumar

    Hello
    I would like to suggest that JNI should be your last choice and not your first choice. JNI is hard to get right. Since the JNI code is executing in the same address space as the JVM, any problems (on either side) will take down the entire process. It dilutes the Write Once Run Anywhere (WORA) value proposition because you need to provide the JNI component for all hardware/OS platforms. If you can keep your legacy code(or whatever you feel you need to do in JNI) in a separate address space and communicate via some inter-process channel, you end up with a system that is more flexible, portable, and scalable.
    Having said all that, head over to the Java Native Interface: Programmer's Guide and Specification web page:
    http://java.sun.com/docs/books/jni/
    Scroll down to the Download the example code in this book in ZIP or tar.gz formats. links and download the example source. Study and run the example sources. The jniexamples/chap5/MyNewString demo creates a java.lang.String object in native code and returns it to the Java Language program.

  • Only edit objects from package in local requests

    Hello Experts,
    could  you help me please
    a user has tried to transport a local request, I modified it by putting the target system, but when the user wants to release it, he gets the error massage "Only edit objects from package in local requests "
    Thanks a lot

    HI
    Follow the steps.
    1. Create a new transport request
    2. Select include objetcts
    3. Object list from request and select your tranport request
    4. Release the Transport request and transport.
    If don't work try this other case:
    1. Run tcode SE01
    2. Create a new "Transport of copies"
    3. Into the request, choose menu "request/task -> object list -> include objects
    4. Include your transport request
    5.  Add the target system and release the request.
    If you get any error put here
    Regards
    William Neira

  • Only edit objects from package ZPACKAGE in local requests

    Hi Experts,
    I was adding a secondary index to a Ztable present in a package ZPACKAGE. When I tried to save in a workbench request, I got the error message "You cannot use request XXXXXX". I then created a local change request where the target system is not mentioned in the transport request. I was able to save the index and later I mentioned the target system. When I tried to release the transport request, I get the message "Only edit objects from package ZPACKAGE in local requests". Kindly suggest what can I do save the changes in a transport request and release it.
    Thanks

    Check out the transport layer and target system for that transport layer. As someone suggested, talk to your basis.
    This is most common when you have the actual table in temp folder but the index stored in Zpackage.
    I would first check my objects package to make sure that they are in right package. If everything @ right place, then i will check the package transport layer and software component then check the 'use access' of the package. if the package is good then check the transport path and target systems for each transport later.

  • Transport error: "Only edit objects from package CL in local requests"

    I have made changes to an SAP original program as per Note 1096366 on SAP's service web site. The program is an Include program (LCLCMFMZ). I have assigned it a transport number, but it keeps trying to make the target local. When I change the target to DEV, it will not transport and I get the following error:
    "Only edit objects from package CL in local requests"
    Does anyone know what this error means?
    Thanks.

    Thanks Nick,
    but I think I have figured it out. I needed to create a transport of copies (from se09) and include this object in that transport (right click and choose 'Include object...'). Then back to se01 and display all transportable object (including transport of copies). Then select my transport of copies, choose a target system (from double clicking and going to properties). Only then would it let this object get transported.

  • I can't update/downloads an app from app store by using by iphone 4s. The icon will change to blank keep waiting, this problem was trouble me for 1 week. pls help me.I try all the method (reset/change date setting)no help my network is ok.

    I can not update/download an app from app store by using my iphone 4s. I try every method by re-setting date/time and reboot the phone etc.NO Help.
    The icon will change to blank keep waiting & can not go in & use in. Anyone have solution for this. pls help me...tks

    .local indicates local activity by the computer host Williams-macbook-pro.local=hostname@domain . The UID of 501 is the standard UID of a local computer administrator.
    Copy and paste this little script in your terminal:
    if [ "SSH_CONNECTION ]; then
         echo I am remote
    else
         echo I am local
    fi
    A return of "i am local" ensures there is no remote connection to your machine (through SSH).
    In the future, to avoid remote entry, I would recommend not posting your IP address though.

  • Reference HttpServlet object from webservice method ...

    How to reference HttpServlet object from webservice method to access HTTP header?
    Thanks
    Marcel

    You are correct.
    I know that SOAP messages can be send not only via HTTP protocol.
    Our solution is restricted to use only HTTP protocol for communication between client and server by customer, because there is implemented transparent proxy for users authorization and strong security of communication via HTTP protocol. Authorization server transparently modify HTTP request header with user identity (DN from user certificate - with this PKI solution it is not possible to use standard SSL because certificate is proprietary enhanced and cannot be accessed in standard way). That is why I need access HTTP request header.
    Why I want to use webservices? I thing that webservice is flexible and perspective technology for integration and asynchronous communication between web clients and application (it is really more effective add new info in web page asynchronously from webservice than reload whole page).
    Thanks
    Marcel

Maybe you are looking for

  • I am new to Apple (Retina MacBook Pro), how can I maximize my experience?

    Hello, I recently joined the Apple world by purchasing a 13" Retina MacBook Pro. So far, I couldn't be happier. I changed platforms from Google because the devices I have don't allow for local content playback and apps are buggy and slow to respond.

  • Alerts not updated / still grey in BPMON BI Process Chain

    Hi All, We have Solution manager 7.1 SP08. We configured BPMON for BI PRocess chains. We are unable to get any alerts for process failures. All the alerts are Grey. This is what we have observerd: 1. We get alerts for failure to start if I mention "N

  • Creation Of Project in ESS !

    HI Experts  ,    I Have a question on creation of Project from ESS track. We are supposed to do some changes in Address application of ESS portal. I was able to create the project and do few changes. I did changes and build and deploy , followed all

  • Migration and then Activation

    Hi Gurus, I have 2 questions. I'm working on BI 7 and I have migrated a DataSource from 3.5 into BI 7. After migration, it's showing unequal sign (M version is different from A version). When I checked the BI Content I found the DataSource(InfoSource

  • Beginning_date should be less than end_date

    Hi, I have made a concurrent program(using shell script) which takes 2 parameters namely beginning_date and end_date.Now the problem is that i want that the user should not be able to submit this concurrent program until end_date is greater than begi