SAP IBAPI_ALM_ORDERHEAD_CREATE_MUL Function Module for NOTRANSL: Anlegen mehrerer Auftragsköpfe
IBAPI_ALM_ORDERHEAD_CREATE_MUL is a standard ibapi alm orderhead create mul 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 mehrerer Auftragsköpfe 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 ibapi alm orderhead create mul FM, simply by entering the name IBAPI_ALM_ORDERHEAD_CREATE_MUL into the relevant SAP transaction such as SE37 or SE38.
Function Group: IBAPI_ALM_ORDER_HEAD
Program Name: SAPLIBAPI_ALM_ORDER_HEAD
Main Program: SAPLIBAPI_ALM_ORDER_HEAD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IBAPI_ALM_ORDERHEAD_CREATE_MUL 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 'IBAPI_ALM_ORDERHEAD_CREATE_MUL'"NOTRANSL: Anlegen mehrerer Auftragsköpfe.
EXPORTING
HEADERS = "ALM Order BAPIs: Table Type for Header Data (Multi-Order)
* HEADERS_UPDATE = "ALM Order BAPIs: Table Type for Header-Data-Update
* SERVDATA = "ALM Order BAPIs: Table Type for Service Data - Import
* SERVDATA_UPDATE = "ALM Order BAPIs: Table Type for Service Data - Update
IMPORTING
HEADERS_RESULTS = "ALM Order BAPIs: Table Type for Header Data - Export
SERVDATA_RESULTS = "ALM Order BAPIs: Table Type for Service Data - Export
TABLES
ERROR_MESSAGES = "Application Log: Table with Messages
IMPORTING Parameters details for IBAPI_ALM_ORDERHEAD_CREATE_MUL
HEADERS - ALM Order BAPIs: Table Type for Header Data (Multi-Order)
Data type: BAPI_ALM_ORDER_HEADERS_I_TOptional: No
Call by Reference: No ( called with pass by value option)
HEADERS_UPDATE - ALM Order BAPIs: Table Type for Header-Data-Update
Data type: BAPI_ALM_ORDER_HEADERS_I_UTOptional: Yes
Call by Reference: No ( called with pass by value option)
SERVDATA - ALM Order BAPIs: Table Type for Service Data - Import
Data type: BAPI_ALM_ORDER_SRVDATA_I_TOptional: Yes
Call by Reference: No ( called with pass by value option)
SERVDATA_UPDATE - ALM Order BAPIs: Table Type for Service Data - Update
Data type: BAPI_ALM_ORDER_SRVDATA_I_UTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IBAPI_ALM_ORDERHEAD_CREATE_MUL
HEADERS_RESULTS - ALM Order BAPIs: Table Type for Header Data - Export
Data type: BAPI_ALM_ORDER_HEADERS_E_TOptional: No
Call by Reference: No ( called with pass by value option)
SERVDATA_RESULTS - ALM Order BAPIs: Table Type for Service Data - Export
Data type: BAPI_ALM_ORDER_SRVDATA_E_TOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IBAPI_ALM_ORDERHEAD_CREATE_MUL
ERROR_MESSAGES - Application Log: Table with Messages
Data type: BAL_T_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for IBAPI_ALM_ORDERHEAD_CREATE_MUL 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_headers | TYPE BAPI_ALM_ORDER_HEADERS_I_T, " | |||
| lt_error_messages | TYPE STANDARD TABLE OF BAL_T_MSG, " | |||
| lv_headers_results | TYPE BAPI_ALM_ORDER_HEADERS_E_T, " | |||
| lv_headers_update | TYPE BAPI_ALM_ORDER_HEADERS_I_UT, " | |||
| lv_servdata_results | TYPE BAPI_ALM_ORDER_SRVDATA_E_T, " | |||
| lv_servdata | TYPE BAPI_ALM_ORDER_SRVDATA_I_T, " | |||
| lv_servdata_update | TYPE BAPI_ALM_ORDER_SRVDATA_I_UT. " |
|   CALL FUNCTION 'IBAPI_ALM_ORDERHEAD_CREATE_MUL' "NOTRANSL: Anlegen mehrerer Auftragsköpfe |
| EXPORTING | ||
| HEADERS | = lv_headers | |
| HEADERS_UPDATE | = lv_headers_update | |
| SERVDATA | = lv_servdata | |
| SERVDATA_UPDATE | = lv_servdata_update | |
| IMPORTING | ||
| HEADERS_RESULTS | = lv_headers_results | |
| SERVDATA_RESULTS | = lv_servdata_results | |
| TABLES | ||
| ERROR_MESSAGES | = lt_error_messages | |
| . " IBAPI_ALM_ORDERHEAD_CREATE_MUL | ||
ABAP code using 7.40 inline data declarations to call FM IBAPI_ALM_ORDERHEAD_CREATE_MUL
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