Workflow Status Reports via the Internet

Use

Employees in your enterprise who do not work on the premises or who are often away on business trips cannot always get direct access to the SAP System. As a result, these employees are often isolated from the information processes within the enterprise, which affect them.

SAP now offers your employees the opportunity to perform selected parts of workflow reporting via the Internet:

  • Individual item of information: Display of all work items that are linked to a particular object.

  • Business processes: Display of all work items that are linked to a particular object type.

  • Decisions: Display of completed work items for a particular task. (In this case, work items for the user decision in the WWW scenario purchase requisition release).

For demonstration purposes, the Easy Web Transaction workflow status reports is configured so that the evaluations described above refer to the object type purchase requisition ( BUS2009) and its objects. But the Easy Web Transaction can easily be configured for other object types as well. This documentation contains the relevant information.

An employee can access the workflow information they require from any Internet connection. It is no longer necessary to install the SAP front end component and set up a connection to the SAP System.

This helps your external employees who are often off the premises. The worldwide availability of the Internet also means access to the SAP System at all times, without having to set up a time-limited connection to the "home" SAP System via the telephone network.

There are also advantages for your internal employees who do not use any SAP functions other than querying status reports. The user interface of an Internet browser is often the familiar user interface to these users. They now no longer have to exit this to use workflow functions.

Prerequisites

Basic knowledge of SAP Business Workflow is required. For more information, see the documentation SAP Business Workflow.

Authorizations/Security

The reports that are executed via the Internet are each assigned to an authorization group:

  • Authorization group SWI_WLA: Decisions: Purchase requisition releases/rejections

  • Authorization group SWI_OA: Individual item of information: Status of a purchase requisition, business processes: BANF Approval procedure

To be able to start a report a user must have the authorization to execute reports from the relevant authorization group.

This authorization belongs to the authorization object S_PROGRAM ( ABAP: Program procedural check), for which the following errors are used:

  • SUBMIT in the field User action ABAP program.

  • The relevant authorization group in the field Authorization group ABAP program.

The following authorizations for the authorization object S_PROGRAM ( ABAP: Program procedural checks) are already prepared accordingly:

Authorization

Meaning

S_WF_INF_OA

Select work items for a business object

"SUBMIT authorization" for reports from the authorization group SWI_OA

S_WF_INF_WLA

Execute workload analysis

"SUBMIT authorization" for reports from the authorization group SWI_WLA

Include the above authorizations into the authorization profile of the employee who is to execute the SAP Business Workflow selection reports via the Internet.

Standard Settings and Default Data

The following reports are executed via the Internet in the SAP System for the purchase requisition example:

  • Individual item of information: Display of work items that are linked to a particular purchase requisition.

    Report RMW3OINS ( individual item of information: Status of a purchase requisition )

  • Business processes: Display of work items that are linked to the object type purchase requisition ( BUS2009).

    Report RMW3OTYP ( business processes: Purchase requisition procedure )

  • Decision: Display of (Completed Workitems).

    Report RMW3DONE (Decisions: Purchase requisition releases/rejections)

Features

Adjustment options

In the supplied reports RMW3OINS ( individual item of information: Status of a purchase requisition), RMW3OTYP (business processes: Purchase requisition approval procedure), and RMW3DONE ( decisions: Purchase requisition releases/rejections), the reference to the object type BUS2009 and to the decision task are already predefined in the source text. These reports should be seen as templates for the reports that you must program to extend and adapt the Easy Web Transaction to meet your requirements.

Copy the relevant report and make the following changes:

  • Copy of report RMW3OINS ( individual item of information):

    In the data declaration section, replace the object type BUS2009 with the object type of your choice (line 6) and declare the key fields of this object type as PARAMETERS (lines 3 and 4).

    If there is more than one key field, collect the key fields in the variable OBJKEY (line 9).

  • Copy of report RMW3OTYP ( business processes):

    In the data declaration section, replace the object type BUS2009 with the object type of your choice (line 5).

  • Copy of report RMW3DONE ( decisions):

    In the SUBMIT call of the encapsulated report, replace the task TS40007902 with a task of your choice (line 14).

Note that many of the texts that appear on the user interface are text elements belonging to the report RMW3OINS.

All reports have a modular structure and each calls a report that executes the actual database selection. Do not change these reports!

Settings in the SAP Web Repository

Create your own HTML templates in the SAP Web Repository (transaction SMW0) in your SAP System. Use the HTML templates WORKFLOW_STATUS_F* as models. These can be selected via package ME.

Service name

The service name of this Easy Web Transaction is SWRP. You can find the relevant data under this service name.

Adapting the templates

You must also adapt the templates that are stored on your Web server in the directory itsmnt\templates\swrp (= service name).