SAP SAMPLE_INTERFACE_PM000020 Function Module for NOTRANSL: BTE: Verbuchung Equipment









SAMPLE_INTERFACE_PM000020 is a standard sample interface pm000020 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: BTE: Verbuchung Equipment 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 sample interface pm000020 FM, simply by entering the name SAMPLE_INTERFACE_PM000020 into the relevant SAP transaction such as SE37 or SE38.

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



Function SAMPLE_INTERFACE_PM000020 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 'SAMPLE_INTERFACE_PM000020'"NOTRANSL: BTE: Verbuchung Equipment
EXPORTING
HEQKT_OLD = "Equipment Short Texts
HEQBS_NEW = "Serial Number Stock Segment
HEQUI_OLD = "Equipment master data
HEQUZ_OLD = "Equipment time segment
HILOA_OLD = "PM Object Location and Account Assignment
HEQBS_OLD = "Serial Number Stock Segment
HEQKT_NEW = "Equipment Short Texts
HEQUI_NEW = "Equipment master data
HEQUZ_NEW = "Equipment time segment
HILOA_NEW = "PM Object Location and Account Assignment

TABLES
* IHPA_OLD = "Reference structure for XIHPA
* IHPA_NEW = "Reference structure for XIHPA
.



IMPORTING Parameters details for SAMPLE_INTERFACE_PM000020

HEQKT_OLD - Equipment Short Texts

Data type: EQKT
Optional: No
Call by Reference: Yes

HEQBS_NEW - Serial Number Stock Segment

Data type: EQBS
Optional: No
Call by Reference: Yes

HEQUI_OLD - Equipment master data

Data type: EQUI
Optional: No
Call by Reference: Yes

HEQUZ_OLD - Equipment time segment

Data type: EQUZ
Optional: No
Call by Reference: Yes

HILOA_OLD - PM Object Location and Account Assignment

Data type: ILOA
Optional: No
Call by Reference: Yes

HEQBS_OLD - Serial Number Stock Segment

Data type: EQBS
Optional: No
Call by Reference: Yes

HEQKT_NEW - Equipment Short Texts

Data type: EQKT
Optional: No
Call by Reference: Yes

HEQUI_NEW - Equipment master data

Data type: EQUI
Optional: No
Call by Reference: Yes

HEQUZ_NEW - Equipment time segment

Data type: EQUZ
Optional: No
Call by Reference: Yes

HILOA_NEW - PM Object Location and Account Assignment

Data type: ILOA
Optional: No
Call by Reference: Yes

TABLES Parameters details for SAMPLE_INTERFACE_PM000020

IHPA_OLD - Reference structure for XIHPA

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

IHPA_NEW - Reference structure for XIHPA

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

Copy and paste ABAP code example for SAMPLE_INTERFACE_PM000020 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:
lt_ihpa_old  TYPE STANDARD TABLE OF IHPAVB, "   
lv_heqkt_old  TYPE EQKT, "   
lv_heqbs_new  TYPE EQBS, "   
lt_ihpa_new  TYPE STANDARD TABLE OF IHPAVB, "   
lv_hequi_old  TYPE EQUI, "   
lv_hequz_old  TYPE EQUZ, "   
lv_hiloa_old  TYPE ILOA, "   
lv_heqbs_old  TYPE EQBS, "   
lv_heqkt_new  TYPE EQKT, "   
lv_hequi_new  TYPE EQUI, "   
lv_hequz_new  TYPE EQUZ, "   
lv_hiloa_new  TYPE ILOA. "   

  CALL FUNCTION 'SAMPLE_INTERFACE_PM000020'  "NOTRANSL: BTE: Verbuchung Equipment
    EXPORTING
         HEQKT_OLD = lv_heqkt_old
         HEQBS_NEW = lv_heqbs_new
         HEQUI_OLD = lv_hequi_old
         HEQUZ_OLD = lv_hequz_old
         HILOA_OLD = lv_hiloa_old
         HEQBS_OLD = lv_heqbs_old
         HEQKT_NEW = lv_heqkt_new
         HEQUI_NEW = lv_hequi_new
         HEQUZ_NEW = lv_hequz_new
         HILOA_NEW = lv_hiloa_new
    TABLES
         IHPA_OLD = lt_ihpa_old
         IHPA_NEW = lt_ihpa_new
. " SAMPLE_INTERFACE_PM000020




ABAP code using 7.40 inline data declarations to call FM SAMPLE_INTERFACE_PM000020

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.

 
 
 
 
 
 
 
 
 
 
 
 


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!