Creating a Customer Master Record in the Internet

Use

This Easy Web Transaction demonstrates how the workflow functions are integrated in the Web. This is illustrated by creating a customer master record. After a workflow has been started with a Web form (create customer master record), a work item is generated (check creation) which, in turn, is processed with a Web form.

Unlike other Easy Web Transactions, two independent services are required here and must be developed separately. The first service starts a workflow, while the second executes a work item. Using both services in one workflow is simply one option here and is not mandatory.

You can use the Easy Web Transaction for training purposes or as a template to create your own Easy Web Transactions. This Easy Web Transaction only represents a simplified version of the Create customer master record function. First, the Web form that starts the workflow does not contain all of the options you can use to create a customer. Secondly, the flow logic of the workflow is extremely basic.

Type of Internet Application Component

Intranet application.

Prerequisites

To allow the workflow WS20000102 to be started on your system and the task TS20000256 to be executed, you should declare both as a general task. In this way, you can ensure that everyone can start the workflow. Since the (default) agent responsible for the task TS20000256 is the workflow initiator, the person who entered the data is automatically the person who checks it. This allows a user to work through this scenario with only one user logged on to the system.

Standard Settings and Default Data

When you work with the Web form for the workflow WS20000102, the following fields can be filled:

Address Data

Form of address

Choice Field

First name

Optional

Last name

Mandatory field

Street

Optional

Zip/Postal Code

Mandatory field

City

Mandatory field

Country

Choice Field

Language

Choice Field

Communication Data

1. Telephone Number

Optional

2. Telephone Number

Optional

Fax Number

Optional

E-mail (administrator)

Optional

Organizational Data

Sales organisation

Must be preassigned

Distribution Channel

Must be preassigned

Division

Must be preassigned

Reference customer

Must be preassigned

You have to define a preassigned value for the sales organization, distribution channel, division, and reference customer fields. To do so, you must enter your company-specific data in the HTML template SWU5WS20000102H_150. The existing data in the template only serves as a placeholder.

Features

Adjustment options

First, the flow logic of the workflow can be extended. In this way, a rejected customer master record could be returned to its creator for resubmission. In this case, the existing workflow must be copied. Secondly, the Web form that starts the workflow can be extended to include the input options that are also available for creating a new customer master record but were not included in this Easy Web Transaction.

For more information on controlling workflows with Web forms, see Web Form Integration.

Service name

The service names of this Internet Application Component are TS_WS20000102H and TS_TS20000256H. You can find the relevant data under these service names.

Development objects

The following development objects are relevant to this Easy Web Transaction:

Workflow

Task

Package

VSSF

Task ID

WS20000102

TS20000256

Web transaction

TS_WS20000102H

TS_TS20000256H

Module pool

SWU5WS20000102H

SWU5TS20000256H

BAPIs

BAPI_CUSTOMER_CREATEFROMDATA