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 »

How To Copy Dates With CRM_COPY_BADI

It is possible to copy dates between documents using DATES method of the badi CRM_COPY_BADI Simply insert the code below into the DATES method of your implementation DATA: lt_fnames TYPE crmt_input_field_names_tab, ls_fnames TYPE crmt_input_field_names. FIELD-SYMBOLS: <ls_input_fields> LIKE LINE OF ct_input_fields. READ TABLE ct_input_fields ASSIGNING <ls_input_fields> WITH KEY logical_key = cs_date-appt_type. IF <ls_input_fields> IS ASSIGNED. CL
Read More »

WEB UI Navigation to BOL Entity

This is a couple of sample code blocks to demonstrate how to navigate to an entity in SAP CRM Web UI. Let’s assume that we need to navigate to an order from our BSP application. Frist we need to create the order entity that we want to navigate to. For that, we need the GUID of the order. Let’s say have the guid in a local variable named by lv_guid DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_order TYPE REF TO cl_crm_bol_entity, lv_guid
Read More »

How To Create Business Partner Using BOL

Here is an example code for creating a business partner using BOL programming. DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_entity TYPE REF TO cl_crm_bol_entity, lr_entity_role TYPE REF TO cl_crm_bol_entity, lr_entity_adr TYPE REF TO cl_crm_bol_entity, lr_entity_phone TYPE REF TO cl_crm_bol_entity, lr_entity_mail TYPE REF TO cl_crm_bol_entity, lr_entity_gender TYPE REF TO cl_crm_bol_entit
Read More »

How To Create Followup Document Using BOL

Here we demonstrate a method to create follow-up document using Business Object Layer programming. Let’s start with the data declarations we need to use DATA: lr_bol_core TYPE REF TO cl_crm_bol_core, lr_btorder TYPE REF TO cl_crm_bol_entity, lr_btadminh TYPE REF TO cl_crm_bol_entity, lr_col TYPE REF TO if_bol_bo_col, ls_params TYPE crmt_name_value_pair, lt_params TYPE crmt_name_value_pair_tab, lv_object_g
Read More »