Inicio del área de contenido

Procedimiento Creating Service Files With the Service Wizard Localizar documento en árbol de navegación

Use

You use this procedure to create service files with the service wizard.

Nota

If you are developing screen-dependent applications based on Web Transactions, it is best to create service files with the service wizard, but you can also create service files manually.

If you are developing screen-independent applications based on ITS Flow Logic, you must create service files manually.

Prerequisites

There must be a user in the R/3 System which your service is using.

Procedure

To create a service file using the service wizard:

  1. Choose File ® New and select the File Wizards tab.
  1. Select Service Wizard.
  2. Este gráfico es explicado en el texto respectivo

  3. Ensure that Add to Project is selected, and that the project directory name is correct.
  4. Choose OK.
  1. Enter a service name, and choose Next.

Este gráfico es explicado en el texto respectivo

The service name can have up to 14 characters. This must be unique and should normally be the same as the corresponding R/3 transaction.

  1. Select an R/3 System to which you are connecting, and choose Next.

Este gráfico es explicado en el texto respectivo

  1. Specify how R/3 logon information is to be determined.

Este gráfico es explicado en el texto respectivo

Logon information includes the client, user name, password, and logon language.

Specify whether you want to use global logon information or define service-specific logon information by selecting the appropriate option:

Option

Procedure

Use global service specification

No action required.

The logon information is taken from the global service file global.srvc at runtime.

Specify a service specific login

Enter service-specific logon information.

You may wish to define a special user with limited authorizations for Web-enabled R/3 dialog transactions. This user must exist in the R/3 System.

Alternatively, you can leave these fields blank and let users enter their own logon information.

Nota

If you define service-specific logon information, remember that the language key must be:

  1. Enter a timeout value and choose Next.

Este gráfico es explicado en el texto respectivo

The timeout value defines the time (in minutes) after which the service terminates if no ITS session activity occurs. This is important in case the user branches to another URL without leaving the ITS session.

  1. Enter the ITS service type and choose Next:

Este gráfico es explicado en el texto respectivo

Specify whether you are calling an R/3 transaction or making WebRFC calls by selecting the appropriate option and entering the required information:

Option

Procedure

Use Web Transaction

Enter the R/3 transaction name.

Use WebRFC

Enter the following information:

  • Destination

R/3 System to which you are connecting.

  • System Type

Target system type. The default is R/3 .

  • RFC Trace

Select this if you want to trace your communication protocol.

  1. Choose Finish to confirm.

Result

The SAP@Web Studio creates a service file called <service>.srvc in the project directory and displays it as <service> in the Workspace – Project View.

You can edit the parameter values specified in the service file with the grid control editor. These values always override the default values in the global service file global.srvc .

The SAP@Web Studio does not automatically create a theme for your new service and the service file does not contain a theme parameter, but the global service file global.srvc initially contains the default theme parameter 99 . At runtime, this setting causes the system to search for HTML templates in a subdirectory called 99 . If the subdirectory does not exist, an error occurs. Therefore, when you create HTML templates for your service, the SAP@Web Studio automatically proposes the default theme 99 .

When you have created a service file, you can create HTML templates.

Fin del área de contenido