Archives: Nisan, 2015

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 »

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 »

How To Read text with BOL programming

How to read text lines of an order with bol programming: DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_entity TYPE REF TO cl_crm_bol_entity, lr_adminh TYPE REF TO cl_crm_bol_entity, lr_texts_all TYPE REF TO if_bol_entity_col, lr_iterator TYPE REF TO if_bol_entity_col_iterator, lv_text TYPE string. lr_core = cl_crm_bol_core=>get_instance( ). CHECK lr_core IS BOUND. TRY. lr
Read More »