!--a11y-->
Writing Code for a Business Object 
You can use this procedure to define the behavior of a business object by writing code for its child objects.
Child Object |
Purpose |
Method |
To perform an operation on the business object |
Event handler
|
To perform an operation when a predefined event occurs for the business object |
User exit
|
To allow additional code in the existing code if further enhancements to the business logic is planned |

You can make the code specific to an industry by selecting the corresponding industry template (IT). However, you can select an IT only if it is active. The IT you specify in the generation settings of business logic is considered as the active IT.
You have specified the industry template in the generation settings of business logic, if you want to make a method, event handler or a user exit specific to this industry template.
...
1. In Solution Explorer, locate the business object.
2. Click the secondary mouse button and choose View Code.
The Document Outline window and the Code Designer appear. The Document Outline window displays child object nodes.
3. In the Document Outline window, click the required child object node with the secondary mouse button and choose New.
The Add <child object name> for <business object name> window appears.
4. Enter data as required.
5. Choose OK.
6. Write code in the appropriate location within the Code Designer.
7. Choose Save.