<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Function Module for blocking, unblocking and deleting assets in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177783#M1518174</link>
    <description>&lt;P&gt;Pls refer to below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report ZASSET_MASTERRECORD_MAINT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
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 &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
  WRITE 'NOT OK'.
ELSE.
  COMMIT WORK.
  WRITE 'OK'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 12 Dec 2020 03:12:30 GMT</pubDate>
    <dc:creator>former_member719072</dc:creator>
    <dc:date>2020-12-12T03:12:30Z</dc:date>
    <item>
      <title>Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177780#M1518171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there function modules available for blocking,unblocking and deleting assets in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I user 'BAPI_FIXEDASSET_CHANGE' for the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adavnce,&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 09:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177780#M1518171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177781#M1518172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use report RAALTD01 or fm ASSET_MASTERRECORD_MAINTENANCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here change fields anla-xspeb for blocking &lt;/P&gt;&lt;P&gt;and xloev for deleting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe before deleting you've to post a retirement (abavn) to your asset so that asset is deactive...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andreas Mann on Aug 12, 2010 1:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 11:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177781#M1518172</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-08-12T11:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177782#M1518173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there are lot of parameters in this FM, I am little confused. Is there a proper documentation available somewhere to understand the flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman Pai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 07:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177782#M1518173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177783#M1518174</link>
      <description>&lt;P&gt;Pls refer to below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report ZASSET_MASTERRECORD_MAINT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
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 &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
  WRITE 'NOT OK'.
ELSE.
  COMMIT WORK.
  WRITE 'OK'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Dec 2020 03:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177783#M1518174</guid>
      <dc:creator>former_member719072</dc:creator>
      <dc:date>2020-12-12T03:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177784#M1518175</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;luotong&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;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?&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 15:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177784#M1518175</guid>
      <dc:creator>sabarinath</dc:creator>
      <dc:date>2021-02-19T15:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for blocking, unblocking and deleting assets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177785#M1518176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did u get any solution for unblocking the asset ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-blocking-unblocking-and-deleting-assets/m-p/7177785#M1518176</guid>
      <dc:creator>rashmi-a</dc:creator>
      <dc:date>2021-09-24T17:03:10Z</dc:date>
    </item>
  </channel>
</rss>

