Creating a Customer Master Record on the Internet (BC-BMT-WFM SAPforms) 
Use
This Easy Web Transaction demonstrates how the workflow functionality is integrated in the Web using the
SAPforms interface. 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 possibility 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 Transaction. This Easy Web Transaction only represents a simplified version of the Create customer master record functionality. First of all, 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 system variable _WF_INITIATOR, the person who entered the data is automatically the person who checks it. This allows you to work through this scenario with only one user logged on to the system.
Standard Settings and Preassigned Data
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 |
Required field |
Street |
Optional |
Postal code |
Required field |
City |
Required 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 must define a preassigned value for the sales organization, distribution channel, division, and
reference customer fields. In order 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 coding (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
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... .Features
Options
Firstly, 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, please refer to
Web form integration.Service Name
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 StudioR/3 Development Objects
The following development objects are relevant to this Easy Web Transaction:
|
Workflow |
Task | |
Development class |
VSSF | |
Task identifier |
WS20000102 |
TS20000256 |
Web transaction |
TS_WS20000102H |
TS_TS20000256H |
Module pool |
SWU5WS20000102H |
SWU5TS20000256H |
BAPIs |
BAPI_CUSTOMER_CREATEFROMDATA | |