How To create / use custom patterns on SAP Abap editor

Why do we need a pattern ? I prefer using patterns to have better organized and understandable codes for myself and other developers. It has some other features also, but i will not get into those. How to create a pattern ?   This is a pattern of mine as an example.   How to apply pattern to editor ? Before starting to write your code, simply insert your pattern and continue.        
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 »

How To Modify Configuration of Form View Dynamically

Here we want to modify the configuration of a form view. The idea is very simple, to convert the XML formatted configuration data to ABAP, modify and convert it back to XML We achive this in the .hml file of our view We start with the variables to be used DATA: lr_view_desc TYPE REF TO if_bsp_dlc_view_descriptor, lv_xml TYPE string, lv_xml_inp TYPE bsp_dlc_xml, ls_config TYPE bsp_dlc_table_descr, lt_adv_conf TYPE bsp_dlct_adv_conf_itm,
Read More »

How To Create Business Transaction Using BOL Programming

Here we share a simple code to illustrate how to create a business transaction using BOL programming Variables to be used: DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_factory TYPE REF TO cl_crm_bol_entity_factory, lr_order TYPE REF TO cl_crm_bol_entity, lr_transaction TYPE REF TO if_bol_transaction_context, ls_params TYPE crmt_name_value_pair, lt_params TYPE crmt_name_value_pair_tab.   To be able to use any service of B
Read More »

How To Hide Overview Assignment Block Dynamically

It is possible to detach or reattach assignment blocks in a BSP overview page. First thing to do is determine the name of the assignment block that we want to hide. There are two possibilities for this purpose If the block we want to hide is a defined as a component usage in our BSP, the name of the assignment block should consist of the usage name and the interface name seperated by a dot 'component_usage_name'.'interface_view_name'. If the block is defined i
Read More »