Create BADI Implementations - trillium_quality - 17.1

Trillium Quality for SAP Field Extension Framework (CRM) Installation and Configuration Guide

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
17.1
Language
English
Product name
Trillium Quality
Title
Trillium Quality for SAP Field Extension Framework (CRM) Installation and Configuration Guide
Topic type
Reference
How Do I
Installation
Administration
Overview
Configuration
First publish date
2008
ft:lastEdition
2023-05-25
ft:lastPublication
2023-05-25T13:39:59.690803

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

  1. Start transaction SE19.

  2. Enter the name of the BADI that you want to implement and click Create Impl.

  3. Enter a name for your BADI implementation. The name should be in the customer namespace (Y* or Z*). Click .

  4. Enter a description for your BADI implementation and click the Interface tab.

  5. Double-click the method BEFORE_ADDRESS_CHECK.

  6. Click Yes in the Save Confirmation pop-up.

  7. Assign your objects to a package in the customer namespace (Y* or Z*) and click Save.

  8. Create a transport request and place your objects in this new transport request.

  9. 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.
  10. Save and activate the method. On the activation screen, select all of the components for your new BADI class and click Enter.

  11. Click BACK to return to the BADI Builder.

  12. Double-click the method AFTER_ADDRESS_CHECK.

  13. Insert the code shown in the following figure.

  14. Save and activate the method.

  15. Click BACK to return to the BADI Builder.

  16. Click Activate to activate your BADI.

    You should receive the following message.

  17. Repeat this process two more times for BADIs /TRILLIUM/ADDRSRCHEX and /TRILLIUM/ADDRUPDTEX.