‎2009 May 13 1:56 PM
I am using the FM bapi_fixedasset_change.
The bapi executes and returns 'Asset successfuuly changed'.
Problem arises when i go to ANLA, one of the fields invent-no (INVNR) has been replaced with a blank.
This is not even one of the fields i intended to change.
Has anyone experienced the same behaviour before? If so could you tell me what i am doing wrong?
‎2009 May 13 2:04 PM
Hello,
you could check the 'GENERALDATAX'-structure in your program. May be there at the time of the BAPI-Call an 'X' at INVENT_NO ?
Regards Wolfgang
‎2009 May 13 2:10 PM
Thanks Wolfgang.
I thought of that as well ......but it's not the case (Code excerpt below)
generaldata-serial_no = upd_table-zz_intern_sernr.
generaldatax-serial_no = 'X'.
TimeDep-Person_No = upd_table-ZZ_EMPLOYEE_ID.
TimeDepX-Person_No = 'X'.
TimeDep-From_date = sy-datum.
TimeDepX-From_date = 'X'.
TimeDep-to_date = '99991231'.
TimeDepX-to_date = 'X'.
TimeDep-Location = upd_table-zz_location.
TimeDepX-Location = 'X'.
TimeDep-Room = upd_table-zz_room.
TimeDepX-Room = 'X'.
CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'
EXPORTING
COMPANYCODE = upd_table-bukrs
ASSET = upd_table-anln1
SUBNUMBER = upd_table-anln2
GENERALDATA = generaldata
GENERALDATAX = generaldataX
TIMEDEPENDENTDATA = TimeDep
TIMEDEPENDENTDATAX = TimeDepX
IMPORTING
RETURN = returnTab.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = ls_return.
‎2009 May 15 7:22 AM
After further investigation..............
1.SAP enhancement AISA0001 (Automatic assignment of the inventory number) was active.
2.De-activated this enhancement
3.Problem solved.