SAP ASSET_MOVEMENT_SIMULATE Function Module for
ASSET_MOVEMENT_SIMULATE is a standard asset movement simulate 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 asset movement simulate FM, simply by entering the name ASSET_MOVEMENT_SIMULATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: AINT
Program Name: SAPLAINT
Main Program: SAPLAINT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ASSET_MOVEMENT_SIMULATE 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 'ASSET_MOVEMENT_SIMULATE'".
EXPORTING
* I_ANBTR = 0 "
I_ANLAV = "
* I_BWASL = ' ' "
I_GJAHR = "
I_BZDAT = "
I_WAERS = "
* I_XSTOR = ' ' "
* I_XVABG = ' ' "
IMPORTING
E_ANTS = "
TABLES
T_ANEA = "
T_ANEP = "
T_ANFM = "
T_ANLB = "
T_ANLC = "
T_ANLZ = "
EXCEPTIONS
PARAMETER_INCONSISTENT = 1 PARAMETER_MISSING = 2
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_SAPLAINT_002 Dummy, needed for expanded syntax check, not used!!!
IMPORTING Parameters details for ASSET_MOVEMENT_SIMULATE
I_ANBTR -
Data type: ANEP-ANBTROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ANLAV -
Data type: ANLAVOptional: No
Call by Reference: No ( called with pass by value option)
I_BWASL -
Data type: ANEP-BWASLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: ANEP-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_BZDAT -
Data type: ANEP-BZDATOptional: No
Call by Reference: No ( called with pass by value option)
I_WAERS -
Data type: T093B-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_XSTOR -
Data type: RA01B-XSTORDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XVABG -
Data type: ANEP-XAWBTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ASSET_MOVEMENT_SIMULATE
E_ANTS -
Data type: ANTSOptional: No
Call by Reference: Yes
TABLES Parameters details for ASSET_MOVEMENT_SIMULATE
T_ANEA -
Data type: ANEAOptional: No
Call by Reference: No ( called with pass by value option)
T_ANEP -
Data type: ANEPOptional: No
Call by Reference: No ( called with pass by value option)
T_ANFM -
Data type: ANFMOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLB -
Data type: ANLBOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLC -
Data type: ANLCOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLZ -
Data type: ANLZOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_INCONSISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ASSET_MOVEMENT_SIMULATE 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_e_ants | TYPE ANTS, " | |||
| lt_t_anea | TYPE STANDARD TABLE OF ANEA, " | |||
| lv_i_anbtr | TYPE ANEP-ANBTR, " 0 | |||
| lv_parameter_inconsistent | TYPE ANEP, " | |||
| lt_t_anep | TYPE STANDARD TABLE OF ANEP, " | |||
| lv_i_anlav | TYPE ANLAV, " | |||
| lv_parameter_missing | TYPE ANLAV, " | |||
| lt_t_anfm | TYPE STANDARD TABLE OF ANFM, " | |||
| lv_i_bwasl | TYPE ANEP-BWASL, " ' ' | |||
| lt_t_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
| lv_i_gjahr | TYPE ANEP-GJAHR, " | |||
| lt_t_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
| lv_i_bzdat | TYPE ANEP-BZDAT, " | |||
| lt_t_anlz | TYPE STANDARD TABLE OF ANLZ, " | |||
| lv_i_waers | TYPE T093B-WAERS, " | |||
| lv_i_xstor | TYPE RA01B-XSTOR, " ' ' | |||
| lv_i_xvabg | TYPE ANEP-XAWBT. " ' ' |
|   CALL FUNCTION 'ASSET_MOVEMENT_SIMULATE' " |
| EXPORTING | ||
| I_ANBTR | = lv_i_anbtr | |
| I_ANLAV | = lv_i_anlav | |
| I_BWASL | = lv_i_bwasl | |
| I_GJAHR | = lv_i_gjahr | |
| I_BZDAT | = lv_i_bzdat | |
| I_WAERS | = lv_i_waers | |
| I_XSTOR | = lv_i_xstor | |
| I_XVABG | = lv_i_xvabg | |
| IMPORTING | ||
| E_ANTS | = lv_e_ants | |
| TABLES | ||
| T_ANEA | = lt_t_anea | |
| T_ANEP | = lt_t_anep | |
| T_ANFM | = lt_t_anfm | |
| T_ANLB | = lt_t_anlb | |
| T_ANLC | = lt_t_anlc | |
| T_ANLZ | = lt_t_anlz | |
| EXCEPTIONS | ||
| PARAMETER_INCONSISTENT = 1 | ||
| PARAMETER_MISSING = 2 | ||
| . " ASSET_MOVEMENT_SIMULATE | ||
ABAP code using 7.40 inline data declarations to call FM ASSET_MOVEMENT_SIMULATE
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 ANBTR FROM ANEP INTO @DATA(ld_i_anbtr). | ||||
| "SELECT single BWASL FROM ANEP INTO @DATA(ld_i_bwasl). | ||||
| DATA(ld_i_bwasl) | = ' '. | |||
| "SELECT single GJAHR FROM ANEP INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single BZDAT FROM ANEP INTO @DATA(ld_i_bzdat). | ||||
| "SELECT single WAERS FROM T093B INTO @DATA(ld_i_waers). | ||||
| "SELECT single XSTOR FROM RA01B INTO @DATA(ld_i_xstor). | ||||
| DATA(ld_i_xstor) | = ' '. | |||
| "SELECT single XAWBT FROM ANEP INTO @DATA(ld_i_xvabg). | ||||
| DATA(ld_i_xvabg) | = ' '. | |||
Search for further information about these or an SAP related objects