2010 Aug 12 10:53 AM
Hi,
Are there function modules available for blocking,unblocking and deleting assets in SAP.
Can I user 'BAPI_FIXEDASSET_CHANGE' for the same?
Thanks in adavnce,
Laxman
2010 Aug 12 12:37 PM
I think no.
so use report RAALTD01 or fm ASSET_MASTERRECORD_MAINTENANCE
here change fields anla-xspeb for blocking
and xloev for deleting
maybe before deleting you've to post a retirement (abavn) to your asset so that asset is deactive...
hope that helps
Edited by: Andreas Mann on Aug 12, 2010 1:37 PM
2010 Aug 16 8:55 AM
Hey,
I tried by putting the values of company code,asset number,subnumber, transaction type as 'A' and passing the value of INLA-XSPEB as 'X' in FM ASSET_MASTERRECORD_MAINTENANCE to block the asset but it is not working. I am trying many other things. Can you suggest what are the mandatory fields that need to be passed for the asset to be blocked.
As there are lot of parameters in this FM, I am little confused. Is there a proper documentation available somewhere to understand the flow.
Thanks in advance for the help.
Laxman Pai.
2020 Dec 12 3:12 AM
Pls refer to below code
*&---------------------------------------------------------------------*
*& Report ZASSET_MASTERRECORD_MAINT
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zasset_masterrecord_maint.
TABLES: anla.
DATA i_anla TYPE anla.
DATA i_anlax TYPE anlax.
DATA e_anla TYPE anla.
i_anla-bukrs = '4002'.
i_anla-anln1 = '000070000002'.
i_anla-anln2 = '0000'.
i_anla-anlkl = 'Y100'.
i_anla-xspeb = 'X'.
i_anlax-bukrs = 'X'.
i_anlax-anln1 = 'X'.
i_anlax-anln2 = 'X'.
i_anlax-anlkl = 'X'.
i_anlax-xspeb = 'X'.
CALL FUNCTION 'ASSET_MASTERRECORD_MAINTENANCE'
EXPORTING
* I_ANFORD_BILD = 'X'
* I_ANLI = ' '
i_anlkl = 'Y100'
* I_ANLKL_FIX = ' '
i_anln1 = '000070000002'
i_anln2 = '0000'
i_bukrs = '4002'
* I_BUKRS_FIX = ' '
* I_GSBER_FIX = ' '
* I_DATEN = ' '
* I_DIALOG = ' '
* I_DYNNR = '0098'
* I_INVEST_MASN = ' '
* I_OHNE_SICHERN = 'X'
* I_OLD_DATA = ' '
* I_RANL1 = ' '
* I_RANL2 = ' '
* I_RBUKR = ' '
* I_NASSETS = '001'
* I_REPID = 'SAPLAIST'
i_trtyp = 'V'
* I_UNTNR = ' '
* I_XNACH = ' '
* I_OHNE_VERBUCHUNG = ' '
* I_COMPLEX = ' '
* I_PRUEF = ' '
* I_DEAKT = '0'
* I_EQUI = 'X'
* I_FUND_INVEST = ' '
i_anla = i_anla
i_anlax = i_anlax
* I_ANLZ =
* I_ANLZX =
* I_ANLV =
* I_ANLVX =
* I_ANLI2 =
* I_ANLI2X =
* I_ANLU =
* I_ANLHTXT =
* I_ANLHTXTX =
* I_REORG_CHANGE =
* I_GLOFAAASSETDATA =
* I_GLOFAAASSETDATAX =
* I_GLOFAATMDPNDNT =
* I_GLOFAATMDPNDNTX =
IMPORTING
* E_ANLN1 =
* E_ANLN2 =
* E_PARM_FLAG =
* E_BUKRS =
* E_ERROR =
* E_ANLH =
e_anla = e_anla
* E_ANLV =
* E_ANLU =
* TABLES
* T_ANLZ =
* T_ANLB =
* T_ANLBX =
* T_ANLC =
* T_NEW_ASSETS =
EXCEPTIONS
no_anlkl = 1
trtyp_invalid = 2
asset_incomplete = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
WRITE 'NOT OK'.
ELSE.
COMMIT WORK.
WRITE 'OK'.
ENDIF.
2021 Feb 19 3:08 PM
Hi luotong
The code is working fine for Blocking space to X - XSPEB,but when i try to use the same FM for unblocking X to space,it is not updating the table.Anything needs to be checked?
2021 Sep 24 6:03 PM