Attach Image
A Web Dynpro-developed user interface component used to attach images to a business object instance.
You can use the Attach Image user interface component pattern to attach JPG and GIF image files and web page types (type HTM/HTML) only to pre-existing object instances. The Attach Image is a simple user interface that can be embedded in any composite application.

If you want to attach any type of document or file using a UI pattern, see Attachments for more information.
The Attach Image pattern consists of the following parts:
● Attach Image Configurator
Generates the user interface necessary for attaching an image to an object.
● Attach Image UI
You use the toolbar along the top of the layout to open a new attach image configuration (New), a previously created one (Open), to save (Save, Save as) or delete (Delete) it, or to preview (Preview) and test your configuration in a separate window.
In the following tables, you see a list of configuration fields used to create an Attach Image component. Those marked with an asterisk (*) in the table and a red asterisk in the screen layout are required fields.
Object-Related Entries |
Description |
Service Module* |
Contains aspects and queries associated with the object. You can enter it directly or browse for it. |
Aspect for Object*
|
An ESF (Enterprise Service Framework) term, which lists the key word needed to activate the result of a query or view of the object in the database. |
Relation Name for Attachment* |
It specifies the relationship to other documents. |
Aspect Field for Object ID*
|
Indicates which view is used for listing the object identifier. Here you can use a global unique identifier. |
Related Object Name* |
Navigates to the library where the related object is stored. |
KM-Related Entries |
Descrption |
KM Repository Address for Document Edit*
|
This URL points to the location in KM so that you can edit the Attachments documents. KM host and port values will be substituted at runtime from the caf~runtime~ear application process. |
New Attachment UI Component*
|
The UI component is the technical basis for generating a new attachment document. Default is com.sap.caf.ui.ptn.newattachment.NewAttachment. |
New Attachment UI Development Component |
Contains coding information for launching the new attachment. Default is sap.com/caf~UI~ptn~attachments. |
Configuration Name of New Attachment* |
Contains the name of the configured New Attachment UI component. |
New Attachment Mode |
You can indicate if this pattern is to be launched as a pop-up window (Pop-up) or as an embedded component (In Place). |
Layout-Related Entries |
Description |
Action Bar Position |
Default is Right. You can also select Left, Top, or Bottom. |
Action Bar Visibility |
Default is Visible. You can also select Read Only or Invisible. |
Image Size |
Select Original Size to retain the image size or select Specified Size, then define the image width (Max Image Width) and height (Max Image Height). |
Default Image Type |
Default is Specify Image. You can also select Specify Image URL or Specify Text. |
Default Image Default Image URL Default Text |
Select the photo placeholder for the image. Enter a URL pointing to a placeholder for the image. Enter a standard text serving as placeholder for the image. |
Action Bar-Related Entries |
Description |
Text for Edit Link |
Quick info text that appears when cursor hovers over the icon to edit an image. |
Text for Remove Link |
Quick info text that appears when cursor hovers over the icon to remove an image. |
Show Action Bar Icons |
Enable this checkbox to allow action bar icons to be displayed. |
Other Entries |
Description |
Enable Autocommit |
Enable checkbox to apply changes immediately (image can be seen directly after image upload). If not enabled, changes will take effect only after an external commit transaction. |
You can upload additional images from other sources such as from a local directory, the World Wide Web, or from a document management system such as SAP Knowledge Management. See Adding Attachments for more information on this procedure.
The Attach Image pattern can use the New Attachment UI component to add an image to the object instance. This in turn uses the File Select pattern to browse the KM repository for the images.
See also the following UI components: