Symptom
SAP Knowledge Base Article - Public. 2677921-Not able to upload.gif format image for questions and answers. Click the last icon, 'Upload image'. Upload Photos/images into custom table & Print in Adobe form. By Saikumar B, HCL Technologies. This document explains how to upload images into custom tables and display the images in adobe form. Create a Table with two fields. Create a Structure. Create a table type. Type the transaction code SFP in your command box. Step 2: Sending Image data to SAP using OData.request put method. In SAP /IWBEP/IFMGWAPPLSRVRUNTIMEUPDATESTREAM class method I am only receiving ISMEDIARESOURCE-mimetype I am not able to get ISMEDIARESOURCE-value. Uploading image to SAP using SMW0 transaction; Own text on SAPGui logon screen; Open SAP Notes on Windows via Batch File; Honey 2010 (5) July (5). Procedure From the Toolbox tab, drag the Image object to the report and then double-click it. In the Image URL dialog box, type the URL of the image to insert or click Browse to go to the location containing the image. To browse images on a Web server, you must enable Web-based Distributed Authoring and Versioning (WebDAV) on your Web server.
- After selecting a .gif image to attach to a Question, a warning message appears:
- 'The file type *.gif is not supported. Choose one of the following types *.png.*.jpg,*.jpeg'
- In System Admin > Configuration > System Configuration > Attachment configuration file, gif format files has been included:
- supportedAttachmentTypes[gif]=true
Environment
SAP SuccessFactors Learning Management System (LMS)
Upload Image To Salesforce
Reproducing the Issue
- Logon to LMS Admin
- Navigate to Content > Question Library
- Search for any existing Question (or create a new Question)
- Enter question edit page and click the text area of question or answer choice to display the editing toolbar
- Click the last icon, 'Upload image'
- Select a gif image from your computer
- A warning message pop-up says:
'The file type *.gif is not supported. Choose one of the following types *.png.*.jpg,*.jpeg'
Cause
Evinrude diagnostic tool. Starting in release 1708, the LMS no longer supports .gif image types in Assignment Builder
Resolution
- Assessment Builder supports the following image types for Questions and Answers:
- .png, .jpg, .jpeg
- Consider converting the .gif to a supported image format
- Or raise an Enhancement Request for Product Management to consider re-adding support for .gif image types (See KBA 2090228 for information on ERs)
Keywords
SF SuccessFactors LMS Learning Assessment Builder Assess Question Answer image picture photo gif attach upload warning error , KBA , LOD-SF-LMS-ASB , Assessment Builder , Problem
Product
Skip to end of metadataGo to start of metadataLink to Content's target Space :
Upload Image In Sap Abap Tcode
Applies to:
CRM 6.0/7.0
Summary
Uploading documents as attachments using cl_crm_documents class and displaying images in web ui screen.
Author(s):
Company:
Created on: May'15 2010
Author(s) Bio
Arun Kumar is a CRM developer working with Accenture.
This wiki explains how to upload documents & images using cl_crm_documents class and display images in web ui screen. The standard attachments tab lists the uploaded documents & images as individual links and the images are opened in a new window. This wiki also covers how to populate images in the standard web ui screen.
Create a component in transaction BSP_WD_CMPWB and add a view with view type 'Form View' or 'Empty View'. In this wiki its just an empty view without any context nodes.
The view layout is enhanced with a fileupload tag to upload images and an image tag to display images.
The upload event triggers the server event EH_ONUPLOAD in controller class.
Event EH_ONUPLOAD:
The method gets triggered when user selects the file path and clicks Upload button.
The importing parameter htmlb_event_ex has reference to thtmlb:fileUpload tag. Assign htmlb_event_ex to reference variable lr_file of type ref to cl_htmlb_fileupload.
Extract filename and file extension from file path using function module 'CRM_KW_SPLIT_FILENAME'
Assign business object so that the file can be accessed from the specified business object location. Since the business object type is USER and instance identifier is sy-uname, the uploaded document can be accessed via transaction crm_kw.
The entire file content is stored as an xstring in lr_file->file_content. Since we use method create_with_table of cl_crm_documents class, the content is split into 1022 characters and inserted into an internal table.
Upload Image Sapui5
Now, is the final step. Upload the document to the system using CREATE_WITH_TABLE method from class CL_CRM_DOCUMENTS.The method returns the logical and physical id's of the document location.
Now, the image is uploaded to the system. But in order to display the image we need to get the document location as a URL. It can be done by passing the logical and physical id's of the document to method GET_WITH_URL of class CL_CRM_DOCUMENTS.
The URL is assigned to public static variable gv_url.
In the layout the image location is passed through this variable <%= controller->gv_url. %>.
Screenshot:
Coding:
Layout Coding:
Method EH_ONUPLOAD:
Quicktimempeg2 dmg installer file. Useful Information
Uploading documents and displaying images in web ui using CL_CRM_DOCUMENTS class.