Use transaction SE19 (BADI Builder) to create implementations for the following BADI’s. The default coding is delivered via Includes. You can simply insert the INCLUDE statements in the BADI methods to use the default coding. Use the provided Includes as samples, if you require customizations.
/TRILLIUM/ADDRCHCKEX
Method: /TRILLIUM/IF_EX_ADDRCHCKEX~BEFORE_ADDRESS_CHECK
Include: /TSSERP/BEFORE_ADDRESS_CHECK
* Export the orig address for display in the CRM WebClient popup
EXPORT origaddress = ch_adrc_struc
TO MEMORY ID '/TRILLIUM/ORIGADDRESS'.
* Export the orig address to the NEWADDRESS as default in case of errors
EXPORT newaddress = ch_adrc_struc
TO MEMORY ID '/TRILLIUM/NEWADDRESS'.
Method: /TRILLIUM/IF_EX_ADDRCHCKEX~AFTER_ADDRESS_CHECK
Include: /TSSERP/AFTER_ADDRESS_CHECK
/TRILLIUM/ADDRSRCHEX
Method: /TRILLIUM/IF_EX_ADDRSRCHEX~BEFORE_ADDRESS_SEARCH
Include: /TSSERP/BEFORE_ADDRESS_SEARCH
Method: /TRILLIUM/IF_EX_ADDRSRCHEX~BEFORE_MATCHER_CALL
Include: /TSSERP/BEFORE_MATCHER_CALL
/TRILLIUM/ADDRUPDTEX
Method: /TRILLIUM/IF_EX_ADDRUPDTEX~BEFORE_WINDOW_KEY_
GENERATION
Include: /TSSERP/BEFORE_WINDOW_KEY_GENE
Use the following procedure to create your implementation for BADI/TRILLIUM/ADDRCHCKEX. Repeat the process for BADIs/TRILLIUM/ADDRSRCHEX and /TRILLIUM/ADDRUPDTEX.
To create an implementation for BADI/Trillium/ADDRCHCKEX
-
Start transaction SE19.
-
Enter the name of the BADI that you want to implement and click Create Impl.
-
Enter a name for your BADI implementation. The name should be in the customer namespace (Y* or Z*). Click .
-
Enter a description for your BADI implementation and click the Interface tab.
-
Double-click the method BEFORE_ADDRESS_CHECK.
-
Click Yes in the Save Confirmation pop-up.
-
Assign your objects to a package in the customer namespace (Y* or Z*) and click Save.
-
Create a transport request and place your objects in this new transport request.
-
Insert the following code into the method BEFORE_ADDRESS_CHECK.
METHOD /trillium/if_ex_addrchckex~before_address_check. INCLUDE /tsserp/before_address_check.* Export the orig address for display in the CRM WebClient popup EXPORT origaddress = ch_adrc_struc TO MEMORY ID '/TRILLIUM/ORIGADDRESS'.* Export the orig address to the NEWADDRESS as default in case of errors EXPORT newaddress = ch_adrc_struc TO MEMORY ID '/TRILLIUM/NEWADDRESS'. ENDMETHOD.
-
Save and activate the method. On the activation screen, select all of the components for your new BADI class and click Enter.
-
Click BACK to return to the BADI Builder.
-
Double-click the method AFTER_ADDRESS_CHECK.
-
Insert the code shown in the following figure.
-
Save and activate the method.
-
Click BACK to return to the BADI Builder.
-
Click Activate to activate your BADI.
You should receive the following message.
-
Repeat this process two more times for BADIs /TRILLIUM/ADDRSRCHEX and /TRILLIUM/ADDRUPDTEX.