Skip to Content
avatar image
Former Member

creating synchronous serial number automatically through BAPI

dear Gurus,

I am trying to create an equipment record using this BAPI_EQUI_CREATE (I have to create a custom program and creating serial number is just one of it's function), but my system have 2 types of material, serialized and unserialized material. So I am having this error when creating equipment record using BAPI_EQUI_CREATE : EIS 218 Serial number : Material *** requires synchronous equipment numbers. I input the material, the equipment category and the serial number only. I input the serial number based on the NRIV-NRLEVEL + 1 where NRIV-OBJECT = EQUIP_NR which is the next equipment number to be created. So the serial number and the equipment number is synchronous.

Can anyone help me on this one? If I have to switch to another BAPI, can anyone help me what are the datas that have to be inputted to make the BAPI work, but I prefer to use this BAPI and I am unable to change the serialized level on the material master..


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 31, 2017 at 05:50 AM

    Can you brief explain your overall process, and some more details on this statement "NRIV-NRLEVEL + 1" as it looks pretty manually, numbers from number ranges are usually taken with function module NUMBER_GET_NEXT

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Jurgen for the reply, but the problem is solved, have to make the record first using BAPI_EQUI_CREATE without inputing the serialno for the serialized material, then update the equipment serialno using BAPI_EQMT_MODIFY.