2009 May 26 1:19 PM
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 =
.
2009 May 26 2:08 PM
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.
2009 May 26 2:19 PM
I am trying to update the field i mentioned. It is empty as of now.
2009 May 26 2:27 PM
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
2009 May 26 2:39 PM
The return table gives the message "No changes made" with "S" (Success). I already mentioned this in my question initially.
2009 May 26 2:54 PM
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.
2009 Jun 10 7:56 AM