SAP IQS0_ADD_HEADER_TASK Function Module for NOTRANSL: Anlegen einer Kopfmaßnahme zu einer Meldung
IQS0_ADD_HEADER_TASK is a standard iqs0 add header task 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: Anlegen einer Kopfmaßnahme zu einer Meldung 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 iqs0 add header task FM, simply by entering the name IQS0_ADD_HEADER_TASK into the relevant SAP transaction such as SE37 or SE38.
Function Group: IQS0
Program Name: SAPLIQS0
Main Program: SAPLIQS0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IQS0_ADD_HEADER_TASK 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 'IQS0_ADD_HEADER_TASK'"NOTRANSL: Anlegen einer Kopfmaßnahme zu einer Meldung.
EXPORTING
* I_POST = ' ' "Checkbox
I_QMNUM = "Notification No
* I_FENUM = "Item Number in Item Record
R_VIQMSM = "PM/SM/QM Notifications: I/O Data for Creating Notif. Tasks
* I_NO_MSG = 'X' "Checkbox
* I_RESET = "Checkbox
TABLES
* TXT_QMSM = "SAPscript: Text Lines
EXCEPTIONS
SHOW_MESSAGES = 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_SAPLIQS0_001 Customer Exit 'Check Status Change for Permission' for PM/CS Notifications
EXIT_SAPLIQS0_002 User Exit for Influencing the F4 Help for Catalogs
EXIT_SAPLIQS0_003 Function Code '+US3/4' in Menu 'Goto/Task' in Notification Processing
EXIT_SAPLIQS0_004 Function Code '+US5/6' in Menu 'Goto/Activities' in Notif. Processing
EXIT_SAPLIQS0_005 Determining Processing Deadlines According to Priority
EXIT_SAPLIQS0_006 Default Partner When Adding A Notification
EXIT_SAPLIQS0_007 Determination of BOM application for BOM Explosion
EXIT_SAPLIQS0_008 Supply Function Codes with Text/ Deactivate Codes: 'Goto/Task'
EXIT_SAPLIQS0_009 Supply Function Codes/ Deactivate Codes: 'Goto/Activity'
EXIT_SAPLIQS0_010 Function Codes in Menu 'Goto/Notification' in Notification Processing
EXIT_SAPLIQS0_011 Supply Function Codes with Text/ Deactivate Codes: 'Goto/Notification'
EXIT_SAPLIQS0_012 Function Codes in 'Goto/Cause' Menu in Notification Processing
EXIT_SAPLIQS0_013 Supply Function Codes with Text/ Deactivate Codes: 'Goto/Cause'
EXIT_SAPLIQS0_014 Function Codes in Menu 'Goto/Item' in Notification Processing
EXIT_SAPLIQS0_015 Supply Function Codes with Text/Deactivate Codes: 'Goto/Item'
EXIT_SAPLIQS0_016 Function Module for Deactivating Notification Function Codes
EXIT_SAPLIQS0_017 Default Values when Adding PM/CS Notification
EXIT_SAPLIQS0_018 Check Whether a Change of Notification Type is Allowed
EXIT_SAPLIQS0_019 Influence Data Transfer for New Notification Type
EXIT_SAPLIQS0_020 User Exit 'Check Authorization for Status Change'
IMPORTING Parameters details for IQS0_ADD_HEADER_TASK
I_POST - Checkbox
Data type: RIWO00-SELECDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_QMNUM - Notification No
Data type: VIQMEL-QMNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_FENUM - Item Number in Item Record
Data type: VIQMFE-FENUMOptional: Yes
Call by Reference: No ( called with pass by value option)
R_VIQMSM - PM/SM/QM Notifications: I/O Data for Creating Notif. Tasks
Data type: RFC_VIQMSMOptional: No
Call by Reference: No ( called with pass by value option)
I_NO_MSG - Checkbox
Data type: RIWO00-SELECDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RESET - Checkbox
Data type: RIWO00-SELECOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IQS0_ADD_HEADER_TASK
TXT_QMSM - SAPscript: Text Lines
Data type: TLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SHOW_MESSAGES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IQS0_ADD_HEADER_TASK 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_post | TYPE RIWO00-SELEC, " ' ' | |||
| lt_txt_qmsm | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_show_messages | TYPE TLINE, " | |||
| lv_i_qmnum | TYPE VIQMEL-QMNUM, " | |||
| lv_i_fenum | TYPE VIQMFE-FENUM, " | |||
| lv_r_viqmsm | TYPE RFC_VIQMSM, " | |||
| lv_i_no_msg | TYPE RIWO00-SELEC, " 'X' | |||
| lv_i_reset | TYPE RIWO00-SELEC. " |
|   CALL FUNCTION 'IQS0_ADD_HEADER_TASK' "NOTRANSL: Anlegen einer Kopfmaßnahme zu einer Meldung |
| EXPORTING | ||
| I_POST | = lv_i_post | |
| I_QMNUM | = lv_i_qmnum | |
| I_FENUM | = lv_i_fenum | |
| R_VIQMSM | = lv_r_viqmsm | |
| I_NO_MSG | = lv_i_no_msg | |
| I_RESET | = lv_i_reset | |
| TABLES | ||
| TXT_QMSM | = lt_txt_qmsm | |
| EXCEPTIONS | ||
| SHOW_MESSAGES = 1 | ||
| . " IQS0_ADD_HEADER_TASK | ||
ABAP code using 7.40 inline data declarations to call FM IQS0_ADD_HEADER_TASK
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 SELEC FROM RIWO00 INTO @DATA(ld_i_post). | ||||
| DATA(ld_i_post) | = ' '. | |||
| "SELECT single QMNUM FROM VIQMEL INTO @DATA(ld_i_qmnum). | ||||
| "SELECT single FENUM FROM VIQMFE INTO @DATA(ld_i_fenum). | ||||
| "SELECT single SELEC FROM RIWO00 INTO @DATA(ld_i_no_msg). | ||||
| DATA(ld_i_no_msg) | = 'X'. | |||
| "SELECT single SELEC FROM RIWO00 INTO @DATA(ld_i_reset). | ||||
Search for further information about these or an SAP related objects