Attachment Folder in Custom BO

Posted on Posted in SAP Business ByDesign

Save this article as PDF?


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:

  1. Files
    You can upload any kind of files that contain binary content.
  2. 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

  1. Create Custom Business Object
  2. Generating Screen
  3. Design Screen
  4. Testing
  5. Troubleshooting

Create Custom Business Object

  1. Create a custom Business Object AttachmentFolder.
  2. Define elements/node as shown in the below screenshot.
  3. Save and Activate.
    For more information about the Custom Business Object creation, see http://blog.sankaranss.com/2016/03/29/sap-byd-business-object/.

Attachment Folder - SAP Business ByDesign


Save this article as PDF?


Generating Screen

  1. Right click on BO name -> Create Screens.
  2. 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.

2.Look 2016-12-18_21-23


Design Screen

  1. Double-click the new OIF screen.
  2. 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.

4. DataModel Design 2016-12-19_11-16

Configure Attachment Folder in Root Level
  1. 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 screen4. Drop and Drop 2016-12-19_11-09
  2. Click Bind button.
    A binding dialogue box will open.
    Configure binding with Root Level element as shown in below screenshot.

5. Bind Root Level 2016-12-19_11-22

Configure Attachment Folder in Node Level
  1. 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 screen10. Node 2016-12-19_12-19
  2. Click Bind button.
    A binding dialogue box will open.
    Configure binding with Node Level element as shown in below screenshot.node 2016-12-19_12-39
  3. Save and Active Screen.

Save this article as PDF?


Testing

  1. Login into SAP Business ByDesign as a Business User.
  2. Navigate to Attachment Folder work center. (Custom Development which we developed)
  3. Click New -> View All (Navigate from QA Screen to OIF Screen)
Root Level Attachments
  1. Click Add -> File from Attachments.
    Add File window will open.
  2. Browse file.
  3. Choose Document Type.
  4. Click Add button.

7. Testing2016-12-19_11-48

Node Level Attachments
  1. Navigate to Line Items -> Add Files in attachments.
    Add File window will open.
  2. Browse file.
  3. Choose Document Type.
  4. Click Add button.

testing 2016-12-19_12-31


Troubleshooting
  1. Disabled Add Button:
6. DisabledSolution:
  1. Don’t run OIF screen directly from UI Designer. First run QA Screen, then navigate to OIF screen from QA Screen.
  2. Check Binding properties.

Next Article

In future articles, we will learn how to display only selected Document Types in Add File Window.

9. Next Article 2016-12-19_12-01


If you like to add some points to this article, kindly leave your points in the comment box.

Don’t forget to subscribe it.

If need to download this article as PDF?


Leave a Reply

Your email address will not be published. Required fields are marked *