SAP ALE_FIXEDASSET_CREATE Function Module for









ALE_FIXEDASSET_CREATE is a standard ale fixedasset create 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 ale fixedasset create FM, simply by entering the name ALE_FIXEDASSET_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function ALE_FIXEDASSET_CREATE 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 'ALE_FIXEDASSET_CREATE'"
EXPORTING
COMPANYCODE = "Company Code
* POSTINGINFORMATION = "Posting Information
* POSTINGINFORMATIONX = "Change Parameters for Posting Information
* TIMEDEPENDENTDATA = "Time-Dependent Data
* TIMEDEPENDENTDATAX = "Change Parameters for Time-Dependent Data
* ALLOCATIONS = "Assignments
* ALLOCATIONSX = "Change Parameters for Allocations
* ORIGIN = "Origin
* ORIGINX = "Change Parameters for Origin
* INVESTACCTASSIGNMNT = "Account Assignment for Investment
* INVESTACCTASSIGNMNTX = "Change Parameters for Investment Account Assignments
* ASSET = "Main Asset Number
* NETWORTHVALUATION = "Net Worth Valuation
* NETWORTHVALUATIONX = "Change Parameters for Net Worth Valuation
* REALESTATE = "Real Estate and Similar Rights
* REALESTATEX = "Change Parameters for Real Estate
* INSURANCE = "Insurance
* INSURANCEX = "Change Parameters for Insurance
* LEASING = "Leasing
* LEASINGX = "Change Parameters for Leasing
* OBJ_TYPE = 'BUS1022' "
* SERIAL_ID = '0' "
* SUBNUMBER = "Asset Subnumber
* REFERENCE = "Reference for Creating Using Reference
* CREATESUBNUMBER = "Create Asset Subnumber?
* GENERALDATA = "General Data
* GENERALDATAX = "Change Parameters for General Data
* INVENTORY = "Physical Inventory
* INVENTORYX = "Change Parameters for Inventory

TABLES
* DEPRECIATIONAREAS = "
* DEPRECIATIONAREASX = "Change Parameters for Depreciation Areas
* EXTENSIONIN = "Customer Enhancements
RECEIVERS = "
* COMMUNICATION_DOCUMENTS = "
* APPLICATION_OBJECTS = "

EXCEPTIONS
ERROR_CREATING_IDOCS = 1
.




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_SAPL1022_001 Check of User-Defined Fields when Using Create and Change BAPI

IMPORTING Parameters details for ALE_FIXEDASSET_CREATE

COMPANYCODE - Company Code

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

POSTINGINFORMATION - Posting Information

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

POSTINGINFORMATIONX - Change Parameters for Posting Information

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

TIMEDEPENDENTDATA - Time-Dependent Data

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

TIMEDEPENDENTDATAX - Change Parameters for Time-Dependent Data

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

ALLOCATIONS - Assignments

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

ALLOCATIONSX - Change Parameters for Allocations

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

ORIGIN - Origin

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

ORIGINX - Change Parameters for Origin

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

INVESTACCTASSIGNMNT - Account Assignment for Investment

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

INVESTACCTASSIGNMNTX - Change Parameters for Investment Account Assignments

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

ASSET - Main Asset Number

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

NETWORTHVALUATION - Net Worth Valuation

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

NETWORTHVALUATIONX - Change Parameters for Net Worth Valuation

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

REALESTATE - Real Estate and Similar Rights

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

REALESTATEX - Change Parameters for Real Estate

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

INSURANCE - Insurance

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

INSURANCEX - Change Parameters for Insurance

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

LEASING - Leasing

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

LEASINGX - Change Parameters for Leasing

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

OBJ_TYPE -

Data type: SERIAL-OBJ_TYPE
Default: 'BUS1022'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SERIAL_ID -

Data type: SERIAL-CHNUM
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBNUMBER - Asset Subnumber

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

REFERENCE - Reference for Creating Using Reference

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

CREATESUBNUMBER - Create Asset Subnumber?

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

GENERALDATA - General Data

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

GENERALDATAX - Change Parameters for General Data

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

INVENTORY - Physical Inventory

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

INVENTORYX - Change Parameters for Inventory

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

TABLES Parameters details for ALE_FIXEDASSET_CREATE

DEPRECIATIONAREAS -

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

DEPRECIATIONAREASX - Change Parameters for Depreciation Areas

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

EXTENSIONIN - Customer Enhancements

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

RECEIVERS -

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

COMMUNICATION_DOCUMENTS -

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

APPLICATION_OBJECTS -

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

EXCEPTIONS details

ERROR_CREATING_IDOCS -

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

