SAP ABAP Class CL_URL (URL Generator for different frames in one)
Hierarchy
☛
SAP_UI (Software Component) User Interface Technology
⤷
BC-FES-BUS (Application Component) Netweaver Business Client
⤷
SICF_EXT_SERVICES (Package) SICF Services
⤷
⤷
Properties
| Class | CL_URL | |
| Short Description | URL Generator for different frames in one | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SICF_EXT_SERVICES | SICF Services |
| Created | 20090315 | SAP |
| Last change | 20141120 | |
| 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_URL has no interface implemented.
Friends
Class CL_URL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | See coding | 20101202 | |||||
| 2 | Instance attribute | Private | Type reference (TYPE) | STRING | Computed http://server:port sequence | 20090320 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | T_ICON_TAB | 20111026 | ||||
| 4 | Instance attribute | Private | Type reference (TYPE) | STRING | '' | Additional query string to add onto ITS URLs | 20090315 | ||
| 5 | Instance attribute | Private | Type reference (TYPE) | STRING | '' | ;~sysid=XXX;~instance=NN | 20090318 | ||
| 6 | Constant | Public | Type reference (TYPE) | STRING | '/NWBC/' | 20120810 | |||
| 7 | Constant | Public | Type reference (TYPE) | STRING | '/NWBC_EXTERNAL/' | 20120810 | |||
| 8 | Constant | Public | Type reference (TYPE) | STRING | 'DYNP_OKCODE' | DYNP_OKCODE parameter | 20130314 | ||
| 9 | Constant | Public | Type reference (TYPE) | STRING | '*' | Request ITS to skip selection screen | 20110421 | ||
| 10 | Constant | Public | Type reference (TYPE) | STRING | '~nosplash' | Name of flag controlling splashing string | 20110421 | ||
| 11 | Constant | Public | Type reference (TYPE) | STRING | '~transaction' | Name of ITS transaction parameter | 20110421 | ||
| 12 | Constant | Public | Type reference (TYPE) | STRING | 'WDCONFIGURATIONID' | WebDynpro Configuration parameter | 20121025 | ||
| 13 | Constant | Public | Type reference (TYPE) | STRING | 'sap-wd-configId' | 20130129 | |||
| 14 | Constant | Public | Type reference (TYPE) | STRING | '/sap/bc/gui/sap/its/webgui' | Path to ITS | 20121025 | ||
| 15 | Constant | Public | Type reference (TYPE) | STRING | '/sap/bc/webdynpro' | Path to WebDynpro | 20121025 | ||
| 16 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_HTTP_SERVER | Server object instance | 20131230 | |||
| 17 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | http:// or https:// | 20090321 | ||
| 18 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20120702 | |||
| 19 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Do we have HTTP proxy active? | 20091016 | ||
| 20 | Instance attribute | Private | Type reference (TYPE) | STRING | &sap-accessibility=X | 20090318 | |||
| 21 | Instance attribute | Private | Type reference (TYPE) | STRING | &sap-client=NNN | 20090318 | |||
| 22 | Instance attribute | Private | Type reference (TYPE) | STRING | &sap-language=XX | 20090318 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Construct URL: Business Server Pages | 20090317 | |
| 2 | Instance method | Public | Constructor | CONSTRUCTOR | 20090315 | |
| 3 | Static method | Public | Method | Get the sap-ie parameter according to a wd app & config | 20140212 | |
| 4 | Static method | Public | Method | Extract transaction name from URL | 20121025 | |
| 5 | Static method | Public | Method | Extract WebDynpro Application name and configurationfrom URL | 20121025 | |
| 6 | Instance method | Public | Method | Add http://server:port... | 20090321 | |
| 7 | Instance method | Public | Method | Construct URL: ~Pictogram/name | 20090402 | |
| 8 | Instance method | Public | Method | Construct URL: ITS | 20090315 | |
| 9 | Instance method | Public | Method | Add ?p1=v1&....&sap-* | 20090318 | |
| 10 | Static method | Public | Method | SM59 Alias resolve of "ALIAS" & _RFC & _HTTP(S) | 20091112 | |
| 11 | Instance method | Public | Method | Construct URL: (Hand-coded) URL | 20090317 | |
| 12 | Instance method | Public | Method | Construct URL: Web Dynpro ABAP | 20090316 |
Events
Class CL_URL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | T_ICON | Private | See coding | 20111026 | BEGIN OF t_icon,
icon_alias TYPE char64,
path TYPE string,
END OF t_icon
|
||
| 2 | T_ICON_TAB | Private | See coding | 20111026 | t_icon_tab TYPE SORTED TABLE OF t_icon WITH UNIQUE KEY icon_alias
|
||
| 3 | T_RESOLVED_SM59_ALIAS | Private | See coding | 20101202 | BEGIN OF t_resolved_sm59_alias,
alias TYPE string,
prefer_https TYPE abap_bool,
proxy_active TYPE abap_bool,
require_boe_http TYPE abap_bool,
sm59_destination TYPE t_sm59_destination,
sm59_rfc_destination TYPE t_single_sm59_destination,
sm59_http_destination TYPE t_single_sm59_destination,
sm59_https_destination TYPE t_single_sm59_destination,
END OF t_resolved_sm59_alias
|
||
| 4 | T_SINGLE_SM59_DESTINATION | Public | See coding | 20101202 | BEGIN OF t_single_sm59_destination,
name TYPE rfcdes-rfcdest,
server_name TYPE rfcdisplay-rfchost,
system_id TYPE rfcopt-rfcsysid,
system_number TYPE rfcdisplay-rfcservice,
proxy_host TYPE rfcdisplay-rfcgwhost,
proxy_service_number TYPE rfcdisplay-rfcgwserv,
service_number TYPE rfcdisplay-rfcsysid,
path_prefix TYPE string,
client TYPE rfcdisplay-rfcclient,
ssl_active TYPE rfcdisplay-rfcsnc,
rc TYPE sysubrc,
END OF t_single_sm59_destination
|
||
| 5 | T_SM59_DESTINATION | Public | See coding | 20091112 | BEGIN OF t_sm59_destination,
valid TYPE abap_bool,
name TYPE string,
sm59_name TYPE string,
protocol TYPE string,
server TYPE string,
port TYPE string,
path_prefix TYPE string,
secure TYPE abap_bool,
client TYPE mandt,
url TYPE string, " protocol://server:port
system_id(10) TYPE c, " system id
system_nr(2) TYPE c, " system instance number
END OF t_sm59_destination
|
Method Signatures
Method BSP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADD_MANGLING | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100217 | |||
| 2 | APPLICATION | Call by reference | Type reference (TYPE) | CSEQUENCE | [/namespace/]name[?query_string] | 20090317 | |||
| 3 | GENERATE_ESID | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100217 | |||
| 4 | QUERY_PARMS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Query parameters, appended onto query_string | 20090317 | |||
| 5 | QUERY_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Query string name=value format, already URL encoded | 20090317 | |||
| 6 | SM59_ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | Resolve host via SM59 | 20090317 | |||
| 7 | URL | Value transfer | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090317 |
Method BSP on class CL_URL has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADD_SAP_CLIENT | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | /url?sap-client=sy-mandt | 20090315 | ||
| 2 | ADD_SAP_LANGUAGE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | /url?sap-language=sy-langu | 20090315 | ||
| 3 | FORCE_SAP_ACCESSIBILITY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | /url?sap-accessibility=X | 20090315 | ||
| 4 | ITS_NO_SPLASH | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | /url?~nosplash=1 | 20090315 | ||
| 5 | ITS_SINGLE_TRANSACTION | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | /url?~singletransaction=1 | 20090315 | ||
| 6 | PREFER_SERVER_RELATIVE_URL | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | http://server:port/url | 20090315 | ||
| 7 | PRESERVE_SAP_ACCESSIBILITY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | /url?sap-accessibility=X only if active | 20090315 | ||
| 8 | PROXY_ACTIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | There is HTTP proxy in network | 20091016 | |||
| 9 | SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | 20090321 |
Method CONSTRUCTOR on class CL_URL has no exception.
Method GET_SAP_IE_FOR_WDA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_SAP_IE | Call by reference | Type reference (TYPE) | STRING | 20140212 | ||||
| 2 | IV_APPLICATION | Call by reference | Type reference (TYPE) | STRING | 20140212 | ||||
| 3 | IV_CONFIGURATION | Call by reference | Type reference (TYPE) | STRING | 20140212 |
Method GET_SAP_IE_FOR_WDA on class CL_URL has no exception.
Method GET_TRANSACTION_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_PARAMETERS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Parameters table | 20130314 | |||
| 2 | EV_NAME | Call by reference | Type reference (TYPE) | STRING | Transaction name | 20130314 | |||
| 3 | EV_SKIP_SEL_SCREEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | Section skip flag | 20130314 | |||
| 4 | IV_URL | Call by reference | Type reference (TYPE) | CSEQUENCE | Absolute ITS URL with path and query | 20121025 |
Method GET_TRANSACTION_NAME on class CL_URL has no exception.
Method GET_WDA_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_APPLICATION | Call by reference | Type reference (TYPE) | STRING | WebDynpro Application name and configuration | 20140212 | |||
| 2 | EV_APP_AND_CONFIG | Call by reference | Type reference (TYPE) | STRING | 20140212 | ||||
| 3 | EV_CONFIGURATION | Call by reference | Type reference (TYPE) | STRING | 20140212 | ||||
| 4 | IV_URL | Call by reference | Type reference (TYPE) | CSEQUENCE | Absolute WDA URL with path and query | 20121025 |
Method GET_WDA_NAME on class CL_URL has no exception.
Method HOST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADD_PREFIX | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20120702 | |||
| 2 | ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | '' | Resolve host via SM59 | 20090321 | ||
| 3 | REQUIRE_BOE_HTTP | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | require HTTP connection to BOE Server | 20100715 | ||
| 4 | URL | Call by reference | Type reference (TYPE) | STRING | http(s)://server:port | 20090321 |
Method HOST on class CL_URL has no exception.
Method ICON Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NAME | Call by reference | Type reference (TYPE) | CSEQUENCE | ~Pictogram/name | 20090402 | |||
| 2 | RTL | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20111027 | ||
| 3 | THEME | Call by reference | Type reference (TYPE) | STRING | 20111027 | ||||
| 4 | URL | Value transfer | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090402 |
Method ICON on class CL_URL has no exception.
Method ITS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DYNP_OKCODE | Call by reference | Type reference (TYPE) | CSEQUENCE | DYNP OK Code | 20090315 | |||
| 2 | QUERY_PARMS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Query parameters, appended onto query_string | 20090315 | |||
| 3 | QUERY_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Query string name=value format, already URL encoded | 20090315 | |||
| 4 | SM59_ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | Resolve host via SM59 | 20090315 | |||
| 5 | TRANSACTION | Call by reference | Type reference (TYPE) | CSEQUENCE | Transaction Code | 20090315 | |||
| 6 | URL | Value transfer | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090315 |
Method ITS on class CL_URL has no exception.
Method QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADD_SAP_QUERY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Add sap-* as well | 20090318 | ||
| 2 | QUERY_PARMS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Query parameters, appended onto query_string | 20090318 | |||
| 3 | QUERY_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Query string name=value format, already URL encoded | 20090318 | |||
| 4 | URL | Call by reference | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090318 |
Method QUERY on class CL_URL has no exception.
Method RESOLVE_SM59_ALIAS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | '' | Resolve host via SM59 | 20091112 | ||
| 2 | PREFER_HTTPS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20091112 | |||
| 3 | PROXY_ACTIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20091112 | |||
| 4 | REQUIRE_BOE_HTTP | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | require HTTP connection to BOE Server | 20100715 | ||
| 5 | SM59_DESTINATION | Call by reference | Type reference (TYPE) | T_SM59_DESTINATION | 20091112 | ||||
| 6 | SM59_HTTPS_DESTINATION | Call by reference | Type reference (TYPE) | T_SINGLE_SM59_DESTINATION | 20101202 | ||||
| 7 | SM59_HTTP_DESTINATION | Call by reference | Type reference (TYPE) | T_SINGLE_SM59_DESTINATION | 20101202 | ||||
| 8 | SM59_RFC_DESTINATION | Call by reference | Type reference (TYPE) | T_SINGLE_SM59_DESTINATION | 20101202 |
Method RESOLVE_SM59_ALIAS on class CL_URL has no exception.
Method URL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADD_PREFIX | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20120702 | |||
| 2 | ADD_SAP_QUERY | Value transfer | Type reference (TYPE) | ABAP_BOOL | Append standard SAP params as sap-language etc | 20140212 | |||
| 3 | PATH | Call by reference | Type reference (TYPE) | CSEQUENCE | /path[?query_string] | 20090317 | |||
| 4 | QUERY_PARMS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Query parameters, appended onto query_string | 20090317 | |||
| 5 | QUERY_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Query string name=value format, already URL encoded | 20090317 | |||
| 6 | REQUIRE_BOE_HTTP | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | require HTTP connection to BOE Server | 20100715 | ||
| 7 | SM59_ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | Resolve host via SM59 | 20090317 | |||
| 8 | URL | Value transfer | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090317 |
Method URL on class CL_URL has no exception.
Method WDA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPLICATION | Call by reference | Type reference (TYPE) | CSEQUENCE | [/namespace/]name[?query_string] | 20090316 | |||
| 2 | QUERY_PARMS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Query parameters, appended onto query_string | 20090316 | |||
| 3 | QUERY_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Query string name=value format, already URL encoded | 20090316 | |||
| 4 | SM59_ALIAS | Call by reference | Type reference (TYPE) | CSEQUENCE | Resolve host via SM59 | 20090316 | |||
| 5 | URL | Value transfer | Type reference (TYPE) | STRING | Server relative or absolute URL | 20090316 |
Method WDA on class CL_URL has no exception.
History
| Last changed by/on | SAP | 20141120 |
| SAP Release Created in | 720 |