SAP GRMG_SEND_HTTP_REQUEST Function Module for GRMG: Send HTTP Request









GRMG_SEND_HTTP_REQUEST is a standard grmg send http request SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for GRMG: Send HTTP Request 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 request FM, simply by entering the name GRMG_SEND_HTTP_REQUEST 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_REQUEST 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_REQUEST'"GRMG: Send HTTP Request
EXPORTING
FM_IN_SCENARIO_WA = "GRMG: Table for scenario descriptions
* 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 = "
* CCMSPING_AGENT = "
* FM_TRACE = "GRMG: SelfMonitoring-Trace
* AVAIL_CODES = "
* GET_RUN_TIME = "allgemeines flag
* FM_CONN_TIMEOUT = "GRMG: Timeout when no response
* 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 = "General flag
FM_OUT_SCEN_ERROR = "GRMG: Type for type

TABLES
FM_IN_PROPERTIES_ITAB = "GRMG: Table for Scenarios
FM_OUT_RESPONSE_BODY_ITAB = "GRMG: Table type for response table
FM_OUT_RESPONSE_HEADERS_ITAB = "GRMG: Table type for response table
FM_CHG_ERROR_ITAB = "GRMG: Table type for error log
* FM_RESPONSE_HEADERS = "GRMG: HTTP Response Headers
.



IMPORTING Parameters details for GRMG_SEND_HTTP_REQUEST

FM_IN_SCENARIO_WA - GRMG: Table for scenario descriptions

Data type: GRMG_SCENARIOS
Optional: No
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

CCMSPING_AGENT -

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

FM_TRACE - GRMG: SelfMonitoring-Trace

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

AVAIL_CODES -

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

GET_RUN_TIME - allgemeines flag

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

FM_CONN_TIMEOUT - GRMG: Timeout when no response

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_REQUEST

FM_OUT_ERROR - General flag

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

FM_OUT_SCEN_ERROR - GRMG: Type for type

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

TABLES Parameters details for GRMG_SEND_HTTP_REQUEST

FM_IN_PROPERTIES_ITAB - GRMG: Table for Scenarios

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

FM_OUT_RESPONSE_BODY_ITAB - GRMG: Table type for response table

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

FM_OUT_RESPONSE_HEADERS_ITAB - GRMG: Table type for response table

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

FM_CHG_ERROR_ITAB - GRMG: Table type for error log

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

FM_RESPONSE_HEADERS - GRMG: HTTP Response Headers

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

Copy and paste ABAP code example for GRMG_SEND_HTTP_REQUEST 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_ccmsping_agent  TYPE STRING, "   
lv_fm_trace  TYPE I, "   
lv_fm_out_scen_error  TYPE GRMG_TYPE_TYPE, "   
lt_fm_out_response_body_itab  TYPE STANDARD TABLE OF GRMG_RESPONSE_ITAB, "   
lv_avail_codes  TYPE STRING, "   
lv_get_run_time  TYPE FLAG, "   
lv_fm_conn_timeout  TYPE I, "   
lt_fm_out_response_headers_itab  TYPE STANDARD TABLE OF GRMG_RESPONSE_ITAB, "   
lv_host  TYPE PFEHOSTNAM, "   
lt_fm_chg_error_itab  TYPE STANDARD TABLE OF GRMG_ERROR_ITAB, "   
lv_port  TYPE MSSERV, "   
lt_fm_response_headers  TYPE STANDARD TABLE OF TIHTTPNVP, "   
lv_prefix  TYPE TEXT255, "   
lv_url  TYPE STRING, "   
lv_use_proxy_authentication  TYPE FLAG, "   
lv_proxy_host  TYPE STRING. "   

  CALL FUNCTION 'GRMG_SEND_HTTP_REQUEST'  "GRMG: Send HTTP Request
    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
         CCMSPING_AGENT = lv_ccmsping_agent
         FM_TRACE = lv_fm_trace
         AVAIL_CODES = lv_avail_codes
         GET_RUN_TIME = lv_get_run_time
         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_OUT_RESPONSE_BODY_ITAB = lt_fm_out_response_body_itab
         FM_OUT_RESPONSE_HEADERS_ITAB = lt_fm_out_response_headers_itab
         FM_CHG_ERROR_ITAB = lt_fm_chg_error_itab
         FM_RESPONSE_HEADERS = lt_fm_response_headers
. " GRMG_SEND_HTTP_REQUEST




ABAP code using 7.40 inline data declarations to call FM GRMG_SEND_HTTP_REQUEST

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!