Regarding objects using load

Why we use load keyword regarding objects and methods?

Hi,
The variant with the LOAD addition loads a global class class from the Class Library. This statement was needed before Release 6.20 if you wanted to access one of the static components of class from within a program, or to declare an event handler for class before class had been loaded automatically. From Release 6.20 onwards, the LOAD addition is only needed if the compilation of an ABAP program fails because it includes recursive accesses of a globa l class. In such cases, you may be able to make the program compilable by explicitly loading the class before recursion.
Example
In this example, the class c1 uses the class c2 and vice versa. This means that one of the classes must be made known before it is actually defined. The global class cl_gui_cfw is also loaded before one of its static attributes is used.
CLASS c1 DEFINITION DEFERRED.
CLASS c2 DEFINITION.
  PUBLIC SECTION.
    DATA c1ref TYPE REF TO c1.
ENDCLASS.
CLASS c1 DEFINITION.
  PUBLIC SECTION.
    DATA c2ref TYPE REF TO c2.
ENDCLASS.
CLASS cl_gui_cfw DEFINITION LOAD.
DATA state LIKE cl_gui_cfw=>system_state.
An example of using the DEFERRED PUBLIC addition would be a type group in which a reference type is declared with a reference to a global class, which itself contains components with references to this reference type. In this situation, the entire class cannot be loaded before the type group, since the types are not yet known. However, after the CLASS DEFINITION ... DEFERRED PUBLIC statement, the class name can be specified after REF TO without the class having been loaded previously.
Regards,
Renjith Michael.

Similar Messages

  • Connection Object Delta Load not happening

    Hi Gurus,
                 I am doing integration between ISU and CRM 5.0. I have achieved integration both sides for BP , Contract Account. I have also done initial load for Connection Objects using object 'SI_CONNOBJ'. We are able to see IBase getting created for the Connection Objects but when I change the data in a particular Connection Object it is  not trigerring Delta Load for the Object.
                Please help me for the same.

    Hi Aishuman,,
    Please check for the following entry in R/3 table TBE31:
    EVENT    IBSSICON
    LAND
    APPLK    BC-MID
    FUNCT    ECRM_CONTRACT_COLLECT_DATA
    which brings the delta change to CRM.
    Also,in CRM txn:R3AC1,check for the filter setting for object SI_CONNOBJ.
    Also,in R/3 table CRMRFCPAR ,make sure that for object SI_CONNOBJ(or *) for consumser CRM(or *),value of DISCARDDAT is not set to X.If set to X,would prevent delta change to flow to CRM.
    Also,check for the queue registration in txn:SMQR.If your queue is de-registered or lock is set,then entry will not be processed in CRM.
    Hope this helps!
    Regards,
    Shanthala Kudva.

  • Can't able to create callable object using UI pattern in CAF

    Hello
    I made one interface using object Selection UI pattern for one of my entity services. Now i am trying to make a callable object using this and i also have been successfully created it. But when I test this callable object, I got these error messages.
    1. Could not load execution container: Cannot access object class loader for deployable object sap.com/cafcoregpuivisibleco~container.
    2. Could not load execution container: ComponentUsage(container): Active component must exist when getting interface controller. (Hint: Have you forgotten to create it with createComponent()? Should the lifecycle control of the component usage be "createOnDemand"?
    Please tell me the problem

    Hi Saurabh,
    It seems you found a bug. The problem is that runtime library reference to sap.com/cafruntimeuicouplingapilib library from sap.com/cafcoregpuivisibleco~container dc is misspelled.
    So, I don't know whether or not according CSN is already created but I can propose you a solution.
    1. Unpack the cafcoregpuivisibleco~container archive from CAFKM0X_0.sca sca.
    2. Unpack sap.comcafcoregpuivisiblecocontainer.wda archive.
    3. Open the PORTAL-INF\portalapp.xml file and change the following entry of library reference:
    <property name="LibrariesReference" value="sap.com/cafruntimeuicopulingapilib" />
    to
    <property name="LibrariesReference"    value="sap.com/cafruntimeuicouplingapilib"/>And pack
    it pack it again in correct order(for ex.:
    jar.exe -Mcvf sap.comcafcoregpuivisiblecocontainer.wda .
    jar.exe -Mcvf sap.comcafcoregpuivisiblecocontainer.sda .
    And finally deploy it to your server instance and enjoy.
    Best regards,
    Aliaksei

  • Slow creating ReportDocument object and loading report

    Hi all,
    I realise this question has come up several times before, I've been searching the internet and have found similar problems but non that match my own. Sorry this is a little long winded but I would like to give as much detail as possible.
    I use CR 2008 and VS2010 on my development machine. And I have installed CR 2008 Redist SP3 on the production server.
    My application is a simple console application accepting parameters such as report name, print or export, and of course the report parameters.
    CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    rptDoc.Load(sParamDOC); //sParamDOC being the report name passed in via command line
    It has to be like this because it integrates into an old system in the background. Of course it being like this means I can not pre-load dll's on application startup (as I've seen suggested several times).
    All of this is in house, I'm an OU administrator and an administrator on the server. The server is only accessed via remote desktop and the OS is windows server 2003. I installed all of the neccesary software to make this work.
    What is really puzzling me though is that when I use this program via command prompt, logged in as me, it creates the object and loads the report in a matter of seconds. Yet if anybody else runs it (even other administrators of the server) the program can take 30-60 seconds to create the ReportDocument object and the same again to load the report.
    I initially only noticed this for the standard users, which was why I created another admin to test. I don't think it's a problem with the report design because it works quick for me. I read an article about this happening with reports created in Crystal version 9. So I tested with a report made from scratch in 2008 and still get the same result. I also read another article about default printers, 'dissociate printer' option is selected and locally the default printers are set to the same printer also.
    Does anybody have any suggestions as to where I could look next?
    I saw in another article some registry keys you can use to turn on logging for crystal reports, I want to do this but where does it put the log files?
    Oh, one more thing the server orginally had redist 2.3 on when I noticed this issue, updating to SP3 (redist 3.3) if anything made it slower, and a little more inconsistant of load times.
    Thanks
    Gavin

    I figured out what this was. I thought I would come back and post incase anyone else has the same issue... the reason it was slow for the other users is because they could not access the internet. My program doesn't use the internet but the operating system is automatically trying to verify the dll's publishers. you can disable this see the following blog:
    [http://blogs.msdn.com/b/amolravande/archive/2008/07/20/startup-performance-disable-the-generatepublisherevidence-property.aspx|http://blogs.msdn.com/b/amolravande/archive/2008/07/20/startup-performance-disable-the-generatepublisherevidence-property.aspx]
    Regards
    Gav

  • Cursor not focusing in the text field after Object tag load in IE

    Hi,
    We have an applets class "ABC.class" in our application. To include this class in a jsp page we are using OBJECT tag. This tag is written inside a if block in the jsp page. Based on the if condition this OBJECT tag has to be loaded. Below is the code we are using:
    <%
    if(testCondition)
    %>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" NAME="applet" width="0" height="0">
    <PARAM NAME="CODE" VALUE="ABC.class" >
    <input type="hidden" id='myText' value="Please configure the jinitiator version to Oracle applicaitons Jinitiator version." >
    No JDK 1.3 support for APPLET!!
    </OBJECT>
    <%
    %>
    In the above code if the "if condition" is satisfying, then cursor is not focusing on the required field. The code to focus on the field is written in the javascript function which is called onLoading the page.
    we are using IE 7 and IE8. In IE 7 sometimes working fine but in IE 8 we are getting this issue.
    Can anyone please help us how to focus the cursor on the required field even in the case of the Object tag loading.
    Thanks,
    Eswari

    Hi Nicky,
    Thanks for your reply.
    We are not using JQuery.
    Actually the code to focus is written in the function which is called onLoad of the page that will be executed after the page loading. If we keep alerts in the onLoad function then the cursor is focusing to the required field.
    Thanks,
    Eshwari

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • What is the steps to send a send a soap object using jms in websphere 6.1

    Hi, can anybody help me out ..i am reaally new to jms and soap
    i had gone through this link http://docs.sun.com/app/docs/doc/819-7757/6n9mar6iv?a=view
    where i got some information regarding how to recieve and send soap object using ....
    but my problem how i will look up ...if i use javax.jms.QueueConnectionFactory and QueueSeesion....while converting the soap message to jms message its getting failed in websphere 6.1 ..... whether i have to use this com.sun.messaging.QueueConnectionFactory instead of this javax.jms.QueueConnectionFactory ...or how to process it
    can anybody help me wat are steps followed while sending a soap message to queue and replying it back. using websphere6.1 or provide me some link so i go through pls help me out???
    Thanks in advance..

    Hi, can anybody help me out ..i am reaally new to jms and soap
    i had gone through this link http://docs.sun.com/app/docs/doc/819-7757/6n9mar6iv?a=view
    where i got some information regarding how to recieve and send soap object using ....
    but my problem how i will look up ...if i use javax.jms.QueueConnectionFactory and QueueSeesion....while converting the soap message to jms message its getting failed in websphere 6.1 ..... whether i have to use this com.sun.messaging.QueueConnectionFactory instead of this javax.jms.QueueConnectionFactory ...or how to process it
    can anybody help me wat are steps followed while sending a soap message to queue and replying it back. using websphere6.1 or provide me some link so i go through pls help me out???
    Thanks in advance..

  • Trying to get a handle to an object using CVI_ActiveApp, but it opens a new CVI everytime it runs. Is there a way to get a handle to an object without it opening up a new CVI?

    I'm trying to get a handle to an object using CVI_ActiveApp. It works, but it opens a new CVI application when it is run using the command line. Is it possible to get a handle to an object without a new CVI application opening up?

    Hi,
    In the help documentation for the CVI_ActiveApp function, it states:
    "If the server application is already running, this function may or may not start another copy of the application. This is determined by the server application."
    http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/usermanual/actxappactiveapp/
    I don't believe you have control over whether or not a second instance is started.
    Regards,
    Lindsey W. | Applications Engineer | National Instruments

  • Display all objects used in a program

    Hi guys,
    i want to create a Zprogram to Display all objects used in a program.
    is there any class that can help me plzzz.
    CL_WB_PGEDITOR
    CL_WB_TBEDITOR.
    CL_WB_EDITOR.....
    thks

    Hi Oubaha,
    You can use SE80 to display objects used by a program.
    Regards,
    Chester

  • Reusable objects using web dynpro java...any suggestions ?

    Hello All,
    I want to create few Reusable objects using web dynpro java. Please suggest some scenarios.
    regards
    Mrinalini.

    Hi,
    I can suggest especially this one:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2e0e8
    Some other hits you may find useful:
    This guide mentions some tutorials about reusability:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38?quicklink=index&overridelayout=true
    Here
    Web Dynpro Java [original link is broken]
    and here
    SAP NetWeaver Composition Environment Samples Center [original link is broken]
    you'll find other tutorials as well.
    Best Regards,
    Ervin

  • List of Info Objects used in a process chain

    Hi,
    I have a master data process chain and in that process chain, close to about 50 Info objects are included. Rather than checking manually, I would like to know if there is any automated way to get the list of info objects used in a process chain.
    Please let me know if there is any table that gives this information.
    Thanks & Regards.

    following transparent tables store Process Chain related data... there you might get the information you are looking for..
    RSEVENTCHAIN       Event Chain Processing Event Table
    RSEVENTHEAD        Header for the event chain
    RSEVENTHEADT        Header for the event chain
    RSPCCHAIN     Process chain details
    RSPCCHAINATTR      Attributes for a Process Chain
    RSPCCHAINEVENTS      Multiple Events with Process Chains
    RSPCCHAINT      Texts for Chain
    RSPCCOMMANDLOG     System Command Execution Logs (Process Chains)
    RSPCLOGCHAIN      Cross-Table Log ID / Chain ID
    RSPCLOGS     Application Logs for the Process Chains
    RSPCPROCESSLOG     Logs for the Chain Runs
    RSPCRUNVARIABLES      Variables for Process Chains for Runtime
    RSPC_MONITOR     Monitor individual process chains
    Regards,
    Sharayu

  • Find Universe, classes and objects used in each report

    I want to find a list of universes, classes and objects used in each report
    or the other way to find list of reports which use a particular universe. please let know, i could not get much information from activity universe in a proper way.

    Hello Venkataramat,
    plese post in more detail what kind of report you are using Crystal report ? webi ? Deski.
    Please post in the specific forums.
    If you have a Crystal Report I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    Best regards
    Falk

  • Services for object using cl_gos_manager

    Hello All,
    I have a selection screen with material no as a parameter. After I execute the screen I get some details for that material. I want to replicate "Services for object" functionality as in ME23N in my Program. I am able to add attachments using cl_gos_manager. But when I add a document to a material I am able to see the attachment with all the materials.
    I have created a object using SWO1.
    Then I have created an object for the class cl_gos_manager.
    How do I make the attachments material specific.
    Thanking you all in anticipation.
    Regards,
    Anju

    Are you setting a unique object key for each material and passing it to the method when you create the attachment?

  • Is there a tool that could export objects used in a report program?

    Hello Experts,
    I'm new in ABAP programming, recently my team members wanted to find a tool in the SAP system, which could export a list of objects that used in a report program. For example, I want to figure out what function modules and classes are used in a report program, using the tool, I could get a list that have the name of the modules and classed used and even source code of them.
    The function of the tool acts like 'where-used list' showed in the SAP system, but the differences is I do not have to type the name of the objects. The tool is just focus on the specific report program and list the name and source code of the objects used in that report program.
    Hope I explain this clearly.
    Is SAP system has such tools? Please give me some hints on this.
    Thanks you all for the time and help in advance.

    Hi Anna,
    Welcome to ABAP world,
    Check this link
    How to identify various objects used in code
    hope this is useful to you.
    and also seach in the SCN you will find more.
    Regards!

  • How can I remove an object using Photoshop Elements 7?

    How can I remove an object using Photoshop Elements 7?

    You could probably use the 8 point garbage matte in this situation. I personally think the 8-point garbage matte is a bit cumbersome, but it should get the job done.
    1. Use the Razor Blade tool to place a cut before and after the shot with the bottle.
    2. Select the bottle clip.
    3. Press and hold Shift + Option, then drag the bottle clip up one track. This should create a duplicate clip directly above your original clip. (I'll refer to this duplicated clip as bottle2.)
    4. Locate the 8-point Garbage Matte filter and apply it to bottle2.
    5. Locate the Gaussian Blur filter and apply it to bottle2.
    6. Control click bottle1, and uncheck the "Clip Enable" setting from the shortcut menu. This will disable that clip.
    7. Double click bottle2 to load it into the Viewer. Then select the Filter tab.
    8. For the Garbage Matte filter, you'll notice 8 rows of numbers, these are the current locations for the control points, which you should be able to see in the Canvas. Start with point #1, and click the "+" button in the filters area, then in the Canvas click and drag to move the point. When you release the mouse button, you'll need to reclick the "+" button in the filters tab. Repeat these steps until you've isolated the bottle.
    9. Feather the edge of the matte.
    10. Adjust the Blur amount.
    11. Reenable bottle1. Playback the clip and make any necessary adjustments.
    Depending on your experience with Motion, you might also want to try sending bottle1 to Motion, then use Motion to control the layering.

Maybe you are looking for