SAP MAM30_030_GETDETAIL Function Module for NOTRANSL: Detaildaten zum Technischen Platz lesen









MAM30_030_GETDETAIL is a standard mam30 030 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: Detaildaten zum Technischen Platz 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 030 getdetail FM, simply by entering the name MAM30_030_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: ALM_MEREP_030
Program Name: SAPLALM_MEREP_030
Main Program: SAPLALM_MEREP_030
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function MAM30_030_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_030_GETDETAIL'"NOTRANSL: Detaildaten zum Technischen Platz lesen
EXPORTING
FUNCTIONAL_LOCATION = "Functional Location
* REPLICATION_TYPE = "Type of Replication

IMPORTING
FUNCLOC_HEADER = "Header Data for Technical Object

TABLES
* INSTALLATION_CHANGE = "Installation / Dismantling of Equipment in Technical Object
* X2_FUNCLOC_CLASSVAL = "Assigned Values for Characteristics
* X5_FUNCLOC_ADDDETAILS = "Additional Attributes in the Header Data of Technical Object
* CE_FLOC_HEADER = "
* CE_FLOC_INST_EQUIS = "Customer Enhancement for Installed Equipment
* CE_FLOC_NOTIF_HISTORY = "
* CE_FLOC_ORDER_HISTORY = "
* CE_FLOC_CONTRACTS = "Customer Enhancement for Contract Data
* CE_FLOC_WARRANTY = "
* X3_CE_FLOC_CLASSVAL = "
* RETURN = "Return Parameter(s)
* FUNCLOC_INST_EQUIS = "Installed Equipment
* WSAP_EXTENSION = "SAP Enhancement
* X4_FUNCLOC_GIS = "MAM GIS Data
* X6_FUNCLOC_CLASS = "
* FUNCLOC_NOTIF_HISTORY = "Notification History for Technical Object
* FUNCLOC_ORDER_HISTORY = "Order History for Technical Object
* FUNCLOC_MEAS_POINTS = "Measuring Point Key
* FUNCLOC_CONTRACTS = "Contract Data
* FUNCLOC_PARTNERS = "Partner Key
* FUNCLOC_WARRANTY = "Warranties
* X1_FUNCLOC_USER_STAT = "User Status
.



IMPORTING Parameters details for MAM30_030_GETDETAIL

FUNCTIONAL_LOCATION - Functional Location

Data type: MAM_30_TOB_HEADER-TPLNR
Optional: No
Call by Reference: No ( called with pass by value option)

REPLICATION_TYPE - Type of Replication

Data type: ALM_ME_REPLICATION_TYPE_STRUCT-REPLICATION_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MAM30_030_GETDETAIL

FUNCLOC_HEADER - Header Data for Technical Object

Data type: MAM_30_TOB_HEADER
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MAM30_030_GETDETAIL

INSTALLATION_CHANGE - Installation / Dismantling of Equipment in Technical Object

Data type: MAM_30_TOB_INST_UNINST
Optional: Yes
Call by Reference: Yes

X2_FUNCLOC_CLASSVAL - Assigned Values for Characteristics

Data type: MAM_30_CLASSVALUES
Optional: Yes
Call by Reference: Yes

X5_FUNCLOC_ADDDETAILS - Additional Attributes in the Header Data of Technical Object

Data type: ALM_ME_ADD_HEADER_DATA
Optional: Yes
Call by Reference: Yes

CE_FLOC_HEADER -

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CE_FLOC_INST_EQUIS - Customer Enhancement for Installed Equipment

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CE_FLOC_NOTIF_HISTORY -

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CE_FLOC_ORDER_HISTORY -

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CE_FLOC_CONTRACTS - Customer Enhancement for Contract Data

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CE_FLOC_WARRANTY -

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X3_CE_FLOC_CLASSVAL -

Data type: ALM_ME_CUSTOMER_ENHANCEMENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN - Return Parameter(s)

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

FUNCLOC_INST_EQUIS - Installed Equipment

Data type: MAM_30_INSTALLED_EQUI
Optional: Yes
Call by Reference: Yes

WSAP_EXTENSION - SAP Enhancement

Data type: ALM_ME_SAP_EXTENSION
Optional: Yes
Call by Reference: No ( called with pass by value option)

X4_FUNCLOC_GIS - MAM GIS Data

Data type: MAM_30_GIS_DATA
Optional: Yes
Call by Reference: Yes

X6_FUNCLOC_CLASS -

Data type: ALM_ME_CLASS_CHAR_DETAIL
Optional: Yes
Call by Reference: Yes

FUNCLOC_NOTIF_HISTORY - Notification History for Technical Object

Data type: MAM_30_TOB_NOTIF_HISTORY
Optional: Yes
Call by Reference: Yes

FUNCLOC_ORDER_HISTORY - Order History for Technical Object

Data type: MAM_30_TOB_ORDER_HISTORY
Optional: Yes
Call by Reference: Yes

FUNCLOC_MEAS_POINTS - Measuring Point Key

Data type: MAM_30_MEASMNT_PT_KEY
Optional: Yes
Call by Reference: Yes

