Product Images

WATCH THE VIDEO

In SAP you can add product images and show them on the product pages in the Sana web store. Images can be added to the materials using attachments in SAP.

Sana Commerce Cloud also allows to add videos to the products. You can add videos only in Sana Admin but not in ERP. Product videos are shown along with product images in the media carousel on the product pages.

The product images and product videos are shown on the product details page using the Media gallery content element.

NOTE

You can equally use the procedure which Sana provides out-of-the-box and SAP to add product images.

Set Up User Permissions

The SAP user must have the necessary permissions to be able to add attachments to the materials. If you can't add attachments in SAP, please ask the SAP administrator to give you the necessary permissions.

If the SAP user has the required permissions to add attachments, then the button Services for Object will be available in the material master data.

To manage the user in SAP, use the transaction code SU01. The parameter SD_SWU_ACTIVE must be added to the user on the Parameters tab to allow the user to add attachments in SAP.

Add an Image to a Material in SAP

Step 1: Open material master data.

Step 2: Click on the Services for Object button to add the image to the material. Then click: Create > Create Attachment.

Step 3: Find the necessary image and add it to the material. You can add multiple images to each material. All images added to the material in SAP will be shown on the product details page in the Sana webstore.

Just in the same way, you can add an image to a material variant. If a material has variants, you need to click: Create > Create Attachment and then select the necessary image for a product variant. Currently, it is possible to use only 2 product variant components, for example, color and size. You can add only one image for a product variant. You can manage the material variant image visibility in the Sana webstore in the Attachments Overview and Product Images window.

For more information, see Manage Image Visibility for Product Variants.

Step 4: Click Attachment list, if you need to view the list of all images added to the material. You can open the attachment list only when at least one attachment has been added to the material. In the Service: Attachment list window, you can also add and remove images.

Manage Product Images Visibility

In SAP you can choose which product images you want to show in your Sana webstore.

In the main menu of the Sana add-on (/n/sanaecom/webstore), click Attachment Overview (/n/sanaecom/att_ovrvew).

Step 1: Enter the Webstore Id and select Product Images. You can use Input Parameters as a filter to narrow search results and show only those product images that you need. Click Execute.

Step 2: In the Attachments Overview and Product Images window, you can see the list of materials and all images attached to them. You can see the material number, type, name, product image name, file format, last modified date and time, and product image visibility.

If you select the Visibility checkbox, then your product images will be shown on the product pages in the Sana webstore.

At the top of the window, you can see the buttons Select AllUnselect All, and Update Visibility which can be useful for quick managing of product image visibility.

NOTE

Starting from Sana Commerce Cloud 96_6 in SAP ECC, you can check the modification date of product images.

Each product image has the last modified date and time. SAP ECC sends the product image modification date to Sana Commerce Cloud. This means that Sana Commerce Cloud tracks the date and time when the product image was changed and retrieves only those images that have been added or changed.

Manage Image Visibility for Product Variants

NOTE

Applies to: Sana Commerce Cloud 96_6 and higher in SAP ECC.

In SAP ECC you can choose which product variant images you want to show in your Sana webstore.

Step 1: To add a product variant image, in SAP ECC open material master data.

On the Classification tab, you can see the characteristics with the necessary values that should be used as product variants.

Currently, it is possible to use only 2 product variant components, for example, color and size. You can add only one image for a product variant. All images added to the material in SAP will be shown on the product details page in the Sana webstore.

You need characteristic values to name the product variant image correctly.

The file name of the product variant image must be in the following format: [characteristic value]-[characteristic value].

Example: S-CHEESE (2 product variant components), S (1 product variant component).

Step 2: Click on the Services for Object button to add the image to the material. Then click: Create > Create Attachment.

Step 3: Find the necessary image and add it to the material.

Step 4: Click on the Services for Object button. Then, click Attachment list, if you need to view the list of all images added to the material. You can open the attachment list only when at least one attachment has been added to the material. In the Service: Attachment list window, you can also add and remove images.

You can manage product variant image visibility in the Attachments Overview and Product Images window in SAP ECC.

Step 1: In the main menu of the Sana add-on (/n/sanaecom/webstore), click Attachments Overview (/n/sanaecom/att_ovrvew).

Step 2: Enter the Webstore Id and select Product Variant Images. You can use Input Parameters as a filter to narrow search results and show only those product images that you need. Click Execute.

In the Attachments Overview and Product Images window, you can see the list of product variants and images attached to them. You can see the material number, name, product variant id, product variant image name, last modified date and time, and product variant image visibility.

If you select the Visibility checkbox, then your product variant images will be shown on the product pages in the Sana webstore.

At the top of the window, you can see the buttons Select All, Unselect All, and Update Visibility which can be useful for quick managing of product variant image visibility.

For more information, see Product Variants.

How Product Images in SAP Are Linked to Products in Sana?

Step 1: When images are added to the materials in SAP, run the Product import task in Sana Admin. Open Sana Admin and click: System > Scheduled tasks.

The Product import task retrieves material information from the database to build or update the catalog of your webstore.

Step 2: When the Product import task is completed, start the Product image import task.

NOTE

Before running the task make sure that it is configured. Click Edit on the Product image import task and enable the setting Import product images from ERP. In the Separator field, enter the symbol that will be used to separate product image information in the product image filename, like item number and order number.

The Product image import task will retrieve all product images from SAP, rename them according to the image file name format supported by the Sana webstore, and save all images to the ProductImages directory of the Sana Commerce solution on the Web server.

Then, the Product image import task will automatically resize all product images from the ProductImages folder and put them according to the size to the Small, Medium and Large folders. This is done because product images of three different sizes are used in the Sana webstore.

For more information about product image and image sizes, see Product Images.

When the Product image import task is completed, product images from SAP will be shown in the Sana webstore.