In this short how to document I will show you how to add Attachments in your own BO and how to use the Attachment Folder in the UI.
1. Add a node for your Attachment Folder to your Business Object and extend the node with the annotation "DependentObject" to reuse the structure of the Business Object "AttachmentFolder".
[DependentObject(AttachmentFolder)] node AttachmentFolder;
2. Add the Embedded Component "/SAP_BYD_APPLICATION_UI/Reuse/Attachments/documentlist.EC.uicomponent" to your Screen
3. Bind the Embedded Component to your Business Object Structure which is bind in the DataModel to the BO root
Result: