Skip to Content

Need to change Serial Number in equipment level - IQ02/IE02

Hi,

Could any one help me to update Serial Number in equipment level - IQ02/IE02.

I used below code but its not updating:(

gs_dataspecific-SERIALNO = '123456789X'.
gs_dataspecificx-SERIALNO = 'X'.

CALL FUNCTION 'BAPI_EQUI_CHANGE'
EXPORTING
equipment = '00000000001234567'
data_general = ls_data_general
data_generalx = ls_data_generalx
data_specific = gs_dataspecific
data_specificx = gs_dataspecificx
* DATA_FLEET =
* DATA_FLEETX =
* VALID_DATE = SY-DATUM
* VALID_TIME = SY-UZEIT
IMPORTING
DATA_GENERAL_EXP = DATA_GENERAL_EXP
DATA_SPECIFIC_EXP = DATA_SPECIFIC_EXP
* DATA_FLEET_EXP =
RETURN = gs_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Please let me know if i did anything wrong.

Thank u in advance.

Thanks,

Shabari

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 26, 2017 at 02:41 PM

    Is Business Function LOG_EAM_CI_2 active on your system, if no you cannot change SN with this BAPI. (Look for an OSS note or read the BF documentation)

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2017 at 01:53 PM

    Got result.. Thank you for your inputs..

    With the help of below function module I achieved it.

    CALL FUNCTION 'EQUIPMENT_MODIFY'

    EXPORTING

    update_new = abap_true

    commit_new = abap_true

    CHANGING

    new_vequi = gs_equinew

    EXCEPTIONS

    err_modify = 1

    OTHERS = 2.

    Thank you,

    Shabareesh

    Add comment
    10|10000 characters needed characters exceeded