SAP ABAP IMG Activity BADI_RECA_ADD_TEXT (Implement Enhancements (BAdI))
Hierarchy
EA-FIN (Software Component) EA-FIN
   RE-FX (Application Component) Flexible Real Estate Management
     RE_CA_AP (Package) RE: Application Components (Application-Related Objects)
IMG Activity
ID BADI_RECA_ADD_TEXT Implement Enhancements (BAdI)  
Transaction Code S_EEI_69000176   (empty) 
Created on 20130220    
Customizing Attributes BADI_RECA_ADD_TEXT   Implement Enhancements (BAdI) 
Customizing Activity BADI_RECA_ADD_TEXT   Implement Enhancements (BAdI) 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_RECA_ADDITIONAL_TEXT    

Use

You can define categories for additional texts in Customizing. You can specify which categories are allowed for each real estate object type (contract, building, rental object, and so on). These text categories are then available for selection when you are maintaining a real estate object. The BAdI method CHANGE_CATEGORIES_FOR_INSERT allows you to further restrict the category selection by object type defined in Customizing.

If you create additional texts for a real estate object, the texts specified in Customizing are only used as templates but are saved for the individual object. The key of the text object contains the reference to the real estate object and the language key of the logon language. The BAdI method CHANGE_LANGUAGE allows you to maintain the additional texts independently of the logon language.

Requirements

Standard settings

Activities

Example

CHANGE_CATEGORIES_FOR_INSERT Method

You have allowed the categories A1, A2, B1, and B2 for contracts. However, only categories A1 and A2 are intended to be used for contract type A while categories B1 and B2 are intended to be used for contract type B. Implement the BAdI method CATEGORIES_FOR_INSERT so that the allowed categories read from Customizing (CT_TEXT_CATEGORY_X) are restricted based on the object properties (IO_OBJECT) by deleting the relevant rows. Only the categories for additional text that remain in the table are then offered for insertion on the "Additional Text" tab page in the contract dialog.

CHANGE_LANGUAGE Method

You have created an additional text for an object while logged on in German. The text object created for the real estate object is stored in a file whose key contains the logon language. If you now log on in English, the system informs you that an additional text exists but does not display the text that you created when you were logged on in German. You can now create a text in English (the logon language) for the same text category that differs from the German text. This should generally be avoided.

Therefore, we recommend that you implement this BAdI method to ensure that text modules can be saved and accessed independently of the logon language. You specify this by setting the CD_LANGU parameter to the required (single) language. The language key you choose is used as the key for saving the text module and accessing existing text modules independently of the logon language. Although it is possible to restrict the language selection to specific object types (as demonstrated in the example implementation), this is not generally advisable.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20130220 
SAP Release Created in 617