BAPI_FIXEDASSET_CHANGE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_FIXEDASSET_CHANGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
1022
Released Date:
19.05.1998
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE' "Changes an Asset
EXPORTING
companycode = " bapi1022_1-comp_code Company Code
asset = " bapi1022_1-assetmaino Main Asset Number
subnumber = " bapi1022_1-assetsubno Asset Subnumber
* groupasset = " bapi1022_misc-xanlgr Indicator: Asset is a group asset
* generaldata = " bapi1022_feglg001 General Data
* generaldatax = " bapi1022_feglg001x Change Parameters for General Data
* inventory = " bapi1022_feglg011 Inventory
* inventoryx = " bapi1022_feglg011x Change Parameters for Inventory
* postinginformation = " bapi1022_feglg002 Posting Information
* postinginformationx = " bapi1022_feglg002x Change Parameters for Posting Information
* timedependentdata = " bapi1022_feglg003 Time-Dependent Data
* timedependentdatax = " bapi1022_feglg003x Change Parameters for Time-Dependent Data
* allocations = " bapi1022_feglg004 Allocations
* allocationsx = " bapi1022_feglg004x Change Parameters for Allocations
* origin = " bapi1022_feglg009 Origin
* originx = " bapi1022_feglg009x Change Parameters for Origin
* investacctassignmnt = " bapi1022_feglg010 Account Assignment for Investment
* investacctassignmntx = " bapi1022_feglg010x Change Parameters for Investment Account Assignments
* networthvaluation = " bapi1022_feglg006 Net Worth Valuation
* networthvaluationx = " bapi1022_feglg006x Change Parameters for Net Worth Valuation
* realestate = " bapi1022_feglg007 Real Estate and Similar Rights
* realestatex = " bapi1022_feglg007x Change Parameters for Real Estate
* insurance = " bapi1022_feglg008 Insurance
* insurancex = " bapi1022_feglg008x Change Parameters for Insurance
* leasing = " bapi1022_feglg005 Leasing
* leasingx = " bapi1022_feglg005x Change Parameters for Leasing
IMPORTING
return = " bapiret2 Information about Errors which Occurred
* TABLES
* depreciationareas = " bapi1022_dep_areas Depreciation Areas
* depreciationareasx = " bapi1022_dep_areasx Change Parameters for Depreciation Areas
* investment_support = " bapi1022_inv_support Investment Support Key
* extensionin = " bapiparex Customer Enhancements
. " BAPI_FIXEDASSET_CHANGE
The ABAP code below is a full code listing to execute function module BAPI_FIXEDASSET_CHANGE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_return | TYPE BAPIRET2 , |
| it_depreciationareas | TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS,"TABLES PARAM |
| wa_depreciationareas | LIKE LINE OF it_depreciationareas , |
| it_depreciationareasx | TYPE STANDARD TABLE OF BAPI1022_DEP_AREASX,"TABLES PARAM |
| wa_depreciationareasx | LIKE LINE OF it_depreciationareasx , |
| it_investment_support | TYPE STANDARD TABLE OF BAPI1022_INV_SUPPORT,"TABLES PARAM |
| wa_investment_support | LIKE LINE OF it_investment_support , |
| it_extensionin | TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM |
| wa_extensionin | LIKE LINE OF it_extensionin . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_return | TYPE BAPIRET2 , |
| ld_companycode | TYPE BAPI1022_1-COMP_CODE , |
| it_depreciationareas | TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS , |
| wa_depreciationareas | LIKE LINE OF it_depreciationareas, |
| ld_asset | TYPE BAPI1022_1-ASSETMAINO , |
| it_depreciationareasx | TYPE STANDARD TABLE OF BAPI1022_DEP_AREASX , |
| wa_depreciationareasx | LIKE LINE OF it_depreciationareasx, |
| ld_subnumber | TYPE BAPI1022_1-ASSETSUBNO , |
| it_investment_support | TYPE STANDARD TABLE OF BAPI1022_INV_SUPPORT , |
| wa_investment_support | LIKE LINE OF it_investment_support, |
| ld_groupasset | TYPE BAPI1022_MISC-XANLGR , |
| it_extensionin | TYPE STANDARD TABLE OF BAPIPAREX , |
| wa_extensionin | LIKE LINE OF it_extensionin, |
| ld_generaldata | TYPE BAPI1022_FEGLG001 , |
| ld_generaldatax | TYPE BAPI1022_FEGLG001X , |
| ld_inventory | TYPE BAPI1022_FEGLG011 , |
| ld_inventoryx | TYPE BAPI1022_FEGLG011X , |
| ld_postinginformation | TYPE BAPI1022_FEGLG002 , |
| ld_postinginformationx | TYPE BAPI1022_FEGLG002X , |
| ld_timedependentdata | TYPE BAPI1022_FEGLG003 , |
| ld_timedependentdatax | TYPE BAPI1022_FEGLG003X , |
| ld_allocations | TYPE BAPI1022_FEGLG004 , |
| ld_allocationsx | TYPE BAPI1022_FEGLG004X , |
| ld_origin | TYPE BAPI1022_FEGLG009 , |
| ld_originx | TYPE BAPI1022_FEGLG009X , |
| ld_investacctassignmnt | TYPE BAPI1022_FEGLG010 , |
| ld_investacctassignmntx | TYPE BAPI1022_FEGLG010X , |
| ld_networthvaluation | TYPE BAPI1022_FEGLG006 , |
| ld_networthvaluationx | TYPE BAPI1022_FEGLG006X , |
| ld_realestate | TYPE BAPI1022_FEGLG007 , |
| ld_realestatex | TYPE BAPI1022_FEGLG007X , |
| ld_insurance | TYPE BAPI1022_FEGLG008 , |
| ld_insurancex | TYPE BAPI1022_FEGLG008X , |
| ld_leasing | TYPE BAPI1022_FEGLG005 , |
| ld_leasingx | TYPE BAPI1022_FEGLG005X . |
Using this method, you can change asset master records.
EXAMPLE
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_FIXEDASSET_CHANGE or its description.