SAP ALM_ME_ORDER_CREATE Function Module for NOTRANSL: Anlegen PM/CS-Auftrag
ALM_ME_ORDER_CREATE is a standard alm me order 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: Anlegen PM/CS-Auftrag 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 alm me order create FM, simply by entering the name ALM_ME_ORDER_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ALM_ME_ORDER
Program Name: SAPLALM_ME_ORDER
Main Program: SAPLALM_ME_ORDER
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ALM_ME_ORDER_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 'ALM_ME_ORDER_CREATE'"NOTRANSL: Anlegen PM/CS-Auftrag.
EXPORTING
ORDER_HEADER = "ALM ME: Order header data
* I_PARTNER_TPA_KEY = ' ' "
IMPORTING
E_ORDER_HEADER = "Order Header Data
TABLES
* ORDER_OPERATION = "Order Operation
* ORDER_PARTNER = "Partner Key
* ORDER_LONGTEXT = "Long Texts
* ORDER_USERSTATUS = "Table with Status Changes for User Status
* RETURN = "Return parameter
IMPORTING Parameters details for ALM_ME_ORDER_CREATE
ORDER_HEADER - ALM ME: Order header data
Data type: ALM_ME_ORDER_HEADEROptional: No
Call by Reference: Yes
I_PARTNER_TPA_KEY -
Data type: FLAGDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ALM_ME_ORDER_CREATE
E_ORDER_HEADER - Order Header Data
Data type: ALM_ME_ORDER_HEADEROptional: No
Call by Reference: Yes
TABLES Parameters details for ALM_ME_ORDER_CREATE
ORDER_OPERATION - Order Operation
Data type: ALM_ME_ORDER_OPERATIONOptional: Yes
Call by Reference: Yes
ORDER_PARTNER - Partner Key
Data type: ALM_ME_PARTNER_KEY_STRUCTOptional: Yes
Call by Reference: Yes
ORDER_LONGTEXT - Long Texts
Data type: ALM_ME_LONGTEXTOptional: Yes
Call by Reference: Yes
ORDER_USERSTATUS - Table with Status Changes for User Status
Data type: ALM_ME_USER_STATUS_CHANGESOptional: Yes
Call by Reference: Yes
RETURN - Return parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ALM_ME_ORDER_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_order_header | TYPE ALM_ME_ORDER_HEADER, " | |||
| lv_e_order_header | TYPE ALM_ME_ORDER_HEADER, " | |||
| lt_order_operation | TYPE STANDARD TABLE OF ALM_ME_ORDER_OPERATION, " | |||
| lt_order_partner | TYPE STANDARD TABLE OF ALM_ME_PARTNER_KEY_STRUCT, " | |||
| lv_i_partner_tpa_key | TYPE FLAG, " ' ' | |||
| lt_order_longtext | TYPE STANDARD TABLE OF ALM_ME_LONGTEXT, " | |||
| lt_order_userstatus | TYPE STANDARD TABLE OF ALM_ME_USER_STATUS_CHANGES, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'ALM_ME_ORDER_CREATE' "NOTRANSL: Anlegen PM/CS-Auftrag |
| EXPORTING | ||
| ORDER_HEADER | = lv_order_header | |
| I_PARTNER_TPA_KEY | = lv_i_partner_tpa_key | |
| IMPORTING | ||
| E_ORDER_HEADER | = lv_e_order_header | |
| TABLES | ||
| ORDER_OPERATION | = lt_order_operation | |
| ORDER_PARTNER | = lt_order_partner | |
| ORDER_LONGTEXT | = lt_order_longtext | |
| ORDER_USERSTATUS | = lt_order_userstatus | |
| RETURN | = lt_return | |
| . " ALM_ME_ORDER_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM ALM_ME_ORDER_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.| DATA(ld_i_partner_tpa_key) | = ' '. | |||
Search for further information about these or an SAP related objects