Show TOC

Step 2: Create an ICF ServiceLocate this document in the navigation structure

Use

Once you have successfully completed Step 1: Generate an Internet Service and Templates, you only need to create an ICF service in this second step, which links your Internet service with an HTTP access path.

Note

Instead of creating an ICF service manually, you can also copy one of the services delivered by SAP and then only need to adjust the GUI settings. You can use the example services itsmobile00 and itsmobile01 as guides. These are available in transaction SICF under the following path: /sap/bc/gui/sap/its/test/mobile/.

Prerequisites

Before you generate and test your own ICF services, you should check whether the delivered test services itsmobile00 and itsmobile01 are executable. You can use these services, for example, to check whether it is possible to log on to your SAP Web AS over HTTP and whether an HTTP plug-in/ICMAN has been configured. For more information, see Calling Test Services.

Procedure

To create an ICF service, proceed as follows:

  1. Open transaction SICF and choose a path for your service.

  2. Either create a new service or, as recommended in the note above, copy an ICF service delivered by SAP to the location that you have chosen.

    Use the same name for the service name that you used when creating the Internet service in step 1.

    Example

    Your Internet service in transaction SE80 is called MYTEST and you want the service to be available under the path /test/services. To achieve this, you need to create the nodes /test and /services and the service MYTEST in transaction SICF. The URL is then /test/services/MYTEST.

  3. If you ware working with a copy of an ICF service delivered by SAP, the settings listed below already exist, and you can continue with step 10.

    If you are creating a new service, continue with step 4.

  4. Double-click your ICF service to open the ICF service configuration.

  5. On the Handler List tab page, enter the ITS handler CL_HTTP_EXT_ITS.

  6. On the Service Data tab page, activate the GUI connection. To do this, select Yes from the drop-down list for the associated field.

  7. On the same tab page, choose GUI Configuration and make the following GUI configuration entries:

    Parameter

    Value

    Details

    ~ITSMOBILE

    1

    Defines the service as a mobile service and sets the corresponding ITS standards.

    ~TRANSACTION

    <your transaction>

    Specifies the transaction to be executed.

    ~THEME

    <your theme>

    (for example, 99)

    Specifies the desired theme for your service.

  8. Set the login class CL_MOBILE_SYSTEM_LOGIN for the service. This has been specifically designed for the smaller display size of mobile devices. To do this, on the Start of the navigation path Error Pages Next navigation step Logon Errors End of the navigation path tab page, activate the System Logon option and choose Configuration. Ensure that in the Settings Selection subwindow, the option Define Service-Specific Settings is activated. In the Logon Layout and Procedure subwindow, then choose the User-Specific option and enter the class CL_MOBILE_SYSTEM_LOGIN.

  9. Save your entries and return to the Maintain Services screen.

  10. Activate the service using the context menu.

  11. Then, from the same context menu, choose Test Service.

    The browser should start with your service.

Result

You have created an ICF service that links the Internet service that you created in Step 1 with an HTTP access path. You can now call your Internet service using the browser of the mobile device.

That HTML templates generated with steps 1 and 2 are based on two standard services delivered by SAP (ITSMOBILE and ITSGENMOBILE).

If the templates generated by the standard services do not fulfill your requirements, you can adjust them. For more information, see Step 3 (optional): Make Manual Adjustments.