dynamic columns for business workplace

Post on 21-Oct-2015

138 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

WF

TRANSCRIPT

Dynamic Columns for Business Workplace

Applies to: SAP ECC 6.0 and above

Summary This article will serve as a guide to those people who are little familiar with workflow and want to make use of the dynamic columns display for the work item in the business workplace.

Author: Sivagami Rathinam

Company: Satyam Computer Services Limited

Created on: 18 February 2009

Author Bio Sivagami Rathinam is a Senior Software Engineer working in Satyam. She has been working in Workflow and ABAP.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1

Table of Contents Important Transactions Involved ........................................................................................................................3 Pre-requisites......................................................................................................................................................3 Scenario - Display Move-out document with Move-out date and Partner details in dynamic columns..............3 Steps involved in creation of the workflow:.........................................................................................................4 Configuring Dynamic Columns for Business Workplace ..................................................................................18 Related Content................................................................................................................................................23 Disclaimer and Liability Notice..........................................................................................................................24

Important Transactions Involved The below are some of the transactions used in this scenario:

• Business Object Builder SWO1 – to create Business Objects, their attributes and methods as per the requirement.

• Tasks PFTC – to create tasks for the method of a business object

• Workflow SWDD – to create workflow for the scenario

• Create Event SWUE – to create the event

• Business Workplace SBWP – work items are displayed to the user for execution

• Dynamic Columns for workplace SWL1 – to configure dynamic columns for Business Workplace

Pre-requisites Automatic workflow customizing in SWU3 Tcode which involves mainly

1. RFC destination configuration 2. Prefix number for the workflow (example : 900) 3. WF-BATCH user with SAP-ALL authorization

Scenario - Display Move-out document with Move-out date and Partner details in dynamic columns This example explains how to display dynamic columns for the work item in the SAP Inbox. Here, whenever a move-out document is created, it is sent to a user for display. The work item appears in the inbox of the user with the work item text configured for the task. Then, we are going to configure the dynamic columns display for the values of Move-out date and Partner for the display task. Now the user can see the move-out date and the partner involved even without opening the move-out document. This will help in the process where the approver or the user wants to have a summary of some details at the first look of the work item.

Steps involved in creation of the workflow: 1. Identify the method for display move-out document: In SWO1, give ‘MOVEOUTDOC’ as

Object type and click on display button. Now expand the methods tree and find out the method for display move-out document.

2. Creation of the task for ‘DISPLAY’ method of the object type ‘MOVEOUTDOC’: Go to PFTC Tcode. Give the task name and click on create button. Now provide the other details as shown below and save the task.

3. Create the workflow : Go to SWDD Tcode. Click on create button.

Add the new step as activity for task created above in step 2.

Generate the binding for the task.

Specify the agent type as USER and appropriate user id Z6YSR.

Click on agent assignment and make the task as general.

Save the workflow.

Go to Basic data of the workflow.

Define some description for the workflow.

Now define the starting events for the workflow. Here we have specified MOVEOUTDOC as Object type and CREATED as event.

Generate binding for the start event.

Activate the event linkage for the workflow

Save and activate the workflow.

4. Testing the workflow: Go to SWUE Tcode. Enter the details as below

Object Category: BOR Object Type

Object Type: MOVEOUTDOC

Event : CREATED

Click on and enter the move-out document number.

Click on and enter the mandatory fields if any as shown below (move-out date is mandatory in this scenario).

Click on button. The status message is displayed as below.

Now go to the business workplace of the user receiving the work item using SBWP. We can see the work item generated for the display move-out document.

Click on the change layout as shown below to add the dynamic columns in the display

Add the Dynamic column from the Column Set to the Displayed Columns

Now the two dynamic columns are added to the work item display without any values.

Configuring Dynamic Columns for Business Workplace

Go to SWL1 Tcode. And click on .

Specify the username and the task number of the display activity and press enter.

Click on F4. You can see the container of the task. Select the Container element for Move-out Date and specify a header for this. Also Select the Container element for Business Partner and specify the header for this. Save the entries. We can specify up to six dynamic columns for a single task.

Testing after configuration: Go to the Inbox and update the display of the work item. There won’t be any change in the work item display.

Click on Change Layout.

You can see ‘Move out date’ and ‘Partner’ is added to the Column Set.

Now move these ‘Move out date’ and ‘Partner’ columns to Displayed Columns and remove the already added one having ‘Dynamic Columns’ as header.

You can also save the layout if needed as shown below.

Go to the inbox of the user and update the display. You can see the Move out date and the Partner columns being displayed with values.

Note: the column names will be displayed with the header specified in the configuration SWL1 only when all the work items in the inbox belong to the same task. Otherwise, it will use ‘Dynamic Column’ as the header.

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

top related