Archives: Mart, 2015

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 »

Get order attachments with bol programming

Method: methods GET_ORDER_ATTACHMENTS importing !IV_GUID type CRMT_OBJECT_GUID returning value(RT_ATTACHMENT) type ZCRM_UI_S108_T .   Return type:   Source code: Basically we are gettng doc_key of attachments on the order to reach their content urls. METHOD get_order_attachments. DATA: lr_entity TYPE REF TO cl_crm_bol_entity, lr_entity_col TYPE REF TO if_bol_entity_col, lr_qs TYPE REF TO cl
Read More »