Skip to Content
0

creating synchronous serial number automatically through BAPI

Jan 31, 2017 at 03:04 AM

84

avatar image

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..

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Jan 31, 2017 at 05:50 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0