SAP ABAP Class /IWBEP/CL_IDP_UTIL (Utility for Idempotent (Exactly-Once) behavior)
Hierarchy
☛
SAP_GWFND (Software Component) SAP Gateway Foundation
⤷
OPU-BSE-SDE (Application Component) Gateway SAP Data Enablement
⤷
/IWBEP/COS_IDP (Package) Gateway - Common Services - Idempotent Support
⤷
⤷
Properties
| Class | /IWBEP/CL_IDP_UTIL | |
| Short Description | Utility for Idempotent (Exactly-Once) behavior | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | /IWBEP/COS_IDP | Gateway - Common Services - Idempotent Support |
| Created | 20120530 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 3 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class /IWBEP/CL_IDP_UTIL has no interface implemented.
Friends
Class /IWBEP/CL_IDP_UTIL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | /IWBEP/SUP_IW_AGENT | 'Idempotent Util' | Gateway Agent or Component | 20120531 | ||
| 2 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_WS_IDP_HELPER | API Interface for Idempotent WS Service | 20120530 | |||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | /IWBEP/CL_COS_LOGGER | Logger for local AppsLog and CCMS | 20120531 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | TRUE if idempotent behavior is requested by client | 20120530 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Adds the http header field RepeatabilityResult = 'rejected' | 20120604 | |
| 2 | Instance method | Public | Constructor | CONSTRUCTOR | 20120530 | |
| 3 | Instance method | Public | Method | Check if this Request ID has been used for a request before | 20120530 | |
| 4 | Instance method | Public | Method | Check if the OData client has requested Idempotent Behavior | 20120530 | |
| 5 | Instance method | Private | Method | CONSTRUCTOR | 20120531 | |
| 6 | Instance method | Public | Method | Retrieve the result for the Request ID | 20120530 | |
| 7 | Instance method | Public | Method | Store the result for the Request ID | 20120530 |
Events
Class /IWBEP/CL_IDP_UTIL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_LS_RESULT | Private | See coding | Export / Chang fields of CUD ops in /IWBEP/FGR_MGW_CLIENT_IF | 20120530 | BEGIN OF ty_ls_result ,
v_entity_data TYPE xstring,
t_header TYPE tihttpnvp,
t_msg_container TYPE /iwbep/t_message_container,
s_msg_container_h TYPE /iwbep/s_message_container_h,
v_content_format TYPE /iwbep/mgw_content_format,
v_batch_header_size TYPE i,
v_batch_payload TYPE xstring,
END OF ty_ls_result
|
Method Signatures
Method ADJUST_HTTP_HEADER_SUPPORTED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HTTP_PARAMETERS | Call by reference | Type reference (TYPE) | TIHTTPNVP | http header parameter (key / value pair) | 20120604 |
Method ADJUST_HTTP_HEADER_SUPPORTED on class /IWBEP/CL_IDP_UTIL has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_HTTP_HEADER_PARAMETERS | Call by reference | Type reference (TYPE) | /IWBEP/T_MGW_NAME_VALUE_PAIR | Http header parameters - checked for the relevant parameters | 20120530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Idempotent (Exactly-Once) behavior technical exception | 20120531 |
Method HAS_BEEN_PROCESSED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_HAS_BEEN_PROCESSED | Value transfer | Type reference (TYPE) | ABAP_BOOL | TRUE if request was processed before and result is available | 20120530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Idempotent (Exactly-Once) behavior technical exception | 20120601 |
Method IS_IDP_REQUESTED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_IS_IDP_REQUESTED | Value transfer | Type reference (TYPE) | ABAP_BOOL | TRUE if idempotent behavior is requested by client | 20120530 |
Method IS_IDP_REQUESTED on class /IWBEP/CL_IDP_UTIL has no exception.
Method RAISE_LOG_EXCEPTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_HTTP_STATUS_CODE | Call by reference | Type reference (TYPE) | /IWBEP/MGW_HTTP_STATUS_CODE | '412' | http status code, see documentation for constants | 20120618 | ||
| 2 | IV_TEXT_ID | Call by reference | Type reference (TYPE) | SCX_T100KEY | Http header parameters - checked for the relevant parameters | 20120531 | |||
| 3 | IX_PREVIOUS | Call by reference | Object reference (TYPE REF TO) | CX_ROOT | Abstract Superclass for All Global Exceptions | 20120531 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Idempotent (Exactly-Once) behavior technical exception | 20120531 |
Method RETRIEVE_RESULT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_MSG_CONTAINER_H | Call by reference | Type reference (TYPE) | /IWBEP/S_MESSAGE_CONTAINER_H | Header and general information of the Message Container | 20120530 | |||
| 2 | ET_HEADER | Call by reference | Type reference (TYPE) | TIHTTPNVP | HTTP Framework (iHTTP) Table Name/Value Pairs | 20120530 | |||
| 3 | ET_MSG_CONTAINER | Call by reference | Type reference (TYPE) | /IWBEP/T_MESSAGE_CONTAINER | Message Container Data Table | 20120530 | |||
| 4 | EV_BATCH_HEADER_SIZE | Call by reference | Type reference (TYPE) | I | Response Header Size for a CHANGESET | 20120625 | |||
| 5 | EV_BATCH_PAYLOAD | Call by reference | Type reference (TYPE) | XSTRING | Response Payload for a CHANGESET | 20120625 | |||
| 6 | EV_CONTENT_FORMAT | Call by reference | Type reference (TYPE) | /IWBEP/MGW_CONTENT_FORMAT | the format of the response content | 20120530 | |||
| 7 | EV_ENTITY_DATA | Call by reference | Type reference (TYPE) | XSTRING | Data of an entity | 20120530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Idempotent (Exactly-Once) behavior technical exception | 20120601 |
Method STORE_RESULT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_MSG_CONTAINER_H | Call by reference | Type reference (TYPE) | /IWBEP/S_MESSAGE_CONTAINER_H | Message Container Header and general information | 20120530 | |||
| 2 | IT_HEADER | Call by reference | Type reference (TYPE) | TIHTTPNVP | HTTP Framework (iHTTP) Table Name/Value Pairs | 20120530 | |||
| 3 | IT_MSG_CONTAINER | Call by reference | Type reference (TYPE) | /IWBEP/T_MESSAGE_CONTAINER | Message Container Data Table | 20120530 | |||
| 4 | IV_BATCH_HEADER_SIZE | Call by reference | Type reference (TYPE) | I | Response Header Size for a CHANGESET | 20120625 | |||
| 5 | IV_BATCH_PAYLOAD | Call by reference | Type reference (TYPE) | XSTRING | Response Payload for a CHANGESET | 20120625 | |||
| 6 | IV_CONTENT_FORMAT | Call by reference | Type reference (TYPE) | /IWBEP/MGW_CONTENT_FORMAT | the format of the response content | 20120530 | |||
| 7 | IV_ENTITY_DATA | Call by reference | Type reference (TYPE) | XSTRING | Data of an entity | 20120530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Idempotent (Exactly-Once) behavior technical exception | 20120601 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 200 |