Generating Service Implementations
Use
To make your service implementation available in the backend system, you must first generate its objects in the corresponding backend system. SIW can generate code in any target system you choose (via adapter). Later, you only need to transport the generated objects to your test and productive systems. You can do this either in the Service Implementation Workbench (transaction SIW) or in the SIW Monitor (transaction SIW_MONITOR). With both transactions, you can generate a single object, several objects, or the whole project. In the SIW Monitor, you can also automate the generation of projects, if these are based on the same configuration. To do so, integrate the report into your background processing.
Prerequisites
You need to have completed the Project Context Data for your project. You need to have confirmed them by choosing the Apply Context pushbutton.
Procedure
To generate your service implementation directly in Service Implementation Workbench (SIW), proceed as follows:
-
Start Service Implementation Workbench.
-
Open the project that you want to generate (see Opening Projects) and double-click the Implementation node of the project.
The system then displays the Project Context Data of the project.
-
Navigate to the Objects tab page to see the Object Preview. In this preview, you can see which objects SIW will generate and what they will look like after generation. This includes the Object Status, information about whether the object is used for more than one project, the Object ID, the related Object Name, the Original Language, and the Object Type.
-
Choose Change mode.
-
Choose the Generate pushbutton. The system then generates all objects of the service implementation in the backend system. If unit tests are available for single objects, there are also run.
-
To check the coding of the generated objects, choose the Check Syntax pushbutton that is displayed below the Object Preview group box. If no errors occur, the system finishes the generation and changes the project status to active (green traffic light).
To generate your service implementation in SIW Monitor, proceed as follows:
-
Start SIW Monitor.
-
Enter the selection criteria for your project (for example, the Project ID) and choose Execute. Then, the system displays all matching projects of the entered criteria in a list.
-
Choose Generate. A dialog box in which you can specify the Generation Scope, the system reactions in case of language conflicts (only relevant for regeneration), and transport options is displayed.
-
Determine the Generation Scope. This can be the Complete Project, Selected Objects, or only those Objects that are not up to date.
-
Specify the Transport Options, which are either to Always ask for transport or Use the existing transport. If you use the Use existing transport option, you must also enter the Transport Request. If you want to transport repository objects or Customizing objects to an SAP system or between different SAP systems, you also need to enter an Alternate Transport Request.
-
Determine how the system should act in case of Transport Conflicts. Choose either Stop Generation if a transport conflict occurs or Use Existing Transport for Generation. In addition to one of the named options, you can activate the Check for Transport Conflicts before Generation checkbox.
-
Choose Generate. The system displays a log. If this log is error-free, choose Execute. Then, the system generates the service implementation in the backend system. It also changes the Project Status to Active.
Result
The system generates the service implementation in the backend system. After generation you should check the objects in the To-Do Browser (see Completing Coding (To-Do Browser)) and complete and activate the coding if required.
To test the service implementation, choose the Go to Proxy pushbutton and use the test function of the SPROXY transaction.