Inventory Item management Batches Batch generation - robinfeng/beashelp GitHub Wiki

批次生成器


Navigation: Inventory > Item management > Batches: Batch Generation No contents entries on this page Contents beas can determine batches and serial numbers automatically. This is possible in the following functions, among others:

Goods Receipt There is an orange arrow beside the batch / serial number field. Click on this to generate a new number. beas goods receipt Here also 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 queried. This generates the next number Production receipt When receiving the finished part a new number is also generated. Requirement: "Automatic generation" must be activated in the item master.

Batch / Serial number generation can be set up separately for all areas in the options. This functionality also applies to serial number generation. Note In item master "automatic batch" needs to be activated. See Item master batch

Specifying a number template

The template which generates the next number can be configured in many ways.

  1. Using the simplest decimal (0-9) or alphanumeric (0-9 A-Z) counting systems

  2. Using a freely definable counting system

  3. Using a beas script function

  4. Simple configuration

Determines the template for batch structure xxx continuous number XXX alphanumeric number aaa numeric without cutting the number

Default setting is XXXX

The counter type is determined, by searching letter x, a or X. If an x is searched, a or X would be ignored. The number of letters determines the number of displayed digits.xxx means 3 digits. Smaller numbers are filled with initial zeros, higher numbers are cut. Special case "XXX" The minimum amount is determined, but higher numbers are not cut.

The structure can be combined with all other characters, e.g. ABX2009-xxxx-V = ABX2009-0001-V, ABX2009-0002-V

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

hmtoggle_plus1 Example:

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 counter, because "x" is found first Result: X01, X02..

  1. Using placeholders Placeholders can be added, which are replaced in run time. for production receipt variables „e_belnr_id“ and „e_belpos_id“ are available. Example: ABX-<e_belnr_id>-<e_belpos_id>-<today,yymm>-xx

Placeholders are replaced by work order and the current date. Example: work order document 123, Position 10, today is October, 20th 2012. Next counter is 5. Generation: ABX-123-10-1210-5 A select-statement can also be inserted: the value from work order header – Userfield 1 ABX--xx

hmtoggle_plus1 Use of "current date" With " the current date can be inserted. Then, the format is entered: yy, yyyy Year, 2 or 4 digits mm Month dd Day hh Hour mm Minute (if entered after hour) ss Second ff, ffff Millisecond As 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

  1. Extended Setup

In the extended settings, the counting 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 e.g. ABC{ countdefintion } Gives e.g. ABC000001

The parameters in the counter definition are separated by commas. The counting system is specified by command: count=01234 would count: 01,02,03,04,10,11,12,13,14,20 ...

hmtoggle_plus1 The following commands are available count Counting system, e.g. 0123456789 for decimal count[x] Additional counting systems, if different counting systems are required for specific counter positions. Up to 8 extended definitions are permitted. e.g. count1=ABCD pattern=00000000 Defines which counting system should be used for which character position e.g. pattern=111000 The first 3 digits use the counting system defined with "count1" the digits 4-6 the setting as per "count" len=x Determines the length of the counter len=3 001 len=6 000001 Counting system up to 8 digits is possible. start=x Determines the first counter status setup=x Determines the name under which the counter status should be saved.

hmtoggle_plus1 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

  1. Determination via a beas script function Instead of a screen, a beas script function can also be called. The following is then specified as a screen: filename:functionname() e.g. stockmanagement:nextnumber()

Note In item master "automatic batch" needs to be activated, otherwise the script is not called up See Item master bacth

hmtoggle_plus1 Example A function named nextnumber is then stored in the file stockmanagement.src in the project directory of the customer The next number is returned in str_parm.s_parm1

stockmanagement.src function nextnumber // script for generating the next number... setstr=s_parm1= end function

This script can be used to consider all dependencies.

back to Batches


返回 主页

⚠️ **GitHub.com Fallback** ⚠️