SAP MAM30_001_GETDETAIL Function Module for NOTRANSL: Auftragsdetaildaten lesen
MAM30_001_GETDETAIL is a standard mam30 001 getdetail 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: Auftragsdetaildaten lesen 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 mam30 001 getdetail FM, simply by entering the name MAM30_001_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: ALM_MEREP_001
Program Name: SAPLALM_MEREP_001
Main Program: SAPLALM_MEREP_001
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MAM30_001_GETDETAIL 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 'MAM30_001_GETDETAIL'"NOTRANSL: Auftragsdetaildaten lesen.
EXPORTING
USER = "User Name
ORDERID = "Order Number
IMPORTING
ORDER_HEADER = "Order Header
TABLES
* ORDER_OPERATION = "Order Operation
* CE_ORDER_HEADER = "Customer Enhancement for Order Header
* CE_ORDER_OPERATION = "Customer Enhancement for Operations
* CE_ORDER_COMPONENT = "Customer Enhancement for Components
* CE_ORDER_OBJECTLIST = "Customer Enhancement for Object List
* X3_CE_ORDER_TIMECONF = "Customer Enhancement Time Confirmation
* X4_CE_ORDER_MATCONF = "Customer Enhancement for Material Confirmation
* RETURN = "Return Parameter
* WSAP_EXTENSION = "SAP Enhancement
* ORDER_OPERATION_SPLIT = "Operation Split
* ORDER_COMPONENT = "Components
* ORDER_OBJECTLIST = "Object List
* ORDER_PARTNER = "Partner Key
* ORDER_LONGTEXT = "Order Long Text
* ORDER_USER_STATUS = "Table with Status Changes for User Status
* X1_ORDER_TIMECONF = "Confirmation for Confirmation Number and Counter (2.5)
* X2_ORDER_MATCONF = "Material Consumption Document Data
IMPORTING Parameters details for MAM30_001_GETDETAIL
USER - User Name
Data type: ALM_ME_USER_DATA-USERIDOptional: No
Call by Reference: No ( called with pass by value option)
ORDERID - Order Number
Data type: MAM_30_ORDER_HEADER-ORDERIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MAM30_001_GETDETAIL
ORDER_HEADER - Order Header
Data type: MAM_30_ORDER_HEADEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MAM30_001_GETDETAIL
ORDER_OPERATION - Order Operation
Data type: MAM_30_ORDER_OPERATIONOptional: Yes
Call by Reference: Yes
CE_ORDER_HEADER - Customer Enhancement for Order Header
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
CE_ORDER_OPERATION - Customer Enhancement for Operations
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
CE_ORDER_COMPONENT - Customer Enhancement for Components
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
CE_ORDER_OBJECTLIST - Customer Enhancement for Object List
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
X3_CE_ORDER_TIMECONF - Customer Enhancement Time Confirmation
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
X4_CE_ORDER_MATCONF - Customer Enhancement for Material Confirmation
Data type: ALM_ME_CUSTOMER_ENHANCEMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
WSAP_EXTENSION - SAP Enhancement
Data type: ALM_ME_SAP_EXTENSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
ORDER_OPERATION_SPLIT - Operation Split
Data type: MAM_30_OPERATION_SPLITOptional: Yes
Call by Reference: Yes
ORDER_COMPONENT - Components
Data type: MAM_30_ORDER_COMPONENTOptional: Yes
Call by Reference: Yes
ORDER_OBJECTLIST - Object List
Data type: MAM_30_ORDER_OBJECTLISTOptional: Yes
Call by Reference: Yes
ORDER_PARTNER - Partner Key
Data type: MAM_30_PARTNER_KEY_STRUCTOptional: Yes
Call by Reference: Yes
ORDER_LONGTEXT - Order Long Text
Data type: MAM_30_LONGTEXTOptional: Yes
Call by Reference: Yes
ORDER_USER_STATUS - Table with Status Changes for User Status
Data type: MAM_30_USER_STATUS_CHANGESOptional: Yes
Call by Reference: Yes
X1_ORDER_TIMECONF - Confirmation for Confirmation Number and Counter (2.5)
Data type: MAM_30_CONF_DETAILSOptional: Yes
Call by Reference: Yes
X2_ORDER_MATCONF - Material Consumption Document Data
Data type: MAM_30_GOODSMOVEMENT_DETAILOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MAM30_001_GETDETAIL 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_user | TYPE ALM_ME_USER_DATA-USERID, " | |||
| lv_order_header | TYPE MAM_30_ORDER_HEADER, " | |||
| lt_order_operation | TYPE STANDARD TABLE OF MAM_30_ORDER_OPERATION, " | |||
| lt_ce_order_header | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_ce_order_operation | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_ce_order_component | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_ce_order_objectlist | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_x3_ce_order_timeconf | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_x4_ce_order_matconf | TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_wsap_extension | TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION, " | |||
| lv_orderid | TYPE MAM_30_ORDER_HEADER-ORDERID, " | |||
| lt_order_operation_split | TYPE STANDARD TABLE OF MAM_30_OPERATION_SPLIT, " | |||
| lt_order_component | TYPE STANDARD TABLE OF MAM_30_ORDER_COMPONENT, " | |||
| lt_order_objectlist | TYPE STANDARD TABLE OF MAM_30_ORDER_OBJECTLIST, " | |||
| lt_order_partner | TYPE STANDARD TABLE OF MAM_30_PARTNER_KEY_STRUCT, " | |||
| lt_order_longtext | TYPE STANDARD TABLE OF MAM_30_LONGTEXT, " | |||
| lt_order_user_status | TYPE STANDARD TABLE OF MAM_30_USER_STATUS_CHANGES, " | |||
| lt_x1_order_timeconf | TYPE STANDARD TABLE OF MAM_30_CONF_DETAILS, " | |||
| lt_x2_order_matconf | TYPE STANDARD TABLE OF MAM_30_GOODSMOVEMENT_DETAIL. " |
|   CALL FUNCTION 'MAM30_001_GETDETAIL' "NOTRANSL: Auftragsdetaildaten lesen |
| EXPORTING | ||
| USER | = lv_user | |
| ORDERID | = lv_orderid | |
| IMPORTING | ||
| ORDER_HEADER | = lv_order_header | |
| TABLES | ||
| ORDER_OPERATION | = lt_order_operation | |
| CE_ORDER_HEADER | = lt_ce_order_header | |
| CE_ORDER_OPERATION | = lt_ce_order_operation | |
| CE_ORDER_COMPONENT | = lt_ce_order_component | |
| CE_ORDER_OBJECTLIST | = lt_ce_order_objectlist | |
| X3_CE_ORDER_TIMECONF | = lt_x3_ce_order_timeconf | |
| X4_CE_ORDER_MATCONF | = lt_x4_ce_order_matconf | |
| RETURN | = lt_return | |
| WSAP_EXTENSION | = lt_wsap_extension | |
| ORDER_OPERATION_SPLIT | = lt_order_operation_split | |
| ORDER_COMPONENT | = lt_order_component | |
| ORDER_OBJECTLIST | = lt_order_objectlist | |
| ORDER_PARTNER | = lt_order_partner | |
| ORDER_LONGTEXT | = lt_order_longtext | |
| ORDER_USER_STATUS | = lt_order_user_status | |
| X1_ORDER_TIMECONF | = lt_x1_order_timeconf | |
| X2_ORDER_MATCONF | = lt_x2_order_matconf | |
| . " MAM30_001_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM MAM30_001_GETDETAIL
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 USERID FROM ALM_ME_USER_DATA INTO @DATA(ld_user). | ||||
| "SELECT single ORDERID FROM MAM_30_ORDER_HEADER INTO @DATA(ld_orderid). | ||||
Search for further information about these or an SAP related objects