SAP AAPM_AA_SYNCHRONIZE Function Module for









AAPM_AA_SYNCHRONIZE is a standard aapm aa synchronize SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 aapm aa synchronize FM, simply by entering the name AAPM_AA_SYNCHRONIZE into the relevant SAP transaction such as SE37 or SE38.

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



Function AAPM_AA_SYNCHRONIZE 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 'AAPM_AA_SYNCHRONIZE'"
EXPORTING
ID_AKTYP = "
* IS_ANLZ_KEY = "
ID_CALLTIME = "
* ID_DIALOG = "
* ID_USE_KEY = 'X' "
* IS_EQUI_DAT = "
* IS_ANLA = "
* IS_ANLZ = "
* IS_ANLV = "
* IS_ANLU = "

IMPORTING
ES_EQUI_DAT = "
ED_CREATE_AA = "
ED_CHANGE_AA = "
ED_CHANGE_PM = "
ED_CREATE_DONE = "
ED_CHANGE_DONE = "
ED_NO_CHANGES = "

EXCEPTIONS
EQUI_NOT_FOUND = 1 DATA_NOT_FOUND = 2 DATA_NOT_MATCH = 3 ERROR_FROM_EQUIP = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAAPM_001 User Exit for Deriving Asset Class from Fields of Plant Maintenance
EXIT_SAPLAAPM_002 User Exit for Deriving Equipment Category from Fields of Asset Accounting

IMPORTING Parameters details for AAPM_AA_SYNCHRONIZE

ID_AKTYP -

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

IS_ANLZ_KEY -

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

ID_CALLTIME -

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

ID_DIALOG -

Data type: ITOB_TYPES-BOOL
Optional: Yes
Call by Reference: Yes

ID_USE_KEY -

Data type: ITOB_TYPES-BOOL
Default: 'X'
Optional: Yes
Call by Reference: Yes

IS_EQUI_DAT -

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

IS_ANLA -

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

IS_ANLZ -

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

IS_ANLV -

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

IS_ANLU -

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

EXPORTING Parameters details for AAPM_AA_SYNCHRONIZE

ES_EQUI_DAT -

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

ED_CREATE_AA -

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

ED_CHANGE_AA -

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

ED_CHANGE_PM -

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

ED_CREATE_DONE -

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

ED_CHANGE_DONE -

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

ED_NO_CHANGES -

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

EXCEPTIONS details

EQUI_NOT_FOUND -

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

DATA_NOT_FOUND -

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

DATA_NOT_MATCH -

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

ERROR_FROM_EQUIP -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AAPM_AA_SYNCHRONIZE 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_id_aktyp  TYPE AKTYP, "   
lv_es_equi_dat  TYPE AAPM_AA_EQUI_DAT, "   
lv_equi_not_found  TYPE AAPM_AA_EQUI_DAT, "   
lv_is_anlz_key  TYPE ANLZ_KEY, "   
lv_id_calltime  TYPE AAPMT_CALLTIME, "   
lv_ed_create_aa  TYPE AAPM_ACT_CREATE_AA, "   
lv_data_not_found  TYPE AAPM_ACT_CREATE_AA, "   
lv_id_dialog  TYPE ITOB_TYPES-BOOL, "   
lv_ed_change_aa  TYPE AAPM_ACT_CHANGE_AA, "   
lv_data_not_match  TYPE AAPM_ACT_CHANGE_AA, "   
lv_id_use_key  TYPE ITOB_TYPES-BOOL, "   'X'
lv_ed_change_pm  TYPE AAPM_ACT_CHANGE_PM, "   
lv_error_from_equip  TYPE AAPM_ACT_CHANGE_PM, "   
lv_is_equi_dat  TYPE AAPM_AA_EQUI_DAT, "   
lv_ed_create_done  TYPE AAPM_ACT_CREATE_AA, "   
lv_is_anla  TYPE ANLA, "   
lv_ed_change_done  TYPE AAPM_ACT_CREATE_AA, "   
lv_is_anlz  TYPE ANLZ, "   
lv_ed_no_changes  TYPE C, "   
lv_is_anlv  TYPE ANLV, "   
lv_is_anlu  TYPE ANLU. "   

  CALL FUNCTION 'AAPM_AA_SYNCHRONIZE'  "
    EXPORTING
         ID_AKTYP = lv_id_aktyp
         IS_ANLZ_KEY = lv_is_anlz_key
         ID_CALLTIME = lv_id_calltime
         ID_DIALOG = lv_id_dialog
         ID_USE_KEY = lv_id_use_key
         IS_EQUI_DAT = lv_is_equi_dat
         IS_ANLA = lv_is_anla
         IS_ANLZ = lv_is_anlz
         IS_ANLV = lv_is_anlv
         IS_ANLU = lv_is_anlu
    IMPORTING
         ES_EQUI_DAT = lv_es_equi_dat
         ED_CREATE_AA = lv_ed_create_aa
         ED_CHANGE_AA = lv_ed_change_aa
         ED_CHANGE_PM = lv_ed_change_pm
         ED_CREATE_DONE = lv_ed_create_done
         ED_CHANGE_DONE = lv_ed_change_done
         ED_NO_CHANGES = lv_ed_no_changes
    EXCEPTIONS
        EQUI_NOT_FOUND = 1
        DATA_NOT_FOUND = 2
        DATA_NOT_MATCH = 3
        ERROR_FROM_EQUIP = 4
. " AAPM_AA_SYNCHRONIZE




ABAP code using 7.40 inline data declarations to call FM AAPM_AA_SYNCHRONIZE

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 BOOL FROM ITOB_TYPES INTO @DATA(ld_id_dialog).
 
 
 
"SELECT single BOOL FROM ITOB_TYPES INTO @DATA(ld_id_use_key).
DATA(ld_id_use_key) = 'X'.
 
 
 
 
 
 
 
 
 
 
 


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!