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 »

How to Reverse Goods Issue

WS_REVERSE_GOODS_ISSUE function module is used to reverse goods issue. Here is an example of function module. lv_tcode = 'VL09'. lv_vbtyp = 'J'. CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE' EXPORTING i_vbeln = p_vbeln i_budat = p_budat i_tcode = lv_tcode i_vbtyp = lv_vbtyp TABLES t_mesg = lt_mesg T_VBAPF
Read More »

MARA Custom Fields Update Problem

To update custom fields on mara with BAPI_MATERIAL_MAINTAINDATA_RT, EXIT_SAPL1001_003 must be activated  and custom fields must be mapped in user exit but writing code in user exit is not enough. Also a customization is neeeded. Go to t-code SPRO press F5. Logistic general-material master-field selection and click to assign fields to field selection groups. add your custom fields here and assign a number for them. Check note 568513 for details. Try to update fields again and enjoy the
Read More »