Automate

 View Only
  • 1.  BAPi - AS02 - Depreciation Area update

    Posted 08-25-2020 06:56

    Hello Team!

    I would like to ask you for assistance on the update of Depreciation Areas via AS02.

    I went through many conversations and unfortunately I couldn't find the answer.

    I've created script via Direct with BAPI_FIXEDASSET_CHANGE module.

    I'm trying to update Depreciation Key, Useful Life and Period independently for particular Area numbers.

    E.G. for area 01 I would like to change only Dep. Key, but for area 10 all marked parameters:

    For each area and category I have created conditions as you can see on below example:

    The problem is that script is working only for one category of the area at the time. When I want to update more than one category for the same area I have error and notification "Table DEPRECIATIONAREAS allows a maximum of one entry for area 10".

    I checked many configurations and conditions, but still it doesn't work.

    Any comments and suggestions will be appreciated.

     



    ------------------------------
    Katarzyna Szymczewska | Accounting and Reporting Senior Data Analyst
    Owens Illinois | 123
    ------------------------------


  • 2.  RE: BAPi - AS02 - Depreciation Area update

    Employee
    Posted 08-25-2020 09:45
    Hi Katarzyna 

    If I understand you correctly, you want to conditionally upload values based on the depreciation area - if 01 only change depreciation area, otherwise change multiple fields.

    I would not duplicate the tables - instead work inside the tables with an IF - THEN - ELSE.

    Something like this should work - I just tested it.

    I replicated the same IF - THEN - ELSE in the "X tables"

    Note mine has a loop but it doesn't matter if you have one or not.

    Hope this helps,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: BAPi - AS02 - Depreciation Area update

    Posted 08-26-2020 04:51
    Hi Sigrid,

    I created IF for Dep. Area as you suggested, but with small changes within table.
    Now everything works.
    Thank you for your help!

    Regards,
    Katarzyna

    ------------------------------
    Katarzyna Szymczewska | Accounting and Reporting Senior Data Analyst
    Owens Illinois | 123
    ------------------------------



  • 4.  RE: BAPi - AS02 - Depreciation Area update

    Employee
    Posted 08-26-2020 09:08
    Really good to hear, Katarzyna!  Nice work on using the BAPI and using IF conditions!

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------