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 »

Calling BAPI_INCOMINGINVOICE_CREATE Multiple Times

Calling "BAPI_INCOMINGINVOICE_CREATE" multiple times causes short dump. First calling is successfull, not the others.You receive a short dump /BOBF/CX_FRW_FATAL if several invoices are created. Implement the SAP Note 2452239. You will get rid of clear problem of attribute "mv_transaction_state" of class "/BOBF/CL_TRA_TRANSACTION_MGR"
Read More »

Add New Tab to BP

Step by step explanation of how to add a new tab to BP screen. Add new fields to standard structure incl_eew_kna1. incl_eew_kna1 is included in KNA1. Fields will be in KNA1 automatically.              Add same fields to incl_eew_kna1_x. Make sure that data element must be char1 for ex. bapiupdate.  Create a Z function group. IN top include define varibles:            TABLES: kna1. constants: table_nam
Read More »

SAP oData and Fiori Commonly Used Transaction Codes

These are most commonly used transaction codes which you will need while working on a fiori project:   oData related T-Codes SEGW - SAP Gateway Service Builder /IWFND/MAINT_SERVICE - Activate and Maintain Services /IWFND/ERROR_LOG - SAP Gateway Error Log /IWFND/TRACES - SAP Gateway Traces /UI2/GW_SYS_ALIAS - Gateway - Manage SAP System Alias   Fiori related T-Codes LPD_CUST - Launchpad customizing /UI2/FLP - SAP Fiori Launchpad /UI2/FLPD_CUST - Fiori Lpd. D
Read More »

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 »

Data Declaration in ABAP on HANA

With ABAP on HANA we can define variables/internal tables/structures/field symbols easily and quickly. Lets see some examples of data declarations. Here is a simple data declaration for a variable. SELECT SINGLE ebeln FROM ekpo INTO @DATA(lv_ebeln) WHERE banfn = ’100000’ AND loekz = @space. An internal table/structure definiton. Select matnr, spras, maktx into table @data(lt_makt) from makt where matnr in @lr_matnr. Loop at lt_makt into data(ls_makt). .. End
Read More »