Attachment Folder
An object that is used to store attachments that are related to a business document.
For example, a freight order or a forwarding order.
You use Dependent Object to store attachments that are related to a business document.
You can store the following attachment types:
- Files
You can upload any kind of files that contain binary content.
- Links
You can store links to external content that is accessible via a uniform resource locator (URL). For example, links to content on the World Wide Web or links to files stored on a server. Here we are going to Implement Attachment Folder in root level and node level for custom Business Object.
So, I would like to document it here and let you know the same so that it will stay as a reference for everyone.
Tenant: SAP Business ByDesign.
Scenario: Implement Attachment Folder in root level and node level for custom Business Object.
Workflow
- Create Custom Business Object
- Generating Screen
- Design Screen
- Testing
- Troubleshooting
Create Custom Business Object
- Create a custom Business Object AttachmentFolder.
- Define elements/node as shown in the below screenshot.
- Save and Activate.
For more information about the Custom Business Object creation, see http://blog.sankaranss.com/2016/03/29/sap-byd-business-object/.
Save this article as PDF?
Generating Screen
- Right click on BO name -> Create Screens.
- Generate all screens.
For more information about the screen generation,
see http://blog.sankaranss.com/2016/04/28/sap-byd-screen-types/.Your solution should look something like in the below screenshot.
Design Screen
- Double-click the new OIF screen.
- The OIF screen opens in the user interface designer.
For more information about the screen designing,
see http://blog.sankaranss.com/2016/08/29/quick-activity-floorplan-sapby/..
Configure the data model view of the OIF Screen
Bind each of the fields to the required business object element as shown in the below screenshot.
Configure Attachment Folder in Root Level
- Drag and drop ‘Documentlist’ as follows
1.1 Go to configuration window
1.2 Open ‘SAP_BYD_Application_UI’
1.3 Go to ‘Reuse’ folder
1.4 Attachment folder
1.5 Drag and drop ‘Documentlist’ on to the screen
- Click Bind button.
A binding dialogue box will open.
Configure binding with Root Level element as shown in below screenshot.
Configure Attachment Folder in Node Level
- Drag and drop ‘Documentlist’ as follows
1.1 Go to configuration window
1.2 Open ‘SAP_BYD_Application_UI’
1.3 Go to ‘Reuse’ folder
1.4 Attachment folder
1.5 Drag and drop ‘Documentlist’ on to the screen
- Click Bind button.
A binding dialogue box will open.
Configure binding with Node Level element as shown in below screenshot.
- Save and Active Screen.
Save this article as PDF?
Testing
- Login into SAP Business ByDesign as a Business User.
- Navigate to Attachment Folder work center. (Custom Development which we developed)
- Click New -> View All (Navigate from QA Screen to OIF Screen)
Root Level Attachments
- Click Add -> File from Attachments.
Add File window will open.
- Browse file.
- Choose Document Type.
- Click Add button.
Node Level Attachments
- Navigate to Line Items -> Add Files in attachments.
Add File window will open.
- Browse file.
- Choose Document Type.
- Click Add button.
Troubleshooting
- Disabled Add Button:
Solution:
- Don’t run OIF screen directly from UI Designer. First run QA Screen, then navigate to OIF screen from QA Screen.
- Check Binding properties.
Next Article
In future articles, we will learn how to display only selected Document Types in Add File Window.
If you like to add some points
to this article, kindly leave your points in the comment box.
Don’t forget to subscribe it my blog.
http://blog.sankaranss.com
For more information about this article read
http://blog.sankaranss.com/2016/12/19/attachment-folder-in-custom-bo/