SAP EHPRC_CP_SP02_API_MSG_GET Function Module for CfP: API Message get









EHPRC_CP_SP02_API_MSG_GET is a standard ehprc cp sp02 api msg get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CfP: API Message get 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 ehprc cp sp02 api msg get FM, simply by entering the name EHPRC_CP_SP02_API_MSG_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function EHPRC_CP_SP02_API_MSG_GET 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 'EHPRC_CP_SP02_API_MSG_GET'"CfP: API Message get
IMPORTING
E_FLG_ERROR = "

CHANGING
XT_MSG = "Application Log: Table with Messages

TABLES
IT_API_HEADER = "
* IT_API_PROP_USAGE = "
* IT_API_PROP_FTEXT = "
* IT_API_PROP_FTEXT_LONGTEXT = "
* IT_API_REFSUBS = "
* IT_API_IDENT = "
* IT_API_IDENT_LONGTEXT = "
* IT_API_MATJOIN = "
* IT_API_PROP_HEADER = "
* IT_API_PROP = "
* IT_API_PROP_DATA = "
* IT_API_PROP_COMPONENT = "
.



EXPORTING Parameters details for EHPRC_CP_SP02_API_MSG_GET

E_FLG_ERROR -

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

CHANGING Parameters details for EHPRC_CP_SP02_API_MSG_GET

XT_MSG - Application Log: Table with Messages

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

TABLES Parameters details for EHPRC_CP_SP02_API_MSG_GET

IT_API_HEADER -

Data type: ESPRH_APIRH_TAB_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

IT_API_PROP_USAGE -

Data type: ESPRH_APIDU_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP_FTEXT -

Data type: ESPRH_APIDF_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP_FTEXT_LONGTEXT -

Data type: ESPRH_APIFL_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_REFSUBS -

Data type: ESPRH_APIRR_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_IDENT -

Data type: ESPRH_APIRI_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_IDENT_LONGTEXT -

Data type: ESPRH_APIIL_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_MATJOIN -

Data type: ESPRH_APIMJ_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP_HEADER -

Data type: ESPRH_APIVH_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP -

Data type: ESPRH_APIVA_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP_DATA -

Data type: ESPRH_APIPR_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_API_PROP_COMPONENT -

Data type: ESPRH_APIVP_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EHPRC_CP_SP02_API_MSG_GET 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_xt_msg  TYPE BAL_T_MSG, "   
lv_e_flg_error  TYPE ESP1_BOOLEAN, "   
lt_it_api_header  TYPE STANDARD TABLE OF ESPRH_APIRH_TAB_TYPE, "   
lt_it_api_prop_usage  TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, "   
lt_it_api_prop_ftext  TYPE STANDARD TABLE OF ESPRH_APIDF_TAB_TYPE, "   
lt_it_api_prop_ftext_longtext  TYPE STANDARD TABLE OF ESPRH_APIFL_TAB_TYPE, "   
lt_it_api_refsubs  TYPE STANDARD TABLE OF ESPRH_APIRR_TAB_TYPE, "   
lt_it_api_ident  TYPE STANDARD TABLE OF ESPRH_APIRI_TAB_TYPE, "   
lt_it_api_ident_longtext  TYPE STANDARD TABLE OF ESPRH_APIIL_TAB_TYPE, "   
lt_it_api_matjoin  TYPE STANDARD TABLE OF ESPRH_APIMJ_TAB_TYPE, "   
lt_it_api_prop_header  TYPE STANDARD TABLE OF ESPRH_APIVH_TAB_TYPE, "   
lt_it_api_prop  TYPE STANDARD TABLE OF ESPRH_APIVA_TAB_TYPE, "   
lt_it_api_prop_data  TYPE STANDARD TABLE OF ESPRH_APIPR_TAB_TYPE, "   
lt_it_api_prop_component  TYPE STANDARD TABLE OF ESPRH_APIVP_TAB_TYPE. "   

  CALL FUNCTION 'EHPRC_CP_SP02_API_MSG_GET'  "CfP: API Message get
    IMPORTING
         E_FLG_ERROR = lv_e_flg_error
    CHANGING
         XT_MSG = lv_xt_msg
    TABLES
         IT_API_HEADER = lt_it_api_header
         IT_API_PROP_USAGE = lt_it_api_prop_usage
         IT_API_PROP_FTEXT = lt_it_api_prop_ftext
         IT_API_PROP_FTEXT_LONGTEXT = lt_it_api_prop_ftext_longtext
         IT_API_REFSUBS = lt_it_api_refsubs
         IT_API_IDENT = lt_it_api_ident
         IT_API_IDENT_LONGTEXT = lt_it_api_ident_longtext
         IT_API_MATJOIN = lt_it_api_matjoin
         IT_API_PROP_HEADER = lt_it_api_prop_header
         IT_API_PROP = lt_it_api_prop
         IT_API_PROP_DATA = lt_it_api_prop_data
         IT_API_PROP_COMPONENT = lt_it_api_prop_component
. " EHPRC_CP_SP02_API_MSG_GET




ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_SP02_API_MSG_GET

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!