For some reasons business requires Material SNs related to equal Equipment number.
In this case you have to make some customizings:
Create new Equipment Category in OIET t-code (SPRO -- Plant Maintenance and Customer Service -- Master Data in Plant Maintenance and Customer Service -- Technical Objects -- Equipment -- Equipment Categories -- Define Number Ranges):
.. then in OIEN (or SPRO: Plant Maintenance and Customer Service -- Master Data in Plant Maintenance and Customer Service -- Technical Objects -- Equipment -- Equipment Categories -- Define Number Ranges) define group and NR for group:

.. then inside the newly created profile define Serialization procedures, where you will generate SN, with Equipment Requirement = 02 always with equipment:
Create new material master with SN profile Z001, Serialization Level = 1 Keep equipment number and serial number synchronous:
The only problem is you are unable to use the same NR in BAPI_PO_CREATE1 function module.
Because you have to put serial numbers to SERIALNUMBER table parameter from EXTERNAL number range using NUMBER_GET_NEXT fm with EQUI_NR number range object. Else BAPI fals with error:
Because you have to put serial numbers to SERIALNUMBER table parameter from EXTERNAL number range using NUMBER_GET_NEXT fm with EQUI_NR number range object. Else BAPI fals with error:
Equipment number XXXXXXXXXXXX not in external number interval
To resolve the issue you have to create another one Number Range Object (e.g. ZEQUI_NR) and create new EXTERNAL number range with the same values as it's for EQUI_NR internal number range.
Use ZEQUI_NR internal NR in NUMBER_GET_NEXT parameters.
For BAPI it will be proper external number.
Use ZEQUI_NR internal NR in NUMBER_GET_NEXT parameters.
For BAPI it will be proper external number.








No comments:
Post a Comment