SAP EHQM08_BUILD_OPERATION Function Module for NOTRANSL: EH&S-QM: Vorgang aufbauen
EHQM08_BUILD_OPERATION is a standard ehqm08 build operation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EH&S-QM: Vorgang aufbauen 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 ehqm08 build operation FM, simply by entering the name EHQM08_BUILD_OPERATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHQM08
Program Name: SAPLEHQM08
Main Program: SAPLEHQM08
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHQM08_BUILD_OPERATION 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 'EHQM08_BUILD_OPERATION'"NOTRANSL: EH&S-QM: Vorgang aufbauen.
EXPORTING
I_PROFILE = "EH&S-QM: Profile
I_VALDAT = "Key Date
I_AENNR = "Change Number
I_GROUP = "Key for Task List Group
I_GROUP_COUNTER = "Group Counter
I_COUNT = "Internal Counter
I_DESCROPR = "Operation Short Text
I_UOM = "Plan unit of measure
I_PLANT = "Plant
IMPORTING
E_OPR_CLASS_DATA_WA = "Data for Class of Operations
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_SAPLEHQM08_001 EH&S-QM: Determine Operations
EXIT_SAPLEHQM08_002 EH&S-QM: Add Data to Operation
IMPORTING Parameters details for EHQM08_BUILD_OPERATION
I_PROFILE - EH&S-QM: Profile
Data type: EHQMSPROFOptional: No
Call by Reference: Yes
I_VALDAT - Key Date
Data type: ESEDIAGVDOptional: No
Call by Reference: Yes
I_AENNR - Change Number
Data type: AENNROptional: No
Call by Reference: Yes
I_GROUP - Key for Task List Group
Data type: PLNNROptional: No
Call by Reference: Yes
I_GROUP_COUNTER - Group Counter
Data type: PLNALOptional: No
Call by Reference: Yes
I_COUNT - Internal Counter
Data type: CIM_COUNTOptional: No
Call by Reference: Yes
I_DESCROPR - Operation Short Text
Data type: LTXA1Optional: No
Call by Reference: Yes
I_UOM - Plan unit of measure
Data type: PLNMEOptional: No
Call by Reference: Yes
I_PLANT - Plant
Data type: WERKS_DOptional: No
Call by Reference: Yes
EXPORTING Parameters details for EHQM08_BUILD_OPERATION
E_OPR_CLASS_DATA_WA - Data for Class of Operations
Data type: OPR_CLASS_DATAOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHQM08_BUILD_OPERATION 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_i_profile | TYPE EHQMSPROF, " | |||
| lv_e_opr_class_data_wa | TYPE OPR_CLASS_DATA, " | |||
| lv_i_valdat | TYPE ESEDIAGVD, " | |||
| lv_i_aennr | TYPE AENNR, " | |||
| lv_i_group | TYPE PLNNR, " | |||
| lv_i_group_counter | TYPE PLNAL, " | |||
| lv_i_count | TYPE CIM_COUNT, " | |||
| lv_i_descropr | TYPE LTXA1, " | |||
| lv_i_uom | TYPE PLNME, " | |||
| lv_i_plant | TYPE WERKS_D. " |
|   CALL FUNCTION 'EHQM08_BUILD_OPERATION' "NOTRANSL: EH&S-QM: Vorgang aufbauen |
| EXPORTING | ||
| I_PROFILE | = lv_i_profile | |
| I_VALDAT | = lv_i_valdat | |
| I_AENNR | = lv_i_aennr | |
| I_GROUP | = lv_i_group | |
| I_GROUP_COUNTER | = lv_i_group_counter | |
| I_COUNT | = lv_i_count | |
| I_DESCROPR | = lv_i_descropr | |
| I_UOM | = lv_i_uom | |
| I_PLANT | = lv_i_plant | |
| IMPORTING | ||
| E_OPR_CLASS_DATA_WA | = lv_e_opr_class_data_wa | |
| . " EHQM08_BUILD_OPERATION | ||
ABAP code using 7.40 inline data declarations to call FM EHQM08_BUILD_OPERATION
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