Show TOC

Periodical TasksLocate this document in the navigation structure

Use

Periodical tasks that needs to be performed frequently in order to ensure that the software runs smoothly with optimal performance.

In the context of SAP Gateway some cleanup jobs might be necessary on the SAP Gateway hub system. You can find the relevant activities in the Implementation Guide (IMG): In transaction SPRO open the SAP Reference IMG and navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step OData Channel Next navigation step Administration Next navigation step Cache Settings End of the navigation path.

The tasks need to be performed in regular intervals. The frequency specified depends on the load in your system and therefore may vary. A periodical cleanup is recommended to avoid a waste of disk and memory space. You might consider a frequency of once a week.

When activating SAP Gateway in your system landscape the following jobs are scheduled automatically:

  • SAP_IWFND_METERING_AGG
  • SAP_IWFND_METERING_DEL

These jobs are newly created if they are not yet available. Note that these two jobs are only carried out in one client, but they are also doing this for the other clients. This is the client in which SAP Gateway has been activated initially. If SAP Gateway is active in another client, then nothing else is done. If the jobs are not running periodically, the system will need more disk resources than expected. You can make them run again by switching SAP Gateway off and on again in the implementation guide (SPRO). When deactivting SAP Gateway the jobs are deleted automatically, as long as SAP Gateway is not active in another client.

In addition to these automatically scheduled jobs we recommend you schedule job /IWFND/R_SM_CLEANUP which — among others — will help to clean up the Application Log Viewer (/IWFND/CLEANUP_APPSLOG) and the Error Log (/IWFND/SUPPORT_UTILITIES).

There are several cleanup scenarios, for example:

Scenario

Description

/IWFND/CLEANUP_APPSLOG

Clean-up of Application Log

/IWFND/SUPPORT_UTILITIES

Support utilities
/IWFND/DEVICE_MANAGER

Cleanup for Device Manager

/IWFND/DOCUMENT_PUBLISHER

Document Publisher

/IWFND/OIL

OIL - Object ID List

/IWFND/QRC_AUTO

QRC - Query Result Cache - For Scheduler

/IWFND/ROLE_SYNC_ALL

Role Sync Cleanup - All

/IWFND/ROLE_SYNC_CAUTIOUS

Role Sync Cleanup - Cautious Method

Caching is available in the following places:

  • in the SAP Gateway hub system

  • in the client browser (and probably also in the internet proxy)

Note

For development we recommend that caching on the SAP Gateway hub system is disabled.

Cache Settings

The implementation guide (SPRO) has been enhanced with additional activities for cache settings:

In transaction SPRO open the SAP Reference IMG and navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step OData Channel Next navigation step Administration Next navigation step Cache Settings End of the navigation path. Here you can find activities to create cleanup jobs and to manage cleanup jobs.

In the implementation guide for SAP Gateway Service Enablement you can find these activities under Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Service Enablement Next navigation step Backend OData Channel Next navigation step Support Utilities End of the navigation path.

In the activity Create Default Cleanup Jobs three cleanup jobs are created. If the jobs already exist, no extra jobs will be created. The jobs are automatically created to run the next day at 3 am. The following jobs are created:
  • SAP_IWFND_SUP_UTIL_CLN

    This job deletes logs of support utilities, such as error logs, traces and performance logs.

  • SAP_IWFND_APPS_LOG_CLN

    This job deletes SAP Gateway entries from the application log.

  • SAP_IWFND_NOTIF_CLN

    Deletes the SAP Gateway notifications.

Note that for SAP Gateway Service Enablement no jobs are created automatically, because SAP Gateway is not activated in this system. The jobs that have to be created here are the following:
  • SAP_IWBEP_SUP_UTIL_CLN

    This job deletes logs of support utilities, such as error logs, traces and performance logs.

  • SAP_IWBEP_QRL_CLN

    This job deletes the entries of the query result log.

The activity Manage Cleaup Jobs allows you to display and manage the jobs that you have created to clean up the cache and persistency framework in SAP Gateway. This is done via the standard SM37 transaction for jobs.

More Information

For more information on metadata caching, see Metadata Cache.

For information on recommended cache settings per cleanup scenario see the corresponding application documentation.

For information on activating SAP Gateway, see Activating SAP Gateway.