SAP MAM25_031_CHANGE_SD Function Module for NOTRANSL: Equipmentdaten ändern









MAM25_031_CHANGE_SD is a standard mam25 031 change sd 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: Equipmentdaten ändern 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 mam25 031 change sd FM, simply by entering the name MAM25_031_CHANGE_SD into the relevant SAP transaction such as SE37 or SE38.

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



Function MAM25_031_CHANGE_SD 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 'MAM25_031_CHANGE_SD'"NOTRANSL: Equipmentdaten ändern
EXPORTING
EQUIPMENT_HEADER = "Header Data for Technical Object
* USER = "User Name

TABLES
* INSTALLATION_CHANGE = "Installation / Dismantling of Equipment in Technical Object
* X2_EQUIPMENT_CLASSVAL = "Assigned Values for Characteristics
* CE_EQUI_HEADER = "Copy user-speific fields to the mobile device
* CE_EQUI_INST_EQUIS = "Copy user-speific fields to the mobile device
* CE_EQUI_NOTIF_HISTORY = "Copy user-speific fields to the mobile device
* CE_EQUI_ORDER_HISTORY = "Copy user-speific fields to the mobile device
* CE_EQUI_CONTRACTS = "Copy user-speific fields to the mobile device
* CE_EQUI_WARRANTY = "Copy user-speific fields to the mobile device
* X3_CE_EQUI_CLASSVAL = "Copy user-speific fields to the mobile device
* RETURN = "Return Parameter
* WSAP_EXTENSION = "SAP Enhancement
* EQUIPMENT_INST_EQUIS = "Header Data for Technical Object
* EQUIPMENT_NOTIF_HIST = "Notification History for Technical Object
* EQUIPMENT_ORDER_HIST = "Order History for Technical Object
* EQUIPMENT_MEAS_POINTS = "Measuring Point Key
* EQUIPMENT_CONTRACTS = "Contract Header
* EQUIPMENT_PARTNERS = "Partner Key
* EQUIPMENT_WARRANTY = "Warranty Data for Technical Object
* EQUIPMENT_USER_STATUS = "Table with Status Changes for User Status
.



IMPORTING Parameters details for MAM25_031_CHANGE_SD

EQUIPMENT_HEADER - Header Data for Technical Object

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

USER - User Name

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

TABLES Parameters details for MAM25_031_CHANGE_SD

INSTALLATION_CHANGE - Installation / Dismantling of Equipment in Technical Object

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

X2_EQUIPMENT_CLASSVAL - Assigned Values for Characteristics

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

CE_EQUI_HEADER - Copy user-speific fields to the mobile device

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

CE_EQUI_INST_EQUIS - Copy user-speific fields to the mobile device

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

CE_EQUI_NOTIF_HISTORY - Copy user-speific fields to the mobile device

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

CE_EQUI_ORDER_HISTORY - Copy user-speific fields to the mobile device

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

CE_EQUI_CONTRACTS - Copy user-speific fields to the mobile device

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

CE_EQUI_WARRANTY - Copy user-speific fields to the mobile device

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

X3_CE_EQUI_CLASSVAL - Copy user-speific fields to the mobile device

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

RETURN - Return Parameter

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

WSAP_EXTENSION - SAP Enhancement

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

EQUIPMENT_INST_EQUIS - Header Data for Technical Object

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

EQUIPMENT_NOTIF_HIST - Notification History for Technical Object

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

EQUIPMENT_ORDER_HIST - Order History for Technical Object

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

EQUIPMENT_MEAS_POINTS - Measuring Point Key

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

EQUIPMENT_CONTRACTS - Contract Header

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

EQUIPMENT_PARTNERS - Partner Key

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

EQUIPMENT_WARRANTY - Warranty Data for Technical Object

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

EQUIPMENT_USER_STATUS - Table with Status Changes for User Status

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

Copy and paste ABAP code example for MAM25_031_CHANGE_SD 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_equipment_header  TYPE MAM_25_TOB_HEADER_SD, "   
lt_installation_change  TYPE STANDARD TABLE OF ALM_ME_TOB_INST_UNINST, "   
lt_x2_equipment_classval  TYPE STANDARD TABLE OF MAM_25_CLASSVALUES, "   
lt_ce_equi_header  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_equi_inst_equis  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_equi_notif_history  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_equi_order_history  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_equi_contracts  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_ce_equi_warranty  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT, "   
lt_x3_ce_equi_classval  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_user  TYPE ALM_ME_USER_DATA-USERID, "   
lt_equipment_inst_equis  TYPE STANDARD TABLE OF MAM_25_INSTALLED_EQUI, "   
lt_equipment_notif_hist  TYPE STANDARD TABLE OF MAM_25_TOB_NOTIF_HISTORY, "   
lt_equipment_order_hist  TYPE STANDARD TABLE OF MAM_25_TOB_ORDER_HISTORY, "   
lt_equipment_meas_points  TYPE STANDARD TABLE OF ALM_ME_MEASMNT_PT_KEY, "   
lt_equipment_contracts  TYPE STANDARD TABLE OF MAM_25_CONTRACT_HEADER, "   
lt_equipment_partners  TYPE STANDARD TABLE OF ALM_ME_PARTNER_KEY_STRUCT, "   
lt_equipment_warranty  TYPE STANDARD TABLE OF MAM_25_TOB_WARRANTY, "   
lt_equipment_user_status  TYPE STANDARD TABLE OF ALM_ME_USER_STATUS_CHANGES. "   

  CALL FUNCTION 'MAM25_031_CHANGE_SD'  "NOTRANSL: Equipmentdaten ändern
    EXPORTING
         EQUIPMENT_HEADER = lv_equipment_header
         USER = lv_user
    TABLES
         INSTALLATION_CHANGE = lt_installation_change
         X2_EQUIPMENT_CLASSVAL = lt_x2_equipment_classval
         CE_EQUI_HEADER = lt_ce_equi_header
         CE_EQUI_INST_EQUIS = lt_ce_equi_inst_equis
         CE_EQUI_NOTIF_HISTORY = lt_ce_equi_notif_history
         CE_EQUI_ORDER_HISTORY = lt_ce_equi_order_history
         CE_EQUI_CONTRACTS = lt_ce_equi_contracts
         CE_EQUI_WARRANTY = lt_ce_equi_warranty
         X3_CE_EQUI_CLASSVAL = lt_x3_ce_equi_classval
         RETURN = lt_return
         WSAP_EXTENSION = lt_wsap_extension
         EQUIPMENT_INST_EQUIS = lt_equipment_inst_equis
         EQUIPMENT_NOTIF_HIST = lt_equipment_notif_hist
         EQUIPMENT_ORDER_HIST = lt_equipment_order_hist
         EQUIPMENT_MEAS_POINTS = lt_equipment_meas_points
         EQUIPMENT_CONTRACTS = lt_equipment_contracts
         EQUIPMENT_PARTNERS = lt_equipment_partners
         EQUIPMENT_WARRANTY = lt_equipment_warranty
         EQUIPMENT_USER_STATUS = lt_equipment_user_status
. " MAM25_031_CHANGE_SD




ABAP code using 7.40 inline data declarations to call FM MAM25_031_CHANGE_SD

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).
 
 
 
 
 
 
 
 
 


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!