Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with BAPI "BAPI_FIXEDASSET_CHANGE"

Former Member
0 Likes
1,687

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 =

  • .

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 =

  • .

6 REPLIES 6
Read only

Former Member
0 Likes
1,308

Could you re check if you really made changes. No changes made clearly communicates that there is no change in updated data you are passing.

Read only

0 Likes
1,308

I am trying to update the field i mentioned. It is empty as of now.

Read only

Former Member
0 Likes
1,308

Hi,

You could check the return table to see whats the message returned and that could give you some clue as to why thats happening.

Regards,

Himanshu

Read only

0 Likes
1,308

The return table gives the message "No changes made" with "S" (Success). I already mentioned this in my question initially.

Read only

0 Likes
1,308

ANy one has any ideas on this?

Has anyone used this BAPI successfully to modify some fields on ALlocations tab in asset master?

Please advice.

Read only

Former Member
0 Likes
1,308

Solved myslef by implementing a new SAP note 1176061