SAP HANA - Default Values in Business Partners (BP).


Most of the times, client comes up with a requirement wherein they want some fields to be defaulted in Business Partner. One such requirement is to default the communication language to 'EN'.

Here we are going to talk about all the steps to achieve the same.

Step 1: Create a function group via SE80. (For example, ZFG_MM_BP).

Step 2: Create a new function module ZBUP_BUPA_EVENT_ISSTA (or probably any name in the customer name space Y* or Z*) with the following source code (only):

FUNCTION zbup_bupa_event_issta.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"----------------------------------------------------------------------

DATA: lwa_default TYPE busdefault.

lwa_default-langu = sy-langu.

CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = lwa_default.

ENDFUNCTION.


Save the function module and activate the same as well as function group.

Step 3: Navigate to BUS7 transaction code and select event ‘ISSTA'. Double-Click on 'Event -> Function modules' shown in the tree control located to the left side of the screen.

Step 4: Click on 'New Entries' button in the application tool bar above and create a new entry with the following data as shown below.
Item: 9000004
Function module name: ZBUP_BUPA_EVENT_ISSTA
Call: X
Application: BUP



Step 5: Now Go to transaction BP and Create person -> You will see that the Communication language is defaulted to 'EN' (System language) on the address screen.