Skip to Content
0
Former Member
May 26, 2009 at 12:19 PM

Problem with BAPI "BAPI_FIXEDASSET_CHANGE"

378 Views

Hello guys,

My aim is to update one of the fields in the Allocation tab of the Asset master. I am using bapi_fixedasset_change" for this.

Its coming back with "No changes made" message and not changing any field.

Please let me know where i am going wrong. Am i missing some mandatory fields to be passed?

Here is my code:

*data : ALLOCATIONS like BAPI1022_FEGLG004,

  • ALLOCATIONSX like BAPI1022_FEGLG004X,

  • return like BAPIRET2.

*

*allocations-ENVIR_INVEST = '1345'.

*allocationsx-ENVIR_INVEST = 'X'.

*CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

  • EXPORTING

  • companycode = '0010'

  • asset = '000008209332'

  • subnumber = '0000'

  • ALLOCATIONS = allocations

  • ALLOCATIONSX = allocationsx

  • RETURN = return

  • .

*

*

*CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

  • .