Configuring Idempotent Web Services

Context

You use this procedure to set how long the system stores saved response messages or saved information about responses that have been sent. An initialization process takes you through the steps the first time you make these settings.

The initialization process incorporates the following steps:

  • The system creates several database objects that are necessary for saving response messages.

  • The system schedules the following background jobs for the regular deletion of saved response messages and message IDs:

    • SAP_BC_IDP_WS_SWITCH_BD

    • SAP_BC_IDP_WS_SWITCH_BDID

To ensure, for performance reasons, that the responses or the information about sent responses are deleted as soon as possible after the desired period, the system uses table pairs:

  • Two tables per client for response messages

  • Two tables per client for information about response messages that have been sent

The two tables are filled alternately. When changing from the first table to the second table, the data in the first table is kept, but the data from the second table is deleted before the system adds new content. You decide how often the background jobs change tables using the procedure described here. This results in a minimum storage duration for the data.

Procedure

  1. Start transaction WSIDPADMIN.
  2. In the Document area, enter the minimum storage period for response messages. In addition, enter how often the tables must be changed.
  3. In the Document ID area, enter the minimum storage period for information about response messages that have already been sent. In addition, enter how often the Document ID tables must be changed. We recommend you choose a longer time interval than you did for the response messages. Note that a repeated request message results in an error if the corresponding response message has already been deleted but the information about the sent response message is still available.
  4. Execute the transaction by choosing Schedule or pressing F8.
  5. Repeat the settings in every client in which you want to call Web Services.

Example

You use a time period of two hours for changing the document tables. This means that response messages are stored for at least two hours but at most for just less than four hours.

You use a time period of one day for changing the document ID tables. This means that information about sent response messages is stored for a maximum of just less than two days.