top of page
Search
brigidecour

BC401 ABAP Objects: A Comprehensive Course Outline and Overview



SHARED OBJECTS IN ABAP With shared objects in ABAP it ispossible to share common data on one application server of a SAPsystem between different user session. In the first exercise youwill define your own shared object area and use it to share sampledata between two different programs. In the second exercise youwill adapt the shared object area for high availability andautomatic preloading. All exercises are done by a team of two.Because all teams will work within the same SAP system, the namesof global objects must be uniquely for every team. For this reasonall global names used in this description will end with XX. Thespeaker will give every team a unique number. Please, substitutethe XX in all global names with your team number (e.g.ZCL_MY_AREA_XX becomes ZCL_MY_AREA_01 for team number 1). Allobject to be created are only system local object so no transportrequest is necessary. Exercise 1 In this exercise you will define ashared objects area and an appropriate root data class. The rootdata class should have at least one instance attribute of typestring and must be shared memory enabled. After this two programsshould be written. One program to write data to the shared objectsarea and another program to read data from the shared object area.The data can be displayed by using ABAP list commands (e.g. write).In the second part of this exercise the shared object area shouldbe checked using the shared object area monitor. Identify yourshared object area and use the object browser to browse the data.At the end use the monitor to free your shared object area. Thefollowing 7 steps should be accomplished to work out this exercise:1. Define a root data class ZCL_SHM_AREA_ROOT_XX (please,substitute XX with your team number) 2. Define a shared object areaZCL_SHM_AREA_XX 3. Write a program ZWRITE_AREA_XX to fill theshared object area with data 4. Write a program ZREAD_AREA_XX toread and display the data from the shared object area 5. Use theshared object area monitor to identify your shared object areaZCL_SHM_AREA_XX 6. Browse the data of your shared object area usingthe shared object monitor 7. Delete your shared object areainstance using the shared object monitor In the following sectionall steps will be described and illustrated with screen shots.




bc401 abap objects pdf

2ff7e9595c


0 views0 comments

Recent Posts

See All

Comentários


bottom of page