SAP GRMG_SEND_HTTP_PING Function Module for Verfügbarkeit einer Seite mit HTTP HEAD überprüfen









GRMG_SEND_HTTP_PING is a standard grmg send http ping SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Verfügbarkeit einer Seite mit HTTP HEAD überprüfen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for grmg send http ping FM, simply by entering the name GRMG_SEND_HTTP_PING into the relevant SAP transaction such as SE37 or SE38.

Function Group: GRMG
Program Name: SAPLGRMG
Main Program: SAPLGRMG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GRMG_SEND_HTTP_PING pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'GRMG_SEND_HTTP_PING'"Verfügbarkeit einer Seite mit HTTP HEAD überprüfen
EXPORTING
* FM_IN_SCENARIO_WA = "
* PROXY_SERVICE = "
* PROXY_LOGON_CLIENT = "R/3-System, Mandantennummer aus Anmeldung
* PROXY_LOGON_USER = "
* PROXY_LOGON_PASSWORD = "
* SSL_CLIENT_ID = "SSL Client-Identität
* USE_BASIC_AUTHENTICATION = "allgemeines flag
* LOGON_CLIENT = "R/3-System, Mandantennummer aus Anmeldung
* LOGON_USER = "
* LOGON_PASSWORD = "
* AVAIL_CODES = "Default: 2++,3++ oder 200,201,203...
* FM_TRACE = "
* CCMSPING_AGENT = "
* GET_RUN_TIME = "allgemeines flag
* GET_OR_HEAD_METHOD = "'GET' oder 'HEAD' um HTTP-Methode auszuwählen
* CHECK_STRING_1 = "String zu suchen in GET-Response
* CHECK_STRING_2 = "String zu suchen in GET-Response
* CHECK_STRING_3 = "String zu suchen in GET-Response
* BROWSER_STRING = "Fake user-agent string - default available
* USE_EXTERNAL_BROWSER = "Use an external browser to process a page
* RECURSION_LIMIT = 0 "Depth of iteration for resolution of HTML tags (IFRAME...)
* FM_CONN_TIMEOUT = "
* HOST = "Name eines Rechners.
* PORT = "Service
* PREFIX = "Text, 255 Zeichen
* URL = "Text, 255 Zeichen
* USE_PROXY_AUTHENTICATION = "allgemeines flag
* PROXY_HOST = "

IMPORTING
FM_OUT_ERROR = "allgemeines flag
FM_OUT_SCEN_ERROR = "

TABLES
FM_IN_PROPERTIES_ITAB = "
FM_CHG_ERROR_ITAB = "
* FM_RESPONSE_HEADERS = "HTTP Framework (iHTTP) Tabelle Name/Wert-Paare
.



IMPORTING Parameters details for GRMG_SEND_HTTP_PING

FM_IN_SCENARIO_WA -

Data type: GRMG_SCENARIOS
Optional: Yes
Call by Reference: Yes

PROXY_SERVICE -

Data type: STRING
Optional: Yes
Call by Reference: Yes

PROXY_LOGON_CLIENT - R/3-System, Mandantennummer aus Anmeldung

Data type: SYMANDT
Optional: Yes
Call by Reference: Yes

PROXY_LOGON_USER -

Data type: STRING
Optional: Yes
Call by Reference: Yes

PROXY_LOGON_PASSWORD -

Data type: STRING
Optional: Yes
Call by Reference: Yes

SSL_CLIENT_ID - SSL Client-Identität

Data type: SSFAPPLSSL
Optional: Yes
Call by Reference: Yes

USE_BASIC_AUTHENTICATION - allgemeines flag

Data type: FLAG
Optional: Yes
Call by Reference: Yes

LOGON_CLIENT - R/3-System, Mandantennummer aus Anmeldung

Data type: SYMANDT
Optional: Yes
Call by Reference: Yes

LOGON_USER -

Data type: STRING
Optional: Yes
Call by Reference: Yes

LOGON_PASSWORD -

Data type: STRING
Optional: Yes
Call by Reference: Yes

AVAIL_CODES - Default: 2++,3++ oder 200,201,203...

Data type: STRING
Optional: Yes
Call by Reference: Yes

FM_TRACE -

Data type: I
Optional: Yes
Call by Reference: Yes

CCMSPING_AGENT -

Data type: STRING
Optional: Yes
Call by Reference: Yes

GET_RUN_TIME - allgemeines flag

Data type: FLAG
Optional: Yes
Call by Reference: Yes

GET_OR_HEAD_METHOD - 'GET' oder 'HEAD' um HTTP-Methode auszuwählen

Data type: STRING
Optional: Yes
Call by Reference: Yes

CHECK_STRING_1 - String zu suchen in GET-Response

Data type: STRING
Optional: Yes
Call by Reference: Yes

CHECK_STRING_2 - String zu suchen in GET-Response

Data type: STRING
Optional: Yes
Call by Reference: Yes

CHECK_STRING_3 - String zu suchen in GET-Response

Data type: STRING
Optional: Yes
Call by Reference: Yes

BROWSER_STRING - Fake user-agent string - default available

Data type: STRING
Optional: Yes
Call by Reference: Yes

USE_EXTERNAL_BROWSER - Use an external browser to process a page

Data type: FLAG
Optional: Yes
Call by Reference: Yes

RECURSION_LIMIT - Depth of iteration for resolution of HTML tags (IFRAME...)

Data type: I
Optional: Yes
Call by Reference: Yes

FM_CONN_TIMEOUT -

Data type: I
Optional: Yes
Call by Reference: Yes

HOST - Name eines Rechners.

Data type: PFEHOSTNAM
Optional: Yes
Call by Reference: Yes

PORT - Service

Data type: MSSERV
Optional: Yes
Call by Reference: Yes

PREFIX - Text, 255 Zeichen

Data type: TEXT255
Optional: Yes
Call by Reference: Yes

URL - Text, 255 Zeichen

Data type: STRING
Optional: Yes
Call by Reference: Yes

USE_PROXY_AUTHENTICATION - allgemeines flag

Data type: FLAG
Optional: Yes
Call by Reference: Yes

PROXY_HOST -

Data type: STRING
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for GRMG_SEND_HTTP_PING

FM_OUT_ERROR - allgemeines flag

Data type: FLAG
Optional: No
Call by Reference: Yes

FM_OUT_SCEN_ERROR -

Data type: GRMG_TYPE_TYPE
Optional: No
Call by Reference: Yes

TABLES Parameters details for GRMG_SEND_HTTP_PING

FM_IN_PROPERTIES_ITAB -

Data type: GRMG_PROPERTIES
Optional: No
Call by Reference: Yes

FM_CHG_ERROR_ITAB -

Data type: GRMG_ERROR_ITAB
Optional: No
Call by Reference: Yes

FM_RESPONSE_HEADERS - HTTP Framework (iHTTP) Tabelle Name/Wert-Paare

Data type: TIHTTPNVP
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for GRMG_SEND_HTTP_PING Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_fm_out_error  TYPE FLAG, "   
lv_fm_in_scenario_wa  TYPE GRMG_SCENARIOS, "   
lt_fm_in_properties_itab  TYPE STANDARD TABLE OF GRMG_PROPERTIES, "   
lv_proxy_service  TYPE STRING, "   
lv_proxy_logon_client  TYPE SYMANDT, "   
lv_proxy_logon_user  TYPE STRING, "   
lv_proxy_logon_password  TYPE STRING, "   
lv_ssl_client_id  TYPE SSFAPPLSSL, "   
lv_use_basic_authentication  TYPE FLAG, "   
lv_logon_client  TYPE SYMANDT, "   
lv_logon_user  TYPE STRING, "   
lv_logon_password  TYPE STRING, "   
lv_avail_codes  TYPE STRING, "   
lv_fm_trace  TYPE I, "   
lt_fm_chg_error_itab  TYPE STANDARD TABLE OF GRMG_ERROR_ITAB, "   
lv_fm_out_scen_error  TYPE GRMG_TYPE_TYPE, "   
lv_ccmsping_agent  TYPE STRING, "   
lv_get_run_time  TYPE FLAG, "   
lv_get_or_head_method  TYPE STRING, "   
lv_check_string_1  TYPE STRING, "   
lv_check_string_2  TYPE STRING, "   
lv_check_string_3  TYPE STRING, "   
lv_browser_string  TYPE STRING, "   
lv_use_external_browser  TYPE FLAG, "   
lv_recursion_limit  TYPE I, "   0
lv_fm_conn_timeout  TYPE I, "   
lt_fm_response_headers  TYPE STANDARD TABLE OF TIHTTPNVP, "   
lv_host  TYPE PFEHOSTNAM, "   
lv_port  TYPE MSSERV, "   
lv_prefix  TYPE TEXT255, "   
lv_url  TYPE STRING, "   
lv_use_proxy_authentication  TYPE FLAG, "   
lv_proxy_host  TYPE STRING. "   

  CALL FUNCTION 'GRMG_SEND_HTTP_PING'  "Verfügbarkeit einer Seite mit HTTP HEAD überprüfen
    EXPORTING
         FM_IN_SCENARIO_WA = lv_fm_in_scenario_wa
         PROXY_SERVICE = lv_proxy_service
         PROXY_LOGON_CLIENT = lv_proxy_logon_client
         PROXY_LOGON_USER = lv_proxy_logon_user
         PROXY_LOGON_PASSWORD = lv_proxy_logon_password
         SSL_CLIENT_ID = lv_ssl_client_id
         USE_BASIC_AUTHENTICATION = lv_use_basic_authentication
         LOGON_CLIENT = lv_logon_client
         LOGON_USER = lv_logon_user
         LOGON_PASSWORD = lv_logon_password
         AVAIL_CODES = lv_avail_codes
         FM_TRACE = lv_fm_trace
         CCMSPING_AGENT = lv_ccmsping_agent
         GET_RUN_TIME = lv_get_run_time
         GET_OR_HEAD_METHOD = lv_get_or_head_method
         CHECK_STRING_1 = lv_check_string_1
         CHECK_STRING_2 = lv_check_string_2
         CHECK_STRING_3 = lv_check_string_3
         BROWSER_STRING = lv_browser_string
         USE_EXTERNAL_BROWSER = lv_use_external_browser
         RECURSION_LIMIT = lv_recursion_limit
         FM_CONN_TIMEOUT = lv_fm_conn_timeout
         HOST = lv_host
         PORT = lv_port
         PREFIX = lv_prefix
         URL = lv_url
         USE_PROXY_AUTHENTICATION = lv_use_proxy_authentication
         PROXY_HOST = lv_proxy_host
    IMPORTING
         FM_OUT_ERROR = lv_fm_out_error
         FM_OUT_SCEN_ERROR = lv_fm_out_scen_error
    TABLES
         FM_IN_PROPERTIES_ITAB = lt_fm_in_properties_itab
         FM_CHG_ERROR_ITAB = lt_fm_chg_error_itab
         FM_RESPONSE_HEADERS = lt_fm_response_headers
. " GRMG_SEND_HTTP_PING




ABAP code using 7.40 inline data declarations to call FM GRMG_SEND_HTTP_PING

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!