CL_BCFG_CONFIG_MANAGER - factory class for configuration containers
General Material Data ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
This singleton class manages the available Configuration Containertypes. It is used to create a
- new container from scratch
- load the saved 'snapshot' of an existing one
- turn the current contents of the configuration tables into a container
The life-cycle of a container usually is as follows
- Create a new empty container using CREATE_CONTAINER.
- Add contents to the container using the methods of interface IF_BCFG_CONFIG_CONTAINER.
- If the container is filled in several user sessions
- Save a snapshot of the container using the SAVE method of the container.
- Store the unique identifier (ID) of the container returned by its method GET_ID.
- Continue with the snapshot using the FIND_CONTAINER method of this manager, passing the ID from the previous step.
- Add contents to the container.
- Write the container contents to the target tables using the APPLY method of the container.
Creating a container from scratch
Relationships
More coverage of the container interface can be found in the documentation of IF_BCFG_CONFIG_CONTAINER.
Example
data:
config_table type table of sosp_v_wf_info,
config_line like line of config_table,
languages type if_bcfg_config_container=>ty_t_languages,
mappings type if_bcfg_config_container=>ty_t_mapping_info,
mapping type if_bcfg_config_container=>ty_s_mapping_info,
container type ref to if_bcfg_config_container,
container_id type string.
" based on Classic BC Sets
mapping-objectname = '/OSP/V_RAUI_SEL'. " ID of the customizing object
mapping-objecttype = 'V'. " customizing object type
insert mapping into table mappings. " list all relevant customizing objects
insert sy-langu into table languages. " list all configured languages
container = cl_bcfg_config_manager=>create_container(
io_container_type = cl_bcfg_enum_container_type=>classic
it_langus = languages
it_object_mappings = mappings ).
" populate_container( changing c_container = container ).
container_id = container->get_id( ).
container->save( ).
Notes
Further information
General Material Data rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3433 Date: 20120526 Time: 090016 triton ( 63 ms )






