Category: BOL Programming

How To change order status with bol programming

DATA: lv_status TYPE j_estat, lr_adm_h TYPE REF TO cl_crm_bol_entity, lr_btorder TYPE REF TO cl_crm_bol_entity, lr_core TYPE REF TO cl_crm_bol_core, lr_status_h TYPE REF TO cl_crm_bol_entity, lr_status TYPE REF TO cl_crm_bol_entity. lr_core = cl_crm_bol_core=>get_instance( ). CHECK lr_core IS BOUND. lr_core->load_component_set( 'ALL' ). lr_btorder = lr_core->get_root_entity( iv_object_name = '
Read More »

How To Read text with BOL programming

How to read text lines of an order with bol programming: DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_entity TYPE REF TO cl_crm_bol_entity, lr_adminh TYPE REF TO cl_crm_bol_entity, lr_texts_all TYPE REF TO if_bol_entity_col, lr_iterator TYPE REF TO if_bol_entity_col_iterator, lv_text TYPE string. lr_core = cl_crm_bol_core=>get_instance( ). CHECK lr_core IS BOUND. TRY. lr
Read More »

BOL Programming - Basic Collection Operations

Here we tried to summarize some of the basic methods you can use to manipulate BO collections How To Search in BOL Collection In order to search for a BO in a collection, the FIND method is used. You can use one of the two input parameters IV_INDEX and IV_ENTITY for the search. However, be aware that only one of these parameters are used for the search so you should provide only one. In case you export both of the parameters, the search will be executed according to the index. DATA: lr_col TYP
Read More »

Introduction to BOL Programming

Business Object Layer Programming provides various advantages such as simple and easy use due to Object Oriented structure and faster applications due to built-in buffer. Let us start with the most commonly used classes of BOL programming CL_CRM_BOL_QUERY_SERVICE      --> Query class to select Business Objects IF_BOL_TRANSACTION_CONTEXT --> For access to transaction context CL_CRM_BOL_ENTITY                    
Read More »

How To Create Counter Reading Using BOL Programming

Here is a sample code I used to create counter reading using BOL programming We start by declaring the variables to be used DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_btorder TYPE REF TO cl_crm_bol_entity, lr_btadmin_h TYPE REF TO cl_crm_bol_entity, lr_counter_h TYPE REF TO cl_crm_bol_entity, lr_reading_h TYPE REF TO cl_crm_bol_entity, lr_transaction TYPE REF TO if_bol_transaction_context. DATA
Read More »