SAP ABAP Class CL_NWBC_UTILITY (NWBC - Utility Functions)
Hierarchy
☛
SAP_UI (Software Component) User Interface Technology
⤷
BC-FES-BUS (Application Component) Netweaver Business Client
⤷
SAP_NWBC (Package) NetWeaver Business Client

⤷

⤷

Properties
Class | CL_NWBC_UTILITY | |
Short Description | NWBC - Utility Functions | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SAP_NWBC | NetWeaver Business Client |
Created | 20110707 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_NWBC_UTILITY has no interface implemented.
Friends
Class CL_NWBC_UTILITY has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING | 20120111 | |||
2 | ![]() |
Static Attribute | Private | Type reference (TYPE) | D | 20120111 | |||
3 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING | 20120111 | |||
4 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '=' | Name/Value separator | 20111107 | |
5 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '&' | Parameter separator | 20111107 | |
6 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '?' | Query/paeamaters separator | 20111107 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Method | Executes HTML Escaping on a attribute string | 20111202 |
2 | ![]() |
Static method | Public | Method | Executes HTML Escaping on a String | 20110707 |
3 | ![]() |
Static method | Public | Method | Executes Javascript Escaping on String | 20110707 |
4 | ![]() |
Static method | Public | Method | Escapes a JSON String | 20111103 |
5 | ![]() |
Static method | Public | Method | Executes URL Escaping on a String | 20110707 |
6 | ![]() |
Static method | Public | Method | Encodes a List of Fields as a Query String | 20110707 |
7 | ![]() |
Static method | Public | Method | Returns ABAP_BOOL representation of value | 20130314 |
8 | ![]() |
Static method | Public | Method | Get HTTP formatted date | 20120111 |
9 | ![]() |
Static method | Public | Method | Decodes a Query String into a List of Fields | 20130314 |
10 | ![]() |
Static method | Public | Method | Decodes a Query String into a List of Fields | 20110707 |
11 | ![]() |
Static method | Public | Method | Pair function to ESCAPE_URL for decoding of url | 20111124 |
Events
Class CL_NWBC_UTILITY has no event.
Types
Class CL_NWBC_UTILITY has no local type.
Method Signatures
Method ESCAPE_ATTRIBUTE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20111202 | ||
2 | ![]() |
RV_ESCAPED | Value transfer | Type reference (TYPE) | STRING | HTML-Encoded attribute string | 20111202 |
Method ESCAPE_ATTRIBUTE on class CL_NWBC_UTILITY has no exception.
Method ESCAPE_HTML Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20110707 | ||
2 | ![]() |
RV_ESCAPED | Value transfer | Type reference (TYPE) | STRING | HTML-Encoded String | 20110707 |
Method ESCAPE_HTML on class CL_NWBC_UTILITY has no exception.
Method ESCAPE_JAVASCRIPT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | 20110707 | |||
2 | ![]() |
RV_ESCAPED | Value transfer | Type reference (TYPE) | STRING | 20110707 |
Method ESCAPE_JAVASCRIPT on class CL_NWBC_UTILITY has no exception.
Method ESCAPE_JSON_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CV_STRING | Call by reference | Type reference (TYPE) | STRING | 20111103 |
Method ESCAPE_JSON_STRING on class CL_NWBC_UTILITY has no exception.
Method ESCAPE_URL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20110707 | ||
2 | ![]() |
RV_ESCAPED | Value transfer | Type reference (TYPE) | STRING | URL-Encoded String | 20110707 |
Method ESCAPE_URL on class CL_NWBC_UTILITY has no exception.
Method FIELDS_TO_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Table with Name/Value Pairs | 20110707 | ||
2 | ![]() |
IV_ENCODE_NAMES | Call by reference | Type reference (TYPE) | BOOLE_D | ABAP_TRUE | Encode not only values but also names | 20140811 | |
3 | ![]() |
IV_QUERY | Call by reference | Type reference (TYPE) | STRING | Existing Query String to append | 20121219 | ||
4 | ![]() |
RV_STRING | Value transfer | Type reference (TYPE) | STRING | Query String | 20110707 |
Method FIELDS_TO_STRING on class CL_NWBC_UTILITY has no exception.
Method GET_BOOL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | String with some value representing boolean as X, YES, ON... | 20130314 | ||
2 | ![]() |
RV_BOOL | Value transfer | Type reference (TYPE) | ABAP_BOOL | Interpreted result | 20130314 |
Method GET_BOOL on class CL_NWBC_UTILITY has no exception.
Method GET_HTTP_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20120123 | ||
2 | ![]() |
RV_DATE | Value transfer | Type reference (TYPE) | STRING | 20120111 |
Method GET_HTTP_DATE on class CL_NWBC_UTILITY has no exception.
Method SPLIT_VALUE_PAIRS_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Table with Name/Value Pairs | 20130314 | ||
2 | ![]() |
IV_CASE_SENSITIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Controls if values shall be convertzed to upper case | 20130314 | |
3 | ![]() |
IV_CONDENSE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Controls if spaces in name vlaues shall be trimmed | 20130314 | |
4 | ![]() |
IV_DECODE_NAMES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Decode not only values but also names | 20130314 | |
5 | ![]() |
IV_DECODE_VALUES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Decode values | 20130314 | |
6 | ![]() |
IV_NAME_VALUE_SEPARATOR | Call by reference | Type reference (TYPE) | CSEQUENCE | '=' | Name / Value separator symbol | 20130314 | |
7 | ![]() |
IV_PAIR_SEPARATOR | Call by reference | Type reference (TYPE) | CSEQUENCE | '&' | Pairs separator symbol | 20130314 | |
8 | ![]() |
IV_STRING | Call by reference | Type reference (TYPE) | STRING | Encoded Query String | 20130314 | ||
9 | ![]() |
IV_UNIQUE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Controls if name duplicates shall be removed | 20130314 |
Method SPLIT_VALUE_PAIRS_STRING on class CL_NWBC_UTILITY has no exception.
Method STRING_TO_FIELDS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Table with Name/Value Pairs | 20110707 | ||
2 | ![]() |
IV_DECODE_NAMES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Decode not only values but also names | 20120420 | |
3 | ![]() |
IV_STRING | Call by reference | Type reference (TYPE) | STRING | Encoded Query String | 20110707 |
Method STRING_TO_FIELDS on class CL_NWBC_UTILITY has no exception.
Method UNESCAPE_URL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_ESCAPED | Call by reference | Type reference (TYPE) | STRING | URL-Encoded String | 20111125 | ||
2 | ![]() |
RV_UNESCAPED | Value transfer | Type reference (TYPE) | STRING | Decoded string | 20111125 |
Method UNESCAPE_URL on class CL_NWBC_UTILITY has no exception.
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 731 |