Copy and paste ABAP code example for ALE_FIXEDASSET_CREATE 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_companycode  TYPE BAPI1022_1-COMP_CODE, "   
lt_depreciationareas  TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS, "   
lv_error_creating_idocs  TYPE BAPI1022_DEP_AREAS, "   
lv_postinginformation  TYPE BAPI1022_FEGLG002, "   
lv_postinginformationx  TYPE BAPI1022_FEGLG002X, "   
lv_timedependentdata  TYPE BAPI1022_FEGLG003, "   
lv_timedependentdatax  TYPE BAPI1022_FEGLG003X, "   
lv_allocations  TYPE BAPI1022_FEGLG004, "   
lv_allocationsx  TYPE BAPI1022_FEGLG004X, "   
lv_origin  TYPE BAPI1022_FEGLG009, "   
lv_originx  TYPE BAPI1022_FEGLG009X, "   
lv_investacctassignmnt  TYPE BAPI1022_FEGLG010, "   
lv_investacctassignmntx  TYPE BAPI1022_FEGLG010X, "   
lv_asset  TYPE BAPI1022_1-ASSETMAINO, "   
lt_depreciationareasx  TYPE STANDARD TABLE OF BAPI1022_DEP_AREASX, "   
lv_networthvaluation  TYPE BAPI1022_FEGLG006, "   
lv_networthvaluationx  TYPE BAPI1022_FEGLG006X, "   
lv_realestate  TYPE BAPI1022_FEGLG007, "   
lv_realestatex  TYPE BAPI1022_FEGLG007X, "   
lv_insurance  TYPE BAPI1022_FEGLG008, "   
lv_insurancex  TYPE BAPI1022_FEGLG008X, "   
lv_leasing  TYPE BAPI1022_FEGLG005, "   
lv_leasingx  TYPE BAPI1022_FEGLG005X, "   
lv_obj_type  TYPE SERIAL-OBJ_TYPE, "   'BUS1022'
lv_serial_id  TYPE SERIAL-CHNUM, "   '0'
lv_subnumber  TYPE BAPI1022_1-ASSETSUBNO, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS, "   
lv_reference  TYPE BAPI1022_REFERENCE, "   
lv_createsubnumber  TYPE BAPI1022_MISC-XSUBNO, "   
lt_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID, "   
lv_generaldata  TYPE BAPI1022_FEGLG001, "   
lt_application_objects  TYPE STANDARD TABLE OF SWOTOBJID, "   
lv_generaldatax  TYPE BAPI1022_FEGLG001X, "   
lv_inventory  TYPE BAPI1022_FEGLG011, "   
lv_inventoryx  TYPE BAPI1022_FEGLG011X. "   

  CALL FUNCTION 'ALE_FIXEDASSET_CREATE'  "
    EXPORTING
         COMPANYCODE = lv_companycode
         POSTINGINFORMATION = lv_postinginformation
         POSTINGINFORMATIONX = lv_postinginformationx
         TIMEDEPENDENTDATA = lv_timedependentdata
         TIMEDEPENDENTDATAX = lv_timedependentdatax
         ALLOCATIONS = lv_allocations
         ALLOCATIONSX = lv_allocationsx
         ORIGIN = lv_origin
         ORIGINX = lv_originx
         INVESTACCTASSIGNMNT = lv_investacctassignmnt
         INVESTACCTASSIGNMNTX = lv_investacctassignmntx
         ASSET = lv_asset
         NETWORTHVALUATION = lv_networthvaluation
         NETWORTHVALUATIONX = lv_networthvaluationx
         REALESTATE = lv_realestate
         REALESTATEX = lv_realestatex
         INSURANCE = lv_insurance
         INSURANCEX = lv_insurancex
         LEASING = lv_leasing
         LEASINGX = lv_leasingx
         OBJ_TYPE = lv_obj_type
         SERIAL_ID = lv_serial_id
         SUBNUMBER = lv_subnumber
         REFERENCE = lv_reference
         CREATESUBNUMBER = lv_createsubnumber
         GENERALDATA = lv_generaldata
         GENERALDATAX = lv_generaldatax
         INVENTORY = lv_inventory
         INVENTORYX = lv_inventoryx
    TABLES
         DEPRECIATIONAREAS = lt_depreciationareas
         DEPRECIATIONAREASX = lt_depreciationareasx
         EXTENSIONIN = lt_extensionin
         RECEIVERS = lt_receivers
         COMMUNICATION_DOCUMENTS = lt_communication_documents
         APPLICATION_OBJECTS = lt_application_objects
    EXCEPTIONS
        ERROR_CREATING_IDOCS = 1
. " ALE_FIXEDASSET_CREATE




ABAP code using 7.40 inline data declarations to call FM ALE_FIXEDASSET_CREATE

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 COMP_CODE FROM BAPI1022_1 INTO @DATA(ld_companycode).
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single ASSETMAINO FROM BAPI1022_1 INTO @DATA(ld_asset).
 
 
 
 
 
 
 
 
 
 
"SELECT single OBJ_TYPE FROM SERIAL INTO @DATA(ld_obj_type).
DATA(ld_obj_type) = 'BUS1022'.
 
"SELECT single CHNUM FROM SERIAL INTO @DATA(ld_serial_id).
DATA(ld_serial_id) = '0'.
 
"SELECT single ASSETSUBNO FROM BAPI1022_1 INTO @DATA(ld_subnumber).
 
 
 
 
"SELECT single XSUBNO FROM BAPI1022_MISC INTO @DATA(ld_createsubnumber).
 
 
 
 
 
 
 


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!