Category: CRM

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 »

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 Mark Business Partner For Deletion with BUPA_CENTRAL_CHANGE

In order to mark a business partner for deletion, the BUPA_CENTRAL_CHANGE BAPI is used Simply provide the necessarry variables and call the BAPI DATA: lt_return TYPE STANDARD TABLE OF bapiret2, ls_data TYPE bapibus1006_central, ls_datax TYPE bapibus1006_central_x. ls_data-centralarchivingflag = 'X'. ls_datax-centralarchivingflag = 'X'. CALL FUNCTION 'BUPA_CENTRAL_CHANGE' EXPORTING iv_partner = iv_partner is_data = ls_data is_data_x
Read More »

How To Delete Items of CRM Order with CRM_ORDER_MAINTAIN

We start with defining the variables we are going to use for the CRM_ORDER_MAINTAIN function CONSTANTS: lc_mode_delete TYPE crmt_mode VALUE 'D', lc_object_kind_item TYPE crmt_object_kind VALUE 'B'. DATA: lt_header_guid TYPE crmt_object_guid_tab, lt_saved_objects TYPE crmt_return_objects, lt_exception TYPE crmt_exception_t, lv_log_handle TYPE balloghndl, lt_orderadm_i TYPE crmt_orderadm_i_wrkt, ls_orderadm_i
Read More »

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 »