---
title: "转 Adding Logo to the Work item preview"
author: "evangxli"
date: "2013-05-28T13:08:43Z"
tags: []
categories: ["行业应用"]
slug: "adding-logo-to-the-work-item-preview"
draft: false
lastmod: "2013-05-28T13:31:09Z"
id: 1859252
url: "https://sapabap.iteye.com/blog/1859252"
---

**Inserting the logo in the Work item preview**

from [link](http://www.saptechnical.com/).  
To upload the logo:

1.      Go to transaction SMW0

2.      Select “Binary data for Web RFC applications”.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe1.jpg)

3.      Execute the transaction (No need to fill any values on the selection screen)  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe2.jpg)  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe3.jpg) 

4.      Click on “Create”. The following screen appears. Enter the “Obj. Name” and “Descriotion”.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe4.jpg) 

5.      Click on “import”. Select your company logo.

6.      Your entry is now available in the table control on the screen.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe5.jpg) 

**Embedding this logo in the Work item preview** 

1.      Create a workflow definition with a simple step “User decision”.

2.      Now in the step “User decision”, go to tab “Work item display”.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe6.jpg)

3.      Click on “Demo Function Modules”.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe7.jpg) 

The function modules shown above need to be used as a template for defining the  logo as per the requirement. Using the function module “SWL0\_PREVIEW\_DEMO\_GIF\_ONLY”, we can only display the logo of the company. Using “SWL0\_PREVIEW\_DEMO\_TEXT\_AND\_GIF”, we can display both logo and our own text below the logo. The FM “SWL0\_PREVIEW\_DEMO\_TEXT\_ONLY” is used to display custom text only. For our demo purpose, we would use the FM “SWL0\_PREVIEW\_DEMO\_TEXT\_AND\_GIF”.

5.      Copy the function module “SWL0\_PREVIEW\_DEMO\_TEXT\_AND\_GIF” to a ‘Z’ function module.

![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe8.jpg)  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe9.jpg) 

6.      Now change value of “e\_info-gif-id” to the object-id created in “SMW0” (Logo id) and “e\_info-dialogtext” to the custom text we require.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe10.jpg)

Save and activate the function module.

7.      Now in the workflow builder and in the tab “Work item display”, mention the name of the ‘Z’ function module created earlier.  
![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe11.jpg) 

8.      Execute your workflow definition. In your SAP inbox, you can see the logo and the custom text in the preview pane of the work item.

![](http://www.saptechnical.com/Tutorials/Workflow/LogoPreview/Previe12.jpg)