HRHAP_C_MESSAGE_FILL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name HRHAP_C_MESSAGE_FILL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
HRHAP_C_A_GLOBAL
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HRHAP_C_MESSAGE_FILL' "
EXPORTING
msgno = " char03 Message Number
* msgv1 = " any Message variable 01
* msgv2 = " any Message variable 02
* msgv3 = " any Message variable 03
* msgv4 = " any Message variable 04
* fill_variables = ' ' " char1 'X' to use the S_MSG_FIELDS
* s_msg_fields = " hap_s_c_ret_struc Additional Parameters for a Message (e.g. to read Names)
IMPORTING
s_return = " bal_s_msg Message Parameters
. " HRHAP_C_MESSAGE_FILL
The ABAP code below is a full code listing to execute function module HRHAP_C_MESSAGE_FILL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_s_return | TYPE BAL_S_MSG . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_s_return | TYPE BAL_S_MSG , |
| ld_msgno | TYPE CHAR03 , |
| ld_msgv1 | TYPE ANY , |
| ld_msgv2 | TYPE ANY , |
| ld_msgv3 | TYPE ANY , |
| ld_msgv4 | TYPE ANY , |
| ld_fill_variables | TYPE CHAR1 , |
| ld_s_msg_fields | TYPE HAP_S_C_RET_STRUC . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HRHAP_C_MESSAGE_FILL or its description.