Author Archives: Furkan Sönmez

www.linkedin.com/profile/view?id=122521475

How To Format Cell Color in BSP

It is quite simple to color cells in a BSP table using getter methods to achive a better look We start by generating the GET_P method of the attribute that we want to color conditionally   Then in the getter method, we use find method of the collection wrapper to determine current table line Next we set the value of the returning parameter under the condition(s) we provide and we are done METHOD GET_P_PARTNER_SERV. DATA: lr_collection TYPE REF TO cl_bsp_wd_collection
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 »

BOL Programming - Basic Collection Operations

Here we tried to summarize some of the basic methods you can use to manipulate BO collections How To Search in BOL Collection In order to search for a BO in a collection, the FIND method is used. You can use one of the two input parameters IV_INDEX and IV_ENTITY for the search. However, be aware that only one of these parameters are used for the search so you should provide only one. In case you export both of the parameters, the search will be executed according to the index. DATA: lr_col TYP
Read More »