Batch Number Generation

Concepts > Batch and Serial Number

Top  Previous  Next
Expand/Collapse Toggles

Beas can determine batches and serial numbers automatically. This feature, among others, is available in the following functions:

 

Goods Receipt

Clicking on the orange arrow next to the batch or serial number field generates a new number.

Beas goods receipt

A new batch or serial number is generated automatically if this has not been deactivated.

SBO goods receipt

(Only batches) There is a Next batch number button in the window where the batch numbers are checked and the next number is generated.

Production receipt

When receiving the finished part a new number is generated. Requirement: The Automatic batch determination option must be activated in the item master data.

 

Batch or serial number generation can be set up separately for all areas.

 

Note:

The Automatic batch determination option in the item master data must be activated for the functionality. See Item master batch.

 

Specifying a batch number template

 

A template is available to determine the format of the generates the next number. This template has several configuration options:

1.Using simple decimal (0-9) or alphanumeric (0-9 A-Z) counter systems
2.Using placeholders in the counter system
3.Using free configuration with the extended setup
4.Using a Beas script function

 

hmtoggle_plus1 Simple decimal or alphanumeric configuration

Determines the template for the batch number structure.

xxx

Continuous number.

XXX

Alphanumeric number. This is the default setting.

aaa

Numeric without truncating the number.

 

The counter type is determined, by searching the letter x, then a, then X. If an x is found, an a or X would be ignored.

The number of letters determines the number of displayed digits. The characters xxx means 3 digits. Shorter numbers are filled with initial zeros, longer numbers are truncated, except when "XXX" is used. in this case. The minimum amount is determined, but longer numbers are not truncated.

 

The structure can be combined with other characters:

ABX2009-xxxx-V = ABX2009-0001-V, ABX2009-0002-V

 

Note: Unlike in SAP BusinessOne, the single quote sign (') is not supported as batch number character.

 

Windows and counter readings are defined: see

Configuration wizard - Production - Valuation and posting assembly - Batch management / Serial numbers

Materials management - Batch management

Materials management - Goods receipt

 

Examples:

xxx

001, 002, 003 .... 009, 010, 011

x

1,2,3,8,9,0,1

XX

01,02,03,... 09,10,...98,99,100,102

aaa

001, 002 ... 009, 00A, 00B ... 00Z, 010, 011 ... 019, 01A ... 01Z, 020

a

1,2,..0,A,B...X,Y,Z,0,1

 


xxX

results in 01X, because "xx" is found first

bbX

bb1, bb2, .. bb9, bb10

Xxx

X is not considered as a counter, because "x" is found first

Result: X01, X02..

hmtoggle_plus1 Using placeholders

Placeholders can be used in the template, which are then replaced during run time. For production receipt, the „e_belnr_id“ and „e_belpos_id“  variables are available.

 

ExampleABX-<e_belnr_id>-<e_belpos_id>-<today,yymm>-xx

Placeholders are replaced by work order and the current date.

The work order document is 123, Position is 10, today is October, 20th 2012 and the next counter is 5: ABX-123-10-1210-5

 

Use of "current date"

With <today> the current date can be inserted. The format is determined as follows:

Date area

Character

Meaning

Example

d

Day number with no leading zero

9

dd

Day number with leading zero if appropriate

09

ddd

Day name abbreviation

Mon

dddd

Day name

Monday

m

Month number with no leading zero

6

mm

Month number with leading zero if appropriate

06

mmm

Month name abbreviation

Jun

mmmm

Month name

June

yy

Two-digit year

97

yyyy

Four-digit year

1997

Examples

Format

Displays

[red]m/d/yy

1/30/98 (in red, if this is a format for input field)

d-mmm-yy

30-Jan-98

dd-mmmm

30-January

mmm-yy

Jan-98

dddd, mmm d, yyyy

Friday, Jan 30, 1998

Time Area

Character

Meaning

h

Hour with no leading zero (for example, 1)

hh

Hour with leading zero if appropriate (for example, 01)

m

Minute with no leading zero (must follow h or hh)

mm

Minute with leading zero if appropriate (must follow h or hh)

s

Second with no leading zero (must follow m or mm)

ss

Second with leading zero (must follow m or mm)

ffffff

Microseconds with no leading zeros. You can enter one to six f's; each f represents a fraction of a second (must follow s or ss)

AM/PM

Two-character, uppercase abbreviation (AM or PM as appropriate)

am/pm

Two-character, lowercase abbreviation (am or pm as appropriate)

A/P

One-character, uppercase abbreviation (A or P as appropriate)

a/p

One-character, lowercase abbreviation (a or p as appropriate)

Examples

Format

Displays

h:mm AM/PM

9:45 PM

hh:mm A/P

09:45 P

h:mm:ss am/pm

9:45:33 pm

h:mm

21:45

h:mm:ss

21:45:33

h:mm:ss:f

21:45:33:2

h:mm:ss:fff

21:45:33:234

h:mm:ss:ffffff

21:45:33:234567

m/d/yy h:mm

1/30/98 21:45

 

As a separator for dates: blanks, slash, dot and for time colon can be used.

 

Example:

<today,yyyymmddhhmm> returns 201301051220

<today,yyyy/mm/dd hh:mm> returns 2013/01/05 12:20

hmtoggle_plus1 Extended setup

 

In the extended settings, the counter system can be freely configured. It is also possible to insert multiple counters after each other.

As the counting system does not have to be decimal and it may not be possible to convert from decimal to the counter, the default counter statuses cannot be used.

 

The definition is supplied in curved brackets. Everything outside the curved brackets is fixed.

For example, ABC{ countdefintion }  results in ABC000001.

 

The parameters in the counter definition are separated by commas.

The counter system is specified by the count command: count=01234 would result in: 01,02,03,04,10,11,12,13,14,20 ...

 

The following commands are available

 

Property

Description

count

Counter system for decimal. 0123456789

count[x]

Additional counter systems, if a different counter systems are required for specific counter positions. Up to 8 extended definitions are permitted.

For example: count1=ABCD

pattern=00000000

Defines which counter system is used for each character position.

For example: pattern=111000

The first 3 digits use the counter system defined in "count1" the digits 4-6 the setting as per the original "count" system.

len=x

Determines the length of the counter:

len=3 001

len=6 000001

Up to 8 digits are allowed.

start=x

Determines the first counter status.

setup=x

Determines the name under which the counter status should be saved.

 

Examples:

ABC{count=0123A,len=3,setup=mycounter1,start=102}

Counts:

ABC002,ABC003,ABC00A,ABC010,ABC011,ABC012,ABC013,ABC01A,ABC020,ABC021,ABC022,ABC023,ABC02A...

 

{count=012,count1=ABC,len=4,pattern=1100,setup=mycounter2,start=AA00}

Counts

AA00,AA01,AA02,AA10,AA11,AA12,AA20,AA21,AA22,AB00

hmtoggle_plus1 Use Script for generate every type of batch / serial numbers

You can use script language to create batch / serial numbers.

For this use the user events concept from Beas

 

See

Work order Receipt: Batch and Serial Numbers

Receipt and Receipt for Purchase order: Batch / Serial Number


Help URL: https://help.beascloud.com/beas202102/index.html?conceptbatchnumbergeneration.htm