Tag: abap

Getting Started with ABAP - Hello World

ABAP (Advanced Business Application Programming) is a 4GL, object oriented programming language that developed for SAP by SAP. With ABAP, we can develop business application programs within SAP systems. It supports multi-language applications and Open SQL which turns database independent statements into the statements understood by the underlying database. SAP can work with a wide variety of databases and the same ABAP program can run on all of those. Before starting ABAP development, it is helpful to le
Read More »

For All Entries Statement With Key Fields

For all entries statement does not bring “all entries” everytime. To get all data in tables, key fields must be used in select statement. You can see the differences between 2 select statements. The one  that without key fields returns 11 records, the one that with key fields returns 194 records even where conditions are the same.  VBAP is the sales order item table which has sales order number and sales order item number as key fields. When we didn’t use key fields (
Read More »

How To Create Business Transaction Using BOL Programming

Here we share a simple code to illustrate how to create a business transaction using BOL programming Variables to be used: DATA: lr_core TYPE REF TO cl_crm_bol_core, lr_factory TYPE REF TO cl_crm_bol_entity_factory, lr_order TYPE REF TO cl_crm_bol_entity, lr_transaction TYPE REF TO if_bol_transaction_context, ls_params TYPE crmt_name_value_pair, lt_params TYPE crmt_name_value_pair_tab.   To be able to use any service of B
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 »