FUNCLOC_CONTRACTS - Contract Data

Data type: MAM_30_CONTRACT_HEADER
Optional: Yes
Call by Reference: Yes

FUNCLOC_PARTNERS - Partner Key

Data type: MAM_30_PARTNER_KEY_STRUCT
Optional: Yes
Call by Reference: Yes

FUNCLOC_WARRANTY - Warranties

Data type: MAM_30_TOB_WARRANTY
Optional: Yes
Call by Reference: Yes

X1_FUNCLOC_USER_STAT - User Status

Data type: MAM_30_USER_STATUS_CHANGES
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for MAM30_030_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_funcloc_header  TYPE MAM_30_TOB_HEADER, "   
lv_functional_location  TYPE MAM_30_TOB_HEADER-TPLNR, "   
lt_installation_change  TYPE STANDARD TABLE OF MAM_30_TOB_INST_UNINST, "   
lt_x2_funcloc_classval  TYPE STANDARD TABLE OF MAM_30_CLASSVALUES, "   
lt_x5_funcloc_adddetails  TYPE STANDARD TABLE OF ALM_ME_ADD_HEADER_DATA, "   
lt_ce_floc_header  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_floc_inst_equis  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_floc_notif_history  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_floc_order_history  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_floc_contracts  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_floc_warranty  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_x3_ce_floc_classval  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_replication_type  TYPE ALM_ME_REPLICATION_TYPE_STRUCT-REPLICATION_TYPE, "   
lt_funcloc_inst_equis  TYPE STANDARD TABLE OF MAM_30_INSTALLED_EQUI, "   
lt_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION, "   
lt_x4_funcloc_gis  TYPE STANDARD TABLE OF MAM_30_GIS_DATA, "   
lt_x6_funcloc_class  TYPE STANDARD TABLE OF ALM_ME_CLASS_CHAR_DETAIL, "   
lt_funcloc_notif_history  TYPE STANDARD TABLE OF MAM_30_TOB_NOTIF_HISTORY, "   
lt_funcloc_order_history  TYPE STANDARD TABLE OF MAM_30_TOB_ORDER_HISTORY, "   
lt_funcloc_meas_points  TYPE STANDARD TABLE OF MAM_30_MEASMNT_PT_KEY, "   
lt_funcloc_contracts  TYPE STANDARD TABLE OF MAM_30_CONTRACT_HEADER, "   
lt_funcloc_partners  TYPE STANDARD TABLE OF MAM_30_PARTNER_KEY_STRUCT, "   
lt_funcloc_warranty  TYPE STANDARD TABLE OF MAM_30_TOB_WARRANTY, "   
lt_x1_funcloc_user_stat  TYPE STANDARD TABLE OF MAM_30_USER_STATUS_CHANGES. "   

  CALL FUNCTION 'MAM30_030_GETDETAIL'  "NOTRANSL: Detaildaten zum Technischen Platz lesen
    EXPORTING
         FUNCTIONAL_LOCATION = lv_functional_location
         REPLICATION_TYPE = lv_replication_type
    IMPORTING
         FUNCLOC_HEADER = lv_funcloc_header
    TABLES
         INSTALLATION_CHANGE = lt_installation_change
         X2_FUNCLOC_CLASSVAL = lt_x2_funcloc_classval
         X5_FUNCLOC_ADDDETAILS = lt_x5_funcloc_adddetails
         CE_FLOC_HEADER = lt_ce_floc_header
         CE_FLOC_INST_EQUIS = lt_ce_floc_inst_equis
         CE_FLOC_NOTIF_HISTORY = lt_ce_floc_notif_history
         CE_FLOC_ORDER_HISTORY = lt_ce_floc_order_history
         CE_FLOC_CONTRACTS = lt_ce_floc_contracts
         CE_FLOC_WARRANTY = lt_ce_floc_warranty
         X3_CE_FLOC_CLASSVAL = lt_x3_ce_floc_classval
         RETURN = lt_return
         FUNCLOC_INST_EQUIS = lt_funcloc_inst_equis
         WSAP_EXTENSION = lt_wsap_extension
         X4_FUNCLOC_GIS = lt_x4_funcloc_gis
         X6_FUNCLOC_CLASS = lt_x6_funcloc_class
         FUNCLOC_NOTIF_HISTORY = lt_funcloc_notif_history
         FUNCLOC_ORDER_HISTORY = lt_funcloc_order_history
         FUNCLOC_MEAS_POINTS = lt_funcloc_meas_points
         FUNCLOC_CONTRACTS = lt_funcloc_contracts
         FUNCLOC_PARTNERS = lt_funcloc_partners
         FUNCLOC_WARRANTY = lt_funcloc_warranty
         X1_FUNCLOC_USER_STAT = lt_x1_funcloc_user_stat
. " MAM30_030_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM MAM30_030_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 TPLNR FROM MAM_30_TOB_HEADER INTO @DATA(ld_functional_location).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single REPLICATION_TYPE FROM ALM_ME_REPLICATION_TYPE_STRUCT INTO @DATA(ld_replication_type).
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!