Archives: Mart, 2015

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 »