SAP MASTERIDOC_CREATE_SMD_HRMD Function Module for
MASTERIDOC_CREATE_SMD_HRMD is a standard masteridoc create smd hrmd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 masteridoc create smd hrmd FM, simply by entering the name MASTERIDOC_CREATE_SMD_HRMD into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHAL
Program Name: SAPLRHAL
Main Program: SAPLRHAL
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASTERIDOC_CREATE_SMD_HRMD 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 'MASTERIDOC_CREATE_SMD_HRMD'".
EXPORTING
* ACTIVATION_DATE_HIGH = "Activation date upper limit
MESSAGE_TYPE = "Message type
* READ_NOT_PROCESSED_POINTERS = 'X' "Read pointers that have not been processed yet
* READ_ALL_POINTERS = ' ' "
* ACTIVATION_DATE_LOW = "Activation date lower limit
* ACTIVATION_TIME_HIGH = "Activation time upper limit
* ACTIVATION_TIME_LOW = "Activation time lower limit
* CHANGE_DOCUMENT_OBJECT_CLASS = ' ' "Object class of change document
* CREATION_DATE_HIGH = "Creation date upper limit
* CREATION_DATE_LOW = "Creation date lower limit
* CREATION_TIME_HIGH = "Creation time upper limit
* CREATION_TIME_LOW = "Creation time lower limit
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLRHAL_001 HR-CA: ALE Outbound Processing: Change IDoc
EXIT_SAPLRHAL_002 HR-CA: ALE Inbound Processing: Changing Infotype Data
EXIT_SAPLRHAL_003 HR-CA: ALE Outbound Processing: Converting Infotype / Segment
EXIT_SAPLRHAL_004 HR-CA: ALE Inbound Processing: Converting Segment / Infotype
IMPORTING Parameters details for MASTERIDOC_CREATE_SMD_HRMD
ACTIVATION_DATE_HIGH - Activation date upper limit
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGE_TYPE - Message type
Data type: EDIDC-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
READ_NOT_PROCESSED_POINTERS - Read pointers that have not been processed yet
Data type: BDCPS-PROCESSDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_ALL_POINTERS -
Data type: BDCPS-PROCESSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_DATE_LOW - Activation date lower limit
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_TIME_HIGH - Activation time upper limit
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_TIME_LOW - Activation time lower limit
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_DOCUMENT_OBJECT_CLASS - Object class of change document
Data type: CDPOS-OBJECTCLASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_DATE_HIGH - Creation date upper limit
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_DATE_LOW - Creation date lower limit
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_TIME_HIGH - Creation time upper limit
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_TIME_LOW - Creation time lower limit
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MASTERIDOC_CREATE_SMD_HRMD 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_activation_date_high | TYPE SY-DATUM, " | |||
| lv_message_type | TYPE EDIDC-MESTYP, " | |||
| lv_read_not_processed_pointers | TYPE BDCPS-PROCESS, " 'X' | |||
| lv_read_all_pointers | TYPE BDCPS-PROCESS, " ' ' | |||
| lv_activation_date_low | TYPE SY-DATUM, " | |||
| lv_activation_time_high | TYPE SY-UZEIT, " | |||
| lv_activation_time_low | TYPE SY-UZEIT, " | |||
| lv_change_document_object_class | TYPE CDPOS-OBJECTCLAS, " SPACE | |||
| lv_creation_date_high | TYPE SY-DATUM, " | |||
| lv_creation_date_low | TYPE SY-DATUM, " | |||
| lv_creation_time_high | TYPE SY-UZEIT, " | |||
| lv_creation_time_low | TYPE SY-UZEIT. " |
|   CALL FUNCTION 'MASTERIDOC_CREATE_SMD_HRMD' " |
| EXPORTING | ||
| ACTIVATION_DATE_HIGH | = lv_activation_date_high | |
| MESSAGE_TYPE | = lv_message_type | |
| READ_NOT_PROCESSED_POINTERS | = lv_read_not_processed_pointers | |
| READ_ALL_POINTERS | = lv_read_all_pointers | |
| ACTIVATION_DATE_LOW | = lv_activation_date_low | |
| ACTIVATION_TIME_HIGH | = lv_activation_time_high | |
| ACTIVATION_TIME_LOW | = lv_activation_time_low | |
| CHANGE_DOCUMENT_OBJECT_CLASS | = lv_change_document_object_class | |
| CREATION_DATE_HIGH | = lv_creation_date_high | |
| CREATION_DATE_LOW | = lv_creation_date_low | |
| CREATION_TIME_HIGH | = lv_creation_time_high | |
| CREATION_TIME_LOW | = lv_creation_time_low | |
| . " MASTERIDOC_CREATE_SMD_HRMD | ||
ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_CREATE_SMD_HRMD
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.| "SELECT single DATUM FROM SY INTO @DATA(ld_activation_date_high). | ||||
| "SELECT single MESTYP FROM EDIDC INTO @DATA(ld_message_type). | ||||
| "SELECT single PROCESS FROM BDCPS INTO @DATA(ld_read_not_processed_pointers). | ||||
| DATA(ld_read_not_processed_pointers) | = 'X'. | |||
| "SELECT single PROCESS FROM BDCPS INTO @DATA(ld_read_all_pointers). | ||||
| DATA(ld_read_all_pointers) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_activation_date_low). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_activation_time_high). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_activation_time_low). | ||||
| "SELECT single OBJECTCLAS FROM CDPOS INTO @DATA(ld_change_document_object_class). | ||||
| DATA(ld_change_document_object_class) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_creation_date_high). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_creation_date_low). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_creation_time_high). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_creation_time_low). | ||||
Search for further information about these or an SAP related objects