转 Adding Logo to the Work item preview

Inserting the logo in the Work item preview

from link.
To upload the logo:

1.      Go to transaction SMW0

2.      Select “Binary data for Web RFC applications”.

3.      Execute the transaction (No need to fill any values on the selection screen)

 

4.      Click on “Create”. The following screen appears. Enter the “Obj. Name” and “Descriotion”.
 

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

6.      Your entry is now available in the table control on the screen.
 

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”.

3.      Click on “Demo Function Modules”.
 

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.


 

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.

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.
 

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.

猜你喜欢

转载自sapabap.iteye.com/blog/1859252