Tag: crm

Loading Jquery Correctly into BSP Application

Sometimes, we might want to use jquery in our bsp applications to create some pretty views with animation. But if you couldn't load it correctly, it might be very annoying. Thanks to SAP's Automatic Delta Handling (ADH) in BSP applications, when the page loads We can load it multiple times unnecessarily and call respective functions multiple times, after you might end up with a messed up view. Here are some tips to use jquery correctly, to keep you out from these troubles. First
Read More »

Employee Search with Dynamic Where Clause

I have implemented this function for a custom fiori application employee value help. It is simply used as an employee value help backend function. There are 3 fields at value help structure from but000 PARTNER NAME_FIRST NAME_LAST   FUNCTION z_crm_ui5_oneri_partner_vhelp. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(IS_PARTNER_VHELP) TYPE ZCRM_UI5_S063 OPTIONAL *" EXPORTING *" V
Read More »

Implementing Character Limit Feature for TextArea Element in a BSP with JavaScript

Here is a good example of using JavaScript in WebUI BSPs. In this example, we will try to implement character limit functionality for a TextArea field in a bsp. First of all, we need to ID property of Html Element of the Text Field. To get that, we could use below code in .htm. DATA lv_textArea_id TYPE string. CONCATENATE controller->component_id '_search_message' INTO lv_textArea_id. The "search" phrase, in concatenate action, is the name of the context node of the property that ge
Read More »

How To Copy Document With CRM Actions

Here is a simple code to demonstrate how to copy a document using CRM actions. In the action method we implemented, we first declare the variables we are going to use DATA: lc_action_execute TYPE REF TO cl_action_execute. DATA: lv_guid_ref TYPE crmt_object_guid, lv_actionname TYPE ppfdtt, lv_actiontext TYPE ppfdttt.   Next we get the information of the reference document using action object CREATE OBJECT lc_action_execute. * g
Read More »

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 »