ASSET_MASTERRECORD_MAINTENANCE 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 ASSET_MASTERRECORD_MAINTENANCE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
AIST
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ASSET_MASTERRECORD_MAINTENANCE' "
* EXPORTING
* i_anford_bild = 'X' " t020-koart
* i_anli = SPACE " anli
* i_anlkl = SPACE " anka-anlkl Asset Class
* i_anlkl_fix = SPACE " t020-koart
* i_anln1 = SPACE " anla-anln1
* i_anln2 = SPACE " anla-anln2
* i_bukrs = SPACE " anla-bukrs Company Code
* i_bukrs_fix = SPACE " t020-koart
* i_gsber_fix = SPACE " t020-koart
* i_daten = SPACE " raist01
* i_dialog = SPACE " t020-aktyp
* i_dynnr = '0098' " sy-dynnr
* i_invest_masn = SPACE " t020-aktyp
* i_ohne_sichern = 'X' " t020-koart
* i_old_data = SPACE " t020-koart Legacy Data Transfer
* i_ranl1 = SPACE " ra02s-ranl1
* i_ranl2 = SPACE " ra02s-ranl2
* i_rbukr = SPACE " ra02s-rbukr
* i_nassets = '001' " ra02s-nassets
* i_repid = 'SAPLAIST' " sy-repid
* i_trtyp = 'H' " t020-aktyp
* i_untnr = SPACE " t020-koart
* i_xnach = SPACE " ra02s-xnach
* i_ohne_verbuchung = SPACE " t020-koart
* i_complex = SPACE " t020-koart
* i_pruef = SPACE " t020-koart
* i_deakt = '0' " t020-koart
* i_equi = 'X' " equi_maintain Automatic Maintenance of Equipment from Asset Master Record
* i_fund_invest = SPACE " t020-aktyp
* i_anla = " anla
* i_anlax = " anlax
* i_anlz = " anlz
* i_anlzx = " anlzx
* i_anlv = " anlv
* i_anlvx = " anlvx
* i_anli2 = " anli
* i_anli2x = " anlix
* i_anlu = " anlu
* i_anlhtxt = " anlh-anlhtxt Asset main number text
* i_anlhtxtx = " xfeld Checkbox
* i_reorg_change = " faa_reorg_change Asset Change Due to Reorganization
IMPORTING
e_anln1 = " anla-anln1
e_anln2 = " anla-anln2
e_parm_flag = "
e_bukrs = " anla-bukrs Company Code
e_error = "
e_anlh = " anlh
e_anla = " anla
e_anlv = " anlv
e_anlu = " anlu
* TABLES
* t_anlz = " anlz
* t_anlb = " anlb
* t_anlbx = " anlbx
* t_anlc = " anlc
* t_new_assets = " raist06
EXCEPTIONS
NO_ANLKL = 1 "
TRTYP_INVALID = 2 "
ASSET_INCOMPLETE = 3 "
. " ASSET_MASTERRECORD_MAINTENANCE
The ABAP code below is a full code listing to execute function module ASSET_MASTERRECORD_MAINTENANCE 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_e_anln1 | TYPE ANLA-ANLN1 , |
| ld_e_anln2 | TYPE ANLA-ANLN2 , |
| ld_e_parm_flag | TYPE STRING , |
| ld_e_bukrs | TYPE ANLA-BUKRS , |
| ld_e_error | TYPE STRING , |
| ld_e_anlh | TYPE ANLH , |
| ld_e_anla | TYPE ANLA , |
| ld_e_anlv | TYPE ANLV , |
| ld_e_anlu | TYPE ANLU , |
| it_t_anlz | TYPE STANDARD TABLE OF ANLZ,"TABLES PARAM |
| wa_t_anlz | LIKE LINE OF it_t_anlz , |
| it_t_anlb | TYPE STANDARD TABLE OF ANLB,"TABLES PARAM |
| wa_t_anlb | LIKE LINE OF it_t_anlb , |
| it_t_anlbx | TYPE STANDARD TABLE OF ANLBX,"TABLES PARAM |
| wa_t_anlbx | LIKE LINE OF it_t_anlbx , |
| it_t_anlc | TYPE STANDARD TABLE OF ANLC,"TABLES PARAM |
| wa_t_anlc | LIKE LINE OF it_t_anlc , |
| it_t_new_assets | TYPE STANDARD TABLE OF RAIST06,"TABLES PARAM |
| wa_t_new_assets | LIKE LINE OF it_t_new_assets . |
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_e_anln1 | TYPE ANLA-ANLN1 , |
| it_t_anlz | TYPE STANDARD TABLE OF ANLZ , |
| wa_t_anlz | LIKE LINE OF it_t_anlz, |
| ld_i_anford_bild | TYPE T020-KOART , |
| ld_e_anln2 | TYPE ANLA-ANLN2 , |
| it_t_anlb | TYPE STANDARD TABLE OF ANLB , |
| wa_t_anlb | LIKE LINE OF it_t_anlb, |
| ld_i_anli | TYPE ANLI , |
| it_t_anlbx | TYPE STANDARD TABLE OF ANLBX , |
| wa_t_anlbx | LIKE LINE OF it_t_anlbx, |
| ld_i_anlkl | TYPE ANKA-ANLKL , |
| ld_e_parm_flag | TYPE STRING , |
| ld_i_anlkl_fix | TYPE T020-KOART , |
| it_t_anlc | TYPE STANDARD TABLE OF ANLC , |
| wa_t_anlc | LIKE LINE OF it_t_anlc, |
| ld_e_bukrs | TYPE ANLA-BUKRS , |
| ld_i_anln1 | TYPE ANLA-ANLN1 , |
| it_t_new_assets | TYPE STANDARD TABLE OF RAIST06 , |
| wa_t_new_assets | LIKE LINE OF it_t_new_assets, |
| ld_e_error | TYPE STRING , |
| ld_i_anln2 | TYPE ANLA-ANLN2 , |
| ld_e_anlh | TYPE ANLH , |
| ld_i_bukrs | TYPE ANLA-BUKRS , |
| ld_e_anla | TYPE ANLA , |
| ld_e_anlv | TYPE ANLV , |
| ld_i_bukrs_fix | TYPE T020-KOART , |
| ld_i_gsber_fix | TYPE T020-KOART , |
| ld_e_anlu | TYPE ANLU , |
| ld_i_daten | TYPE RAIST01 , |
| ld_i_dialog | TYPE T020-AKTYP , |
| ld_i_dynnr | TYPE SY-DYNNR , |
| ld_i_invest_masn | TYPE T020-AKTYP , |
| ld_i_ohne_sichern | TYPE T020-KOART , |
| ld_i_old_data | TYPE T020-KOART , |
| ld_i_ranl1 | TYPE RA02S-RANL1 , |
| ld_i_ranl2 | TYPE RA02S-RANL2 , |
| ld_i_rbukr | TYPE RA02S-RBUKR , |
| ld_i_nassets | TYPE RA02S-NASSETS , |
| ld_i_repid | TYPE SY-REPID , |
| ld_i_trtyp | TYPE T020-AKTYP , |
| ld_i_untnr | TYPE T020-KOART , |
| ld_i_xnach | TYPE RA02S-XNACH , |
| ld_i_ohne_verbuchung | TYPE T020-KOART , |
| ld_i_complex | TYPE T020-KOART , |
| ld_i_pruef | TYPE T020-KOART , |
| ld_i_deakt | TYPE T020-KOART , |
| ld_i_equi | TYPE EQUI_MAINTAIN , |
| ld_i_fund_invest | TYPE T020-AKTYP , |
| ld_i_anla | TYPE ANLA , |
| ld_i_anlax | TYPE ANLAX , |
| ld_i_anlz | TYPE ANLZ , |
| ld_i_anlzx | TYPE ANLZX , |
| ld_i_anlv | TYPE ANLV , |
| ld_i_anlvx | TYPE ANLVX , |
| ld_i_anli2 | TYPE ANLI , |
| ld_i_anli2x | TYPE ANLIX , |
| ld_i_anlu | TYPE ANLU , |
| ld_i_anlhtxt | TYPE ANLH-ANLHTXT , |
| ld_i_anlhtxtx | TYPE XFELD , |
| ld_i_reorg_change | TYPE FAA_REORG_CHANGE . |
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 ASSET_MASTERRECORD_MAINTENANCE or its description.