What are state objects, and what are they used for ?

tried to find some information in the documentation and internet. but i couldn't find a good explanation with an example what that is and what it is used for.
thanks for any good answer !

Wrapper classes are used to enclose primitive data
types so that they can be used in instances where an
object is required. For example, if you want to add an
integer to an ArrayList, you can't use this:java.util.List al = new ArrayList();
int i=123;
al.add(i);because the ArrayList expects data of type object. In
order to all the integer to the ArrayList, you must wrap
it in the Integer wrapper class. This works:java.util.List al = new ArrayList();
int i=123;
al.add(new Integer(i));Hope that helps.
Mark

Similar Messages

  • What is authorization object and how to create it for a table

    Hi All,
    What is authorization object and how to create it for a table?
    Thanks

    Hi
    Authorization
    For authorization checks, there are many ways of linking authorization objects with user actions in an SAP system. The following discusses three possibilities in the context of ABAP programming.
    Authorization Check for Transactions
    You can directly link authorization objects with transaction codes. You can enter values for the fields of an authorization object in the transaction maintenance. Before the transaction is executed, the system compares these values with the values in the user master record and only starts the transaction if the appropriate authorization exists.
    Authorization Check for ABAP Programs
    For ABAP programs, the two objects S_DEVELOP (program development and program execution) and S_PROGRAM (program maintenance) exist. They contains a field P_GROUP that is connected with the program attribute authorization group. Thus, you can assign users program-specific authorizations for individual ABAP programs.
    Authorization Check in ABAP Programs
    A more sophisticated, user-programmed authorization check is possible using the Authority-Check statement. It allows you to check the entries in the user master record for specific authorization objects against any other values. Therefore, if a transaction or program is not sufficiently protected or not every user that is authorized to use the program can also execute all the actions, this statement must be used.
    AUTHORITY-CHECK OBJECT object
                            ID name1 FIELD f1
                            ID name2 FIELD f2
                            ID namen FIELD fn.
    object is the name of an authorization object. With name1, name2 ... , and so on, you must list all fields of the authorization object object. With  f1, f2 ... , and so on, you must specify the values that the system is to check against the entries in the relevant authorization of the user master record. The AUTHORITY-CHECK statement searches for the specified object in the user profile and checks the useru2019s authorizations for all values of f1, f2 ... . You can avoid checking a field name1, name2 ... by replacing FIELD f1  FIELD f2 with DUMMY.
    After the FIELD addition, you can only specify an elementary field, not a selection table. However, there are function modules available that execute the AUTHORITY-CHECK statement for all values of selection tables. The AUTHORITY-CHECK statement is supported by a statement pattern.
    Only if the user has all authorizations, is the return value sy-subrc of the AUTHORITY-CHECK statement set to 0. The most important return values are:
    ·        0: The user has an authorization for all specified values.
    ·        4: The user does not have the authorization.
    ·        8: The number of specified fields is incorrect.
    ·        12: The specified authorization object does not exist.
    A list of all possible return values is available in the ABAP keyword documentation. The content of sy-subrc has to be closely examined to ascertain the result of the authorization check and react accordingly.
    REPORT demo_authorithy_check.
    PARAMETERS pa_carr LIKE sflight-carrid.
    DATA wa_flights LIKE demo_focc.
    AT SELECTION-SCREEN.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                      ID 'CARRID' FIELD pa_carr
                      ID 'ACTVT' FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE e045(sabapdocu) WITH pa_carr.
      ELSEIF sy-subrc <> 0.
        MESSAGE e184(sabapdocu) WITH text-010.
      ENDIF.
    START-OF-SELECTION.
      SELECT  carrid connid fldate seatsmax seatsocc
        FROM  sflight
        INTO  CORRESPONDING FIELDS OF wa_flights
        WHERE carrid = pa_carr.
        WRITE: / wa_flights-carrid,
                 wa_flights-connid,
                 wa_flights-fldate,
                 wa_flights-seatsmax,
                 wa_flights-seatsocc.
      ENDSELECT.
    Regards
    Hitesh

  • What is the AlwaysFilter and when it is used for?

    What is the AlwaysFilter and when it is used for?
    Could you explain it in the details.
    Thank you

    jetq wrote:
    Sorry.
    cache.aggregate(AlwaysFilter.INSTANCE, new LongMin("getAge"))
    That doesn't really help.
    Where does AlwaysFilter come from? Is it part of the core API, or a 3rd party library? If the latter, which one? And in what do the API docs for this class not answer your question?

  • What are the algorithem and container to be used for this problem?

    Say I have a class with the following properties:
    groupMonth //String (jan,feb,mar�)
    accumulatedLasyYear //double
    accumulatedThisYear //double
    What will be the best container/algorithm to use for objects from the class above so I can have them sorted by month (I know it�s a string) AND GROUP the months together (and the accumulated as well)
    Example:
    Jan 4 8
    Feb 2 3
    Mar 5 2
    Jan 3 5
    Feb 4 2
    Mar 9 3
    The output should be:
    Jan 7 13 //(4+3, 8+5)
    Feb 6 5
    Mar 14 5
    Thanks for any thought�

    I'd suggest a java.util.Map<String, Set<WhateverClassYouveDefined>>. The keys are the year, the values are Sets containing all objects of that year. Iterate through your list of objects and group them into the right set using the map.
    Then I'd suggest looping through the keys to get each month's worth. Since you know what all the keys will be in advance, and there's only twelve of them, create an array of the twelve month strings. Loop through that array, and for each value grab the corresponding Set from the map.
    Then for each set you get, iterate through its contents, get the values, and add them.
    Then just print the month and the sums of values from the set, and go on to the next month.

  • What is context objects and how we can use it Receiver Determination

    hi,
    i have situation here a idoc is triggered into the xi and i need to use the conditions in the receiverdetermination in that condition i need to use  context object how i can use it? and what is the difference it makes and why i need to use it?
    thanks in advance
    Amaresh

    HI,
    Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination
    For more-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Regards,
    Moorthy

  • Making a small change to an old project - How do I know what versions of Drivers and RIO etc was used for the last good build?

    If I want to make a small change to a legacy project of years ago, I want to limit my risk by using the exact same versions of LabVIEW, NI-RIO etc.  So I check out the project from the repo, but I don't know how to check what versions were used when the last know good build was made.  I don't want to introduce issues by mass-recompiling to the latest version.
    What is best practice in this case?  I could, before every repo commit, take a screenshot of MAX's software tree and save this in the project folder.
    Any ideas?  
    Solved!
    Go to Solution.

    The report is a great idea!  I store both a max technical report and a project.NCE (HW config export) with each of my projects for this exact reason.  Those files have sure come in handy!
    Also- its a good idea to make an image of the target as accepted and archive it somewhere.  ESPECIALLY for PXI based systems from NI.  (When the customer comes back for a "duplicate" just send the image with the PO and the system arrives fully configured)
    Jeff

  • What are Wrapper classes and what are they used for ?

    What are Wrappter classes and what are they used for ?..Also, any examples would be great to understand this concept

    Wrapper classes are used to enclose primitive data
    types so that they can be used in instances where an
    object is required. For example, if you want to add an
    integer to an ArrayList, you can't use this:java.util.List al = new ArrayList();
    int i=123;
    al.add(i);because the ArrayList expects data of type object. In
    order to all the integer to the ArrayList, you must wrap
    it in the Integer wrapper class. This works:java.util.List al = new ArrayList();
    int i=123;
    al.add(new Integer(i));Hope that helps.
    Mark

  • What are replications objects and subscriptions???

    Hello All,
    I am working with CRM 5.0
    I want to know what are replications objects and subscriptions and how it is work with sites and BDocs? The process is not clear to me and how is the relationship between them?
    Regards
    Jacopo Francois

    Hello Jacopo,
        The CRM Middleware course material CR500/CR540/CR550 details out the concepts of a Replication Obj,Publication and Subscription.
      Let me try and illustrate this concept with a real-world example. This is normally the example I provide whenever I train employees.
    What do you do when you want to subscribe for SAP Netweaver magazine published from SAP Press?
    1) SAP Press publises a number of SAP magazines. So, first you select the publication of your choice. Your publication = "SAP Netweaver".
    2) Next, you have to subscribe for it in the website by furnishing your credit card details, shipping address and the duration of your subscription. So, that becomes your subscription. So, a publication can have many subscriptions (sent by many people)
    The replication object is just the abstraction which collects all the publications and their corresponding subcriptions and relates them a particular Bdoc type. Normally, the name of a replication object = Name of the Bdoc type. E.g. BUPA_MAIN. Replication objects can be bulk objects or simple intelligent objects depending on whether mass data or filtered data is desired. Naturally, there will not be any subscriptions for a bulk replication object.
    Now, once you have created a site and have done its configuration, you can associate the site to a number of replication objects depending on what type of data would the site be interested in.
    Hope you are now able to figure out the meaning of these MW terms and understand the relationship between them.
    Please reward with points if this helps!
    Thanks,
    Sudipta.

  • What are Info objects and Info package

    Hey guys
    can anybody tell me What are Info objects and Info package
    thanx
    saif

    hi Saif,
    or you can directly using RSD1 to create infoobject characteristic.
    help.sap.com may help you
    http://help.sap.com/saphelp_nw04s/helpdata/en/fc/1251421705be30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/054e3ce0f9fe3fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a637fe07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a63b3e07211d2acb80000e829fbfe/frameset.htm
    also
    sap bw cookbook by Jude Lobo
    http://www.sapgenie.com/sapgenie/docs/MySAP%20BW%20Cookbook%20Vol%201.pdf
    http://www.sapgenie.com/sapgenie/docs/MySAP%20BW%20Cookbook%20Vol%202.pdf
    hope this helps.

  • What are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency

    what are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency.

    Click here

  • What are Crypto Cards, and what are they different from Java Cards?

    Hi,
    I just heard the name 'Crypto Card'. I thought Java Card is the only standard for smart card. Could anyone tell me what are Crypto Cards, and what are they different from Java Cards? Thanks in advance.
    Joey

    Probably any card that offers cryptographic capabilities (crypto coprocessor) could be called "Crypo Card", but likely the term was referred to cards offering a pkcs#11 interface.
    Pkcs#11 is the standard for accessing crypto devices, like tokens, cards, or accelerators. Such a device can be easily accessed for example from your browser to perform cryptographic and digital signature operations.
    A Javacard can operate as a pkcs#11 device in you install on it an applet dealing with the pkcs#11 requests.

  • I do not receive all my e-mailson all my devices. I seem to get them all on my iPhone 5s, but not all show up on my iPad and iMac. they are all set up the same. Any Ideas on what is going on and what I can do to remedy this? thanks

    I have an iMac with OS X Lion 10.7.5,an iPhone 5s with iOS 7.1.2 and an iPad with iOS 7.1.2. all software is up to date. My problem is I do not receive all my e-mail on all 3 devices all the time. I seem to get them on my phone , but not all show up on my iMac or iPad. Any ideas as to what is going on and what can I do to resolve this issue? thanks

    On the iPhone, go into Settings -> Store and turn off "Automatic Downloads" for Apps (and Music and Books, if you wish). You can also do that on the iPad to prevent it from going in the opposite direction.
    That will stop any automatic downloading... to prevent them from coming over when using iTunes, select the phone (under Devices), Apps, and then uncheck "Automatically sync new apps." Again, do the same for the iPad if you wish.

  • Some BAPIs are auto commit and some are not.  what is the reason?

    Hi all,
    currently i am working on BAPI.I found that some BAPIs are auto commit and some are not. can anybody tell me what is the reason.

    hi,
    one option to find the difference is you have to look for parameters like test run or commit .
    If the function module  doesn't have them, then it means you have to use BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK based on the success or failure.

  • What ideal Win Server and Hardware are recommended for 11g DBs

    What best Win Server and Hardware are recommended for 11g DBs?
    - Processor
    - Memory
    - Storage
    - Network
    - Etc...
    Following is the scenario:
    - The server will be for development and test DBs
    - More than one databases will be installed each for each project
    - Maximum 4 databases will be accessed each time
    - Maximum DB size for each DB will be in couple of GBs.

    Which version of 11g ? For 11gR2, see the requirements here - http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/reqs.htm#i1011417
    Any server that exceeds these requirement will suffice. Obviously the more the number of processors, the faster the processors, the more the RAM, the more the disk etc etc, the better.
    HTH
    Srini

  • I just download mountain lion to my mac,  now microsoft office suite doesn't work....it says 'you can't open the application 'microsoft word' because PowerPC applications are no longer supported.  What does this mean and what do I have to do to fix it??

    I just download mountain lion to my mac,  now microsoft office suite doesn't work....it says 'you can't open the application 'microsoft word' because PowerPC applications are no longer supported.  What does this mean and what do I have to do to fix it?? HELP!!

    Install Snow Leopard on another boot partition, or upgrade Microsoft Office to a newer version, or use any number of better alternatives. Some of them are free.
    Consider
    LibreOffice (donation-supported)
    NeoOffice ($10)
    OpenOffice (completely free)
    In addition to the above I also recommend Apple's Pages ($19.99). I use OpenOffice and Pages and have been completely Microsoft - free for over a year now. Life is better without Microsoft.

Maybe you are looking for

  • Sending 80 Byte Fixed Size of File in SAP PI 7.11

    Hi, I have a requirement that I need to send the file with approximately 80 bytes or less from SAP PI to a receiver system. The message that I'm sending is a text file with file sizes that ranges from 200 - 1000 bytes. Is this even possible in PI? Th

  • Duplexing issue when printing

    We just switched to an HP printer and now we are having issues printing. We are working in InDesign CS5.5, on a Mac and when we try to duplex it prints the first page and then the second page prints separately and all black, almost like the connectio

  • Require user (not creator) to set password?

    Hello, I have created an incident report using Adobe Livecycle Desiger. These forums have been very helpful in answering my questions about expandable fields and the form is done except for my question about password protection.  I know how to set a

  • Types of procsses

    Would be grateful if someone explains each types of process I have seen in SM51 I am aware of DIA (dialog process - in foreground) and BGD - Background. I need info on the following : UPA  , SPO  , UP2 , UPD and ENQ. Are there more? Also please corre

  • Form config in  SAP

    How can i find the form config in SAP. I want to find out which is the standard PO form or SO form.