SAP QAALE_IDOCS_CREATE Function Module for NOTRANSL: IDOCs für QMAT erzeugen
QAALE_IDOCS_CREATE is a standard qaale idocs create 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: IDOCs für QMAT erzeugen 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 qaale idocs create FM, simply by entering the name QAALE_IDOCS_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: QAALE
Program Name: SAPLQAALE
Main Program: SAPLQAALE
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QAALE_IDOCS_CREATE 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 'QAALE_IDOCS_CREATE'"NOTRANSL: IDOCs für QMAT erzeugen.
EXPORTING
I_CP_FLAG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MESSAGE_TYPE = "Message Type
TABLES
T_BAPIQMATTAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RECIPIENTS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING Parameters details for QAALE_IDOCS_CREATE
I_CP_FLAG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_MESSAGE_TYPE - Message Type
Data type: TBDME-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for QAALE_IDOCS_CREATE
T_BAPIQMATTAB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BAPI1001004_QMATOptional: No
Call by Reference: No ( called with pass by value option)
T_RECIPIENTS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BAPI_RECEIVEROptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QAALE_IDOCS_CREATE 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_cp_flag | TYPE C, " | |||
| lt_t_bapiqmattab | TYPE STANDARD TABLE OF BAPI1001004_QMAT, " | |||
| lt_t_recipients | TYPE STANDARD TABLE OF BAPI_RECEIVER, " | |||
| lv_i_message_type | TYPE TBDME-MESTYP. " |
|   CALL FUNCTION 'QAALE_IDOCS_CREATE' "NOTRANSL: IDOCs für QMAT erzeugen |
| EXPORTING | ||
| I_CP_FLAG | = lv_i_cp_flag | |
| I_MESSAGE_TYPE | = lv_i_message_type | |
| TABLES | ||
| T_BAPIQMATTAB | = lt_t_bapiqmattab | |
| T_RECIPIENTS | = lt_t_recipients | |
| . " QAALE_IDOCS_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM QAALE_IDOCS_CREATE
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 MESTYP FROM TBDME INTO @DATA(ld_i_message_type). | ||||
Search for further information about these or an SAP related objects