Creating
a Customer Master Record in the Internet
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.
Intranet application.
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.
When you work with the Web form for the workflow WS20000102, the following fields can be filled:
Address Data |
|
Form of address |
Selection field |
First name |
Optional |
Last name |
Mandatory field |
Street |
Optional |
Postal code |
Mandatory field |
City |
Mandatory field |
Country |
Selection field |
Language |
Selection field |
Communication Data |
|
1. Telephone number |
Optional |
2. Telephone number |
Optional |
Fax number |
Optional |
E-mail (administrator) |
Optional |
Organizational Data |
|
Sales organization |
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 in the SAP@WebStudio. The existing data in the template only serves as a placeholder.

To define default organizational data, open the HTML template SWU5WS20000102H_150 (service name TS_WS20000102H) in the SAP@WebStudio. The template source text (with comments) is displayed in the right-hand SAP@WebStudio window. The section of the source text in which you can change the organizational data starts after the comment CUSTOMIZING SECTION - BEGIN.
If your sales organization has the value “1234”, for example, enter this value in the template by changing the line after the first PLEASE CHANGE THE VALUE... as follows:
Before: ... "SALESORGANIZATION150150" value = "0001"...
After: ... "SALESORGANIZATION150150" value = "1234"...
You can change the distribution channel, division, and reference customer values in the same way by modifying the next three sections that start with PLEASE CHANGE THE VALUE....
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.
The service names of this Internet Application Component are TS_WS20000102H and TS_TS20000256H. All of the associated files are stored under these service names in the SAP@Web Studio
The following development objects are relevant to this Easy Web Transaction:
|
Workflow |
Task |
Package |
VSSF |
|
Task identifier |
WS20000102 |
TS20000256 |
Web transaction |
TS_WS20000102H |
TS_TS20000256H |
Module pool |
SWU5WS20000102H |
SWU5TS20000256H |
BAPIs |
BAPI_CUSTOMER_CREATEFROMDATA |
|