CL_EHFND_ENA_SERVICE_MNGR - Easy Node Access external manager

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

Functionality

This class gives access to Business Object Processing Framework (BOPF) . It is part of the Easy NodeAccess (ENA) framework and gives the possibility to work with ENA outside of BOPF (in UI handlers for example) that's why it is classified as external accessor to BOPF Business Object (BO) node structure.

Do not use the constructor directly but the static factory method cl_ehfnd_ena_service_mngr=>instancev2 to get reference of the class.

The methods get_root, get_root_single, get_node and get_node_single give different ways to access the BO node structure. all of them require to have the key/keys of the node's instances you want to access.

The class holds both BOPF sevice and transaction manager instances and provide access to most of thier method.

Such methods are: save(transaction mngr), execute_action(service mngr), check_consistency(service manager) and etc

Relationships

Example

DATA:

,, lo_service_manager ,,TYPE REF TO cl_ehfnd_ena_service_mngr,

,,lo_inc_node ,,TYPE REF TO cl_ehfnd_ena_node,

,,iv_save_data,,,,,,TYPE abap_bool.

* ,,get the service manager

,,lo_service_manager = cl_ehfnd_ena_service_mngr=>instancev2( if_ehhss_inc_c=>sc_bo_key ).

,,lo_inc_node = lo_service_manager->get_root_single( iv_key = 'ABDO444D125S66DG' ).

,,IF lo_inc_node->count( ) = 1.

,,,,lo_inc_node->get_row( 1 ).

,,...

,,ENDIF.

,,....

,,IF iv_save_data = abap_true.

,,,,lo_service_manager->save( ).

,,ENDIF.

Notes

Further information

More information about BOPF: https://wiki.wdf.sap.corp/wiki/display/BOPF/Home



ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.


Length: 1845 Date: 20120526 Time: 115730     triton ( 75 ms )