SAP EHQM06_MANAGE_TSK Function Module for NOTRANSL: EH&S-QM: Prüfplankopf handhaben









EHQM06_MANAGE_TSK is a standard ehqm06 manage tsk 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: Prüfplankopf handhaben 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 ehqm06 manage tsk FM, simply by entering the name EHQM06_MANAGE_TSK into the relevant SAP transaction such as SE37 or SE38.

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



Function EHQM06_MANAGE_TSK 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 'EHQM06_MANAGE_TSK'"NOTRANSL: EH&S-QM: Prüfplankopf handhaben
EXPORTING
I_VALDAT = "Key Date
I_GROUP = "Key for Task List Group
I_GROUP_COUNTER = "Group Counter
I_TSK_CLASS_DATA_TAB = "
I_VACLID_TAB = "
I_AENNR = "Change Number
I_PLANT = "Plant
I_STATUS = "Status
I_USAGE = "Task List Usage
I_SHORTTEXT = "Task List Description
I_UOM = "Plan unit of measure
I_SUBID = "Specification
I_MATNR = "Material Number

IMPORTING
E_TSK_CLASS_DATA_NEW_WA = "Data for the class of task lists

EXCEPTIONS
CREATION_FAILURE = 1
.




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_SAPLEHQM06_002 EH&S-QM: Add Data to Inspection Plan Header

IMPORTING Parameters details for EHQM06_MANAGE_TSK

I_VALDAT - Key Date

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

I_GROUP - Key for Task List Group

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

I_GROUP_COUNTER - Group Counter

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

I_TSK_CLASS_DATA_TAB -

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

I_VACLID_TAB -

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

I_AENNR - Change Number

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

I_PLANT - Plant

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

I_STATUS - Status

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

I_USAGE - Task List Usage

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

I_SHORTTEXT - Task List Description

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

I_UOM - Plan unit of measure

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

I_SUBID - Specification

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

I_MATNR - Material Number

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

EXPORTING Parameters details for EHQM06_MANAGE_TSK

E_TSK_CLASS_DATA_NEW_WA - Data for the class of task lists

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

EXCEPTIONS details

CREATION_FAILURE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EHQM06_MANAGE_TSK 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_valdat  TYPE ESEDIAGVD, "   
lv_creation_failure  TYPE ESEDIAGVD, "   
lv_e_tsk_class_data_new_wa  TYPE TSK_CLASS_DATA, "   
lv_i_group  TYPE PLNNR, "   
lv_i_group_counter  TYPE PLNAL, "   
lv_i_tsk_class_data_tab  TYPE EHQ01_TSK_CLASS_DATA_T_TYPE, "   
lv_i_vaclid_tab  TYPE EHQ01_VAC_T_TYPE, "   
lv_i_aennr  TYPE AENNR, "   
lv_i_plant  TYPE WERKS_D, "   
lv_i_status  TYPE PLNST, "   
lv_i_usage  TYPE PLN_VERWE, "   
lv_i_shorttext  TYPE PLANTEXT, "   
lv_i_uom  TYPE PLNME, "   
lv_i_subid  TYPE ESESUBID, "   
lv_i_matnr  TYPE MATNR. "   

  CALL FUNCTION 'EHQM06_MANAGE_TSK'  "NOTRANSL: EH&S-QM: Prüfplankopf handhaben
    EXPORTING
         I_VALDAT = lv_i_valdat
         I_GROUP = lv_i_group
         I_GROUP_COUNTER = lv_i_group_counter
         I_TSK_CLASS_DATA_TAB = lv_i_tsk_class_data_tab
         I_VACLID_TAB = lv_i_vaclid_tab
         I_AENNR = lv_i_aennr
         I_PLANT = lv_i_plant
         I_STATUS = lv_i_status
         I_USAGE = lv_i_usage
         I_SHORTTEXT = lv_i_shorttext
         I_UOM = lv_i_uom
         I_SUBID = lv_i_subid
         I_MATNR = lv_i_matnr
    IMPORTING
         E_TSK_CLASS_DATA_NEW_WA = lv_e_tsk_class_data_new_wa
    EXCEPTIONS
        CREATION_FAILURE = 1
. " EHQM06_MANAGE_TSK




ABAP code using 7.40 inline data declarations to call FM EHQM06_MANAGE_TSK

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!