Regarding static methos and attributes...

Hi..
What do u mena by static methids and atributes?
Why v'll use these?
Whats the purpose?
Regards
sandeep.

Hi,
Static Attributes
The contents of static attributes define the state of the class that is valid for all instances of the class. Static attributes exist once for each class. You declare them using the CLASS-DATA statement. They are accessible for the entire runtime of the class.
All of the objects in a class can access its static attributes. If you change a static attribute in an object, the change is visible in all other objects in the class.
The technical properties of instance attributes belong to the static properties of a class. It is therefore possible to refer in a LIKE addition to the visible attributes of a class – through the class component selector or through reference variables, without prior creation of an object.
Methods
Methods are internal procedures in a class that define the behavior of an object. They can access all of the attributes of a class. This allows them to change the data content of an object. They also have a parameter interface, with which users can supply them with values when calling them, and receive values back from them The private attributes of a class can only be changed by methods in the same class.
The definition and parameter interface of a method is similar to that of function modules. You define a method meth in the definition part of a class and implement it in the implementation part using the following processing block:
Static Methods
You declare static methods using the CLASS-METHODSstatement. They can only access static attributes and trigger static events.
            Reward If Helpfull.
Regards Madhu.

Similar Messages

  • Do the Interface contains static components like static methods and attribu

    Do the Interface contains static components like static methods and attributes ?

    >
    You have to supply a bit more detail: is that Lotus
    Notes API a Java API?Hmm, It's Java interface to Lotus Notes API
    Does it use JNI? Perhaps it is used somewhere underneath, I do not know for sure, but I think so
    Possibly the Lotus Notes
    implementation keeps a
    reference to those arrays, who knows?
    Maybe, but I'd be really suprised if it did. I derive this thread from Lotus Notes class and provide my own "worker method", overriding Lotus API abstract one, where I reference arrays. Arrays are specific to my program and since they are private fields in thread's class Lotus Notes layer does not have any way of referencing them, nor any reason for this matter
    For starters: if you zero out (set to null) your
    references to those arrays
    in your threads when the threads finish, there might
    surface a useful
    indication that you can blame Lotus Notes for this
    Well, I've become deeply suspect of whether these Notes' threads do really finish :-) My method finishes for sure, but it is just a part of run() method of Lotus Notes thread. Anyway, you can always safely blame Lotus Notes for almost anything :-)

  • Small confusion about aggregates and attribute change run.. plz explain

    hi bw experts,
    i am having a small confusion regarding the aggregates and attribute change run.
    as far as in know if there is any new master data loaded, then we will activate it by context menu on the particular info object and select the option activate master data.
    the second one is going to tools--?apply hierarchy/attribute change run option.
    my doubt is is the attribute change run related to aggregates is yes then how,.?
    appreciated if you plz help me in detail both these concepts and wherther there is any connection between them.
    thanks & regards.
    vijay..

    Hi Vijay sagar,
    ATTRIBUTE CHANGE RUN:
    1)It's used after you change (add/delete/modify) attribute in the master data. You've to make it in order to have an effect after you modify it.
    2)Once the master data has been loaded, the hierarchy/attribute change run is performed. Once this process chain has been ended correctly, master data and texts are available in an active format in SAP BW.
    To get it :
    1. tcode : RSA1.
    2. Tools -> Apply Hierarchy/Attribute Change
    3. tap on Info-object list button (checking what master data you've modified before).
    4. tap on selection button for type of job
    5. Execute.
    link(s):
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a67ece07211d2acb80000e829fbfe/frameset.htm
    AGGREGATES:
    1)Aggregates make it possible to access InfoCube data quickly in reporting. In doing so, aggregates help improve performance. (See Aggregate.)
    2)In order to be able to insert aggregates effectively, it is important to find out which aggregates are frequently used or have not been used in a long time.
    3)Aggregates contains not only general data but also data that appears in an aggregate after data is filled and rolled up. Reporting in this InfoCube reveals how often data was loaded into an aggregate, how long filling and rolling up took, and whether it took longer to read or write the data.
    4)Adding when Rolling Up in Aggregate  counts the time required to write the data to the aggregate.
    The Records, Read for Aggregate Structure key figure  counts the data records that are read for constructing the aggregate.
    Refer the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm
    Assign points if it helps u
    Thanks & Regards,
    Madhusudhan Reddy.K

  • Regarding Regions and Attributes

    Hi All,
    I am using Regions and Attributes to display a page in supplier portal. I had define all the Attributes in that region. One of the attribute is of type poplist ie Item Style is poplist. I am using picklist view object Definition to get the values from the table. It is an xml file in which i have written a query to get the values. Here is the XML file
    <?xml version="1.0" encoding='ISO-8859-1'?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!-- $Header: FmcPosCurrencyVO.xml 115.0 2001/08/02 15:23:00 pkm ship $ -->
    <ViewObject
    Name="FmcPosCurrencyVO"
    BindingStyle="Oracle"
    CustomQuery="true"
    RowClass="oracle.apps.fnd.framework.server.OAViewRowImpl"
    ComponentClass="oracle.apps.fnd.framework.server.OAViewObjectImpl"
    FetchMode="FETCH_AS_NEEDED" >
    <SQLQuery><![CDATA[
    SELECT currency_code,start_date_active,end_date_active FROM fnd_currencies
    WHERE enabled_flag = 'Y' and sysdate BETWEEN NVL(start_date_active,SYSDATE) AND NVL(end_date_active,sysdate)
    ]]></SQLQuery>
    <DesignTime>
    <Attr Name="_codeGenFlag" Value="4" />
    </DesignTime>
    <ViewAttribute
    Name="DisplayedField"
    IsQueriable="false"
    IsPersistent="false"
    Type="java.lang.String"
    Expression="DISPLAYED_FIELD"
    SQLType="VARCHAR"
    Precision="150"
    AliasName="DISPLAYED_FIELD" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="150" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="InternalValue"
    IsQueriable="false"
    IsPersistent="false"
    Type="java.lang.String"
    Expression="INTERNAL_VALUE"
    SQLType="VARCHAR"
    Precision="150"
    AliasName="INTERNAL_VALUE" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="150" />
    </DesignTime>
    </ViewAttribute>
    </ViewObject>
    Now I want to know how can i set the default value to it. Right now it is showing the the first of the list as the defualt value. And also i want to know what exactly is Picklist Display Attribute and Picklist value Attribute is used, while rendering the page in the portal.
    Please try to help me to solve this problem.
    Thanks in Advance
    Manohar

    Any help on this pls...

  • Creation of Service Product with Set Type and Attribute

    Dear All,
    Please guide me with proper step by step process,
    How to create the product with the set type and attribute for service industry in sap crm 7.0
    Regards,

    Hi Nitin,
    Before creating the Service type of product, you have to define the Base category for Service type product. Generally the category for service will be created under the R3 hierarchy R3PRODSTYPE. You can create this category using the TCode:
    COMM_HIERARCHY. Here you have to select the product type as Service and have to assign the set types to the category.
    You can create a service product using the transaction : COMMPR01 -> Click on Service ICON -> Select the Category for Service Type. Then fill in the details for Service Product description, Service ID(Based on number range settings for products), Language.
    Also fill other details like Base Unit of measure, Pricing condition for different sales areas for the service product.
    Since you are using CRM7.0, you can do all these activities using a POWER USER role.
    For more information about Set types and hierarchies please refer the following help link:
    http://help.sap.com/saphelp_crm70/helpdata/EN/46/57672501a208e7e10000000a114a6b/frameset.htm
    Hope this helps!
    Regards,
    Chethan

  • Function and attribute tabs not visible in ppoma_crm

    Hello Experts,
    Function and Attribute tab at the sales organization level is not visible in PPOMA_CRM transaction code for one of the user.
    Is it due to some authorization issue ? or anything else ?
    Before taking a system trace for that specific user, I would like to know if we are missing anything functionally
    Kindly revert
    Thanks and Regards
    DJ

    Hi DJ,
    Please see note 926540 - Missing Organisational units
    But from your description this does not seems to be the exact symptom.
    Yes I would advise to run a SU53 authorization check.
    Best regards - Christophe

  • Dynamic Table control with context nodes and attributes?

    Hi all
    I have node and attributes in context. i want to create table dynamically using this node and attributes, can anyone give code how to do this???
    Thanks
    Madhan.

    Hi
    Go through this [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80a3de18-ee00-2d10-bfb3-946d7e00fd91?quicklink=index&overridelayout=true].
    Regards
    Arun.P

  • List of SQL tables and attributes used in SSRS reports

    Hi,
    I have around 450-500 reports deployed in SSRS reporting server.
    All these reports are built on SQL from multiple databases, and these databases are having unnecessary tables and attributes.
    My requirement is to clean the unused tables and attributes from the databases. For this, I need the list of SQL tables and attributes used in these 450-500 SSRS reports.
    Is there any way to get this data?
    Regards,
    RK

    Hi RK,
    According to your description, you want to get a list of the tables and attributes used in all reports.
    In your scenario, you can query the ReportServer.dbo.Catalog table to get Report name, data source name, dataset name, and query used in the dataset with query below:
    WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition', 'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd )
    SELECT ReportName = name
    ,DataSetName = x.value('(@Name)[1]', 'VARCHAR(250)')
    ,DataSourceName = x.value('(Query/DataSourceName)[1]','VARCHAR(250)')
    ,CommandText = x.value('(Query/CommandText)[1]','VARCHAR(250)')
    ,Fields = df.value('(@Name)[1]','VARCHAR(250)')
    ,DataField = df.value('(DataField)[1]','VARCHAR(250)')
    ,DataType = df.value('(rd:TypeName)[1]','VARCHAR(250)')
    --,ConnectionString = x.value('(ConnectionProperties/ConnectString)[1]','VARCHAR(250)')
    FROM ( SELECT C.Name,CONVERT(XML,CONVERT(VARBINARY(MAX),C.Content)) AS reportXML
    FROM ReportServer.dbo.Catalog C
    WHERE C.Content is not null
    AND C.Type = 2
    ) a
    CROSS APPLY reportXML.nodes('/Report/DataSets/DataSet') r ( x )
    CROSS APPLY x.nodes('Fields/Field') f(df)
    ORDER BY name
    For more information, please refer to this similar thread:
    Extract metadata from report server database
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Nodes and attributes

    Hi,
    I want to know that is there any restrictions to declare nodes and attributes that come under these nodes?
    For Eg, the requirement is to create a miscellaneos invoice through a ABAP web dynpro screen.There are many fields like Vendor name , Invoice number, VAT  etc.How i can group these in to nodes and attributes? It is as we like or is there any standards to group?
    Regards,
    Charumathi.B

    hi charumathi.......
               the attributes can be combined into any node you wish..
    but if you are going to represent a table or need to have a set of values for a single attribute then put it under a node and mention the cardinality as 0...n. its always better to create an attribute under a node rather directly under a context, for attributes canoot be mapped directly from comonent controller. only nodes can be mapped. so it is always bettter to have attributes under nodes.
    ---regards,
       alex b justin

  • CRMD_BUS2000108 - organizational unit and attributes for org. unit

    Hi all!
    As I'm customizing Lead creation (and in a second step lead generation)
    I would like to receive tips about "selection of organizational unit and attributes for org. unit".
    I expected that, by entering a BP number of a prospect or sold-to party, the organizational unit and its attributes would be displayed automatically on the tab "organization".
    This is not the case. When I start the lead creation, there is a pop-up screen inviting me to choose the organizational unit. afterwards a pop-up screen for the attributes of the org unit. Only after setting a flag in both pop-ups, I see the actual "lead" transaction. When I enter a BP number, the sales assistant and sales rep are found automatically.
    Could anybody please explain how to change the customizing?
    I would like to see the lead transaction (create) first, enter a bp number and than have the org unit and its attributes, the sales rep and sales assistant found automatically.
    Any usefull answer (would make my day ), will be rewarded.
    Thank you very much for your suggestions and time in advance!
    I. Van Acker

    hi
    this is happening because you have not done the org data determination in your transaction,just go to SPRO and there in org data determination ,you have many standard ORGMAN rules available which you can use which will pick the data according to the user ,BPs etc.
    it will enable you to first give BP and then the org data will be driven automatically from the system according to the rule in org data determination.
    so first go and use rule ,try using rule ORGMAN_12
    then attach this rule to the org data profile and then add this org data profile to the transaction in basic settings in transaction where you have defined your lead transaction.
    it will solve your purpose
    best regards
    ashish

  • Maintaining attributes, data source and attribute list in web UI

    Hi
    Can we maintain attributes, data source and attribute list in web UI level. We can do it  in SAP GUI level but do we have the option of doing it on web  UI level??
    Regards
    Aakshi

    HI
    data sources and Attribute lists need to be maintained in GUI but these can further be used for Segmentation in Web UI using the Graphical Modeler.
    hey main thing is that when we design all the things our out put is reflected in both interface & most important thing is that 90% of our customization done in gui.only web_ui related customization done in web_ui.
    for more details revert me back
    debi prasad

  • Maintaining attributes, data source and attribute list in web UI level.

    Hi
    Can we maintain attributes, data source and attribute list in web UI level. We can do it  in SAP GUI level but do we have the option of doing it on web  UI level??
    Regards
    Aakshi

    Hi Aakshi,
    As far as I know,data sources and Attribute lists need to be maintained in GUI but these can further be used for Segmentation in Web UI using the Graphical Modeler.
    If you need more assistance please do revert.
    Regards
    Varun Taneja

  • Data source and attribute list transport

    Hello gurus!
    How can we transport data source and attribute list to another system?
    In IMG system writes "Transport is not required".
    Best regards,
    Artur Litvinov.

    Hi Artur
    Attribute sets can be transfered thorugh RFC connection. Create the RFC of the source system in target system, then import the Attribute sets using the option "Transfer of Attribute Sets from Other System " tcode CRMD_MKT_TOOLS - Expert Tools.
    Hope this will help 
    Rgds
    Mallikarjun

  • Open hub destination of text and attribute for Functional Area

    Hi Expert
    I have a requirement to accommodate both attribute ( 0FUNCT_LOC_ATTR)  and text ( 0FUNCT_LOC_TEXT ) for functional area in open hub destination .For this a DSO has been created from both 0FUNCT_LOC_ATTR, 0FUNCT_LOC_TEXT data sources .Problem is that DSO has 0FUNCT_AREA ( Functional Area ) as only key fields . So text for both english ( EN ) and Dutch ( NL) for particular 0FUNCT_AREA not getting loaded .If we assign both 0LANGU and 0FUNCT_AREA as composite key of dso , data from attribute transformation is loaded as blank as there is no language filed in attribute data source ( 0FUNCT_LOC_ATTR ).   Please let me know how can I design to accommodate both text for different language and functional area for open hub destination  .
    I know that I can create separate open hub destination for master data TEXT and Attribute.
    Any help is highly appreciated.
    Regards
    Saikat

    HI Saikat,
    You can create an additional characteristics counter and make it a key field in the DSO.After that we can populate this characteristics in the end routine .It value would increase by 1 everytime  different text comes for the same functional area.
    Sample code
    data: counter type n,
             w_farea type /bio/oifunc_area.
    Sort result_package by func_area.
    count =0.
    *checking whether we have the same functional area or we have a different functional area.
    Loop at result_package assigning <Result_fields>.
    if w_farea is initial or w_farea = <result_fields>-func_area.
    count = count +1.
    else
    count =1.
    endif.
    w_farea= <result_fields>-func_area.
    <Result_fields>-zcount = count.
    ENDLOOP.
    Clear w_farea.
    This way the value of counter would get increased by one everytime a new text comes for the same functional area.We can have any number of texts for the same functional area by this method.
    The only issue would be when some delta update comes for the existing text in this method.If you are doing a full load to the DSO from the datasource, then there would be no issue with this method.

  • (JC) static variable and derived object

    Hi there!
    It is glad to know you from Java Card Forum. Can I ask for your help on the following question?
    It is about static variable. The following is my sample code:
    ========================================
    package com.Test01;
    import javacard.framework.*;
    import javacard.security.*;
    import javacardx.crypto.Cipher;
    public class Test01 extends Applet {
    OwnerPIN Pin;
    static DESKey[] keys;
    protected Test01(byte[] buffer, short offset, byte length) {
    keys = new DESKey[4];
    length = 0;
    while (length < 4) {
    keys[length] = (DESKey)KeyBuilder.buildKey((byte)3, (short)0x80, false);
    length = (byte)(length + 1);
    public static void install(byte buffer[], short offset, byte length) {
    new Test01(buffer, offset, length);
    ===========================================================
    If there are two instances, A and B, created in the package.
    My issues:
    1. Are keys[0]~ keys [3] kept while B is deleted?
    2. Does each instance have itsown object while "keys[length] = (DESKey)KeyBuilder.buildKey((byte)3, (short)0x80, false);"? or they share the same object?
    3. follow item 2, if A and B share the same object, is the object kept while B is deleted? Where can I get the information in Sun's spec?
    Thank you very much.
    Best regards,
    kantie

    Thanks a lot. You mean that keys variable will be removed while instance B deleted, right? I think the idea of database applet is very good, but I can't force applet provider the way of their implementations : )
    I still got question, does it get no use to set the keys variable to be "static"? So that I can keep it to other instances, if applied.
    And I think that any object derived under the static variable shall be kept, until the package is deleted.
    For example, if you declare a static pointer, and it points to an object newed by the instance at the first time. We say every instances (A and B) of this package (PckM) share this same static pointer and this same object, right? There are two situations:
    1. if this referred object is removed when B is deleted, so the memory of this object will be released. Then user might create an instace C of another package (PckN), and instance C new its objects just overlapping on the released memory. In this case, it will cause instance A to be crashed, because its static pointer has been referred to illeagle address.
    2. if this referred object is kept when B is deleted, then instance C will new its objects in other free memory. In this case, instance A will work well, because its static pointer still refers to correct object.
    What do you think? Am I missing any concepts?
    Thank you for your great opinions.
    Best regards,
    kantie

Maybe you are looking for