SAP ALM_ME_FUNCLOC_GETDETAIL Function Module for Detail Data for Functional Location









ALM_ME_FUNCLOC_GETDETAIL is a standard alm me funcloc 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 Detail Data for Functional Location 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 funcloc getdetail FM, simply by entering the name ALM_ME_FUNCLOC_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: ALM_ME_TOB_ITEM
Program Name: SAPLALM_ME_TOB_ITEM
Main Program: SAPLALM_ME_TOB_ITEM
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ALM_ME_FUNCLOC_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 'ALM_ME_FUNCLOC_GETDETAIL'"Detail Data for Functional Location
EXPORTING
I_FUNCLOC = "Functional Location
* I_PARTNER_TPA_KEY = ' ' "
* I_MEASPT_WITH_CODES = ' ' "

IMPORTING
E_FUNCLOC_HEADER = "Header Data for Technical Object

TABLES
* T_FUNCLOC_INST_EQUIS = "Installed Equipment
* FUNCLOC_ADDDETAILS = "Additional Attributes in the Header Data of Technical Object
* RETURN = "Return Parameter(s)
* T_FUNCLOC_NOTIF_HISTORY = "Notification History for Technical Object
* T_FUNCLOC_ORDER_HISTORY = "Order History for Technical Object
* T_FUNCLOC_MEASUREMENT_POINTS = "Measuring Point Key
* T_FUNCLOC_CONTRACTS = "Contract Data
* T_FUNCLOC_PARTNERS = "Partner Key
* T_FUNCLOC_WARRANTIES = "Warranty Data for Technical Object
* T_FUNCLOC_USERSTATUS = "Table with Status Changes for User Status
* T_FUNCLOC_CLASSVALUES = "Assigned Values for Characteristics

EXCEPTIONS
NOT_SUCCESSFUL = 1
.



IMPORTING Parameters details for ALM_ME_FUNCLOC_GETDETAIL

I_FUNCLOC - Functional Location

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

I_PARTNER_TPA_KEY -

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

I_MEASPT_WITH_CODES -

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

EXPORTING Parameters details for ALM_ME_FUNCLOC_GETDETAIL

E_FUNCLOC_HEADER - Header Data for Technical Object

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

TABLES Parameters details for ALM_ME_FUNCLOC_GETDETAIL

T_FUNCLOC_INST_EQUIS - Installed Equipment

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

FUNCLOC_ADDDETAILS - Additional Attributes in the Header Data of Technical Object

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

RETURN - Return Parameter(s)

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

T_FUNCLOC_NOTIF_HISTORY - Notification History for Technical Object

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

T_FUNCLOC_ORDER_HISTORY - Order History for Technical Object

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

T_FUNCLOC_MEASUREMENT_POINTS - Measuring Point Key

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

T_FUNCLOC_CONTRACTS - Contract Data

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

T_FUNCLOC_PARTNERS - Partner Key

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

T_FUNCLOC_WARRANTIES - Warranty Data for Technical Object

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

T_FUNCLOC_USERSTATUS - Table with Status Changes for User Status

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

T_FUNCLOC_CLASSVALUES - Assigned Values for Characteristics

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

EXCEPTIONS details

NOT_SUCCESSFUL -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ALM_ME_FUNCLOC_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_i_funcloc  TYPE TPLNR, "   
lv_not_successful  TYPE TPLNR, "   
lv_e_funcloc_header  TYPE ALM_ME_TOB_HEADER, "   
lt_t_funcloc_inst_equis  TYPE STANDARD TABLE OF ALM_ME_INSTALLED_EQUI, "   
lt_funcloc_adddetails  TYPE STANDARD TABLE OF ALM_ME_ADD_HEADER_DATA, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_i_partner_tpa_key  TYPE FLAG, "   ' '
lt_t_funcloc_notif_history  TYPE STANDARD TABLE OF ALM_ME_TOB_NOTIF_HISTORY, "   
lv_i_measpt_with_codes  TYPE FLAG, "   SPACE
lt_t_funcloc_order_history  TYPE STANDARD TABLE OF ALM_ME_TOB_ORDER_HISTORY, "   
lt_t_funcloc_measurement_points  TYPE STANDARD TABLE OF ALM_ME_MEASMNT_PT_KEY, "   
lt_t_funcloc_contracts  TYPE STANDARD TABLE OF ALM_ME_CONTRACT_HEADER, "   
lt_t_funcloc_partners  TYPE STANDARD TABLE OF ALM_ME_PARTNER_KEY_STRUCT, "   
lt_t_funcloc_warranties  TYPE STANDARD TABLE OF ALM_ME_TOB_WARRANTY, "   
lt_t_funcloc_userstatus  TYPE STANDARD TABLE OF ALM_ME_USER_STATUS_CHANGES, "   
lt_t_funcloc_classvalues  TYPE STANDARD TABLE OF ALM_ME_CLASSVALUES. "   

  CALL FUNCTION 'ALM_ME_FUNCLOC_GETDETAIL'  "Detail Data for Functional Location
    EXPORTING
         I_FUNCLOC = lv_i_funcloc
         I_PARTNER_TPA_KEY = lv_i_partner_tpa_key
         I_MEASPT_WITH_CODES = lv_i_measpt_with_codes
    IMPORTING
         E_FUNCLOC_HEADER = lv_e_funcloc_header
    TABLES
         T_FUNCLOC_INST_EQUIS = lt_t_funcloc_inst_equis
         FUNCLOC_ADDDETAILS = lt_funcloc_adddetails
         RETURN = lt_return
         T_FUNCLOC_NOTIF_HISTORY = lt_t_funcloc_notif_history
         T_FUNCLOC_ORDER_HISTORY = lt_t_funcloc_order_history
         T_FUNCLOC_MEASUREMENT_POINTS = lt_t_funcloc_measurement_points
         T_FUNCLOC_CONTRACTS = lt_t_funcloc_contracts
         T_FUNCLOC_PARTNERS = lt_t_funcloc_partners
         T_FUNCLOC_WARRANTIES = lt_t_funcloc_warranties
         T_FUNCLOC_USERSTATUS = lt_t_funcloc_userstatus
         T_FUNCLOC_CLASSVALUES = lt_t_funcloc_classvalues
    EXCEPTIONS
        NOT_SUCCESSFUL = 1
. " ALM_ME_FUNCLOC_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM ALM_ME_FUNCLOC_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.

 
 
 
 
 
 
DATA(ld_i_partner_tpa_key) = ' '.
 
 
DATA(ld_i_measpt_with_codes) = ' '.
 
 
 
 
 
 
 
 


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!