Create Workorder-Time-Entry
The time receipt use "old" objects, which using additional instance variables If the variable defined, then the variables have higher priority as the properties We can't delete this functionality, otherwise we loose compatibility to old customizing functions.
Example: setvar=e_whscode=B is this variable is defined, then the system use WareHouse "B" for all Bill of Material positions
Problem: After first transaction the system write always the Default warehouse in the instance variables If you make a second transaction, in same window, it use the same warehouse from first transaction
Workaround: Make a sandbox with pushvar and popvar
// Save current variables (Sandbox) pushvar // now make the time receipt declare=wotime=... ... // at end restore all variables popvar
|
Start work time: see wostart
Function |
Description |
|
woreset |
Reset all Inputs |
|
addwotimeline, addline, new |
Add a new Row. Basically you should only work / add one Row at a time. ( Add, Save, Reset )
|
|
add / save |
Save Data If you specify a Row Number only this will be stored, otherwise all Rows. wotime=addline wotime=add |
|
setrow=x, currentrow=x |
Set the current Position With <objectname.currentrow> you can get the Current Row |
|
timecalc, timecalculate, zeitberechnung |
|
|
display=y/n |
If "N", then prevent queries and Output (for server application) |
|
order_logon |
|
|
order_logoff |
|
Older Versions use "old name"
Property |
old name |
Description |
|
AddScrapId |
addscrappid |
|
|
Barcode |
barcode |
Message about BarCode with link to Number Sequence of the work sequence. beas_ftapl.nummer. Automatic determines belnr_id,belpos_id,pos_id |
|
BPLid |
bplid |
Branch Id (OBLP.BPLId) Only for information! |
|
BPLName |
bplname |
Name of Branch (OBPL.BPLName) if you set bplid, beas get the name automatically. |
|
Check_Presence |
check_presence |
true = Check, if the User is presence (only, if activated in the Configuration) false = disable the User-Presence-Check Default=true |
|
CloseEntry |
close, abgkz |
Close Work Sequence |
|
CloseEntry |
cancel |
1 = cancelation this entry (price = 0) - other way to delete the entry |
|
CostCenter |
costcenter, kstst_id |
cost centre oprc.prccode determined aus beas_aplatz.kstst_id |
|
CostElementId |
timetype_id |
Define Cost Lement (TimeType_id) Attention: The object don't copy this from Routing position to Time Receipt If you need this property, you must set this manually. |
|
CurrentRow |
currentrow |
Set / Add Current Row. Only existing rows can be set. To add a new row you need to use addline |
|
DocDate |
docdate |
Date for journal entry only for new entry. You can't change this propertie in an exist entry! |
|
DocEntry |
belnr_id |
Document Number |
|
Duration |
time, minute, dauer, duration |
Length in minutes |
|
ExternalCosts |
costs, fagprice |
additional costs |
|
FromDate |
fromdate |
Start Date in Format: yyyy/mm/dd Also set the end date to "Today" If you want to set a different end date, use the Command "fromdate"
|
|
FromMinute |
fromminute |
from minute (minutes) |
|
FromTime |
fromtime |
from time in Format: hh:mm |
|
Ftstmp_Buchnr_id |
ftstmp_buchnr_id |
if you set this, beas will delete this entry after create the timereceipt Urgend: if you will close the workorder-position, then you must set the variable setvar=e_buchnr_id=<beas_ftstmp_buchnr_id> |
|
LineNumber |
belpos_id |
Assembly |
|
LineNumber2 |
pos_id |
Work Sequence |
|
LineNumber3 |
resourcenpos_id |
see parallel. Returns the parallel Resource of the current work step. |
|
ManualBooking |
manualbooking |
|
|
OrderName |
ordername |
Name of the Order beas_fthaupt.auftrag |
|
Parallel |
parallel |
Set this to J, if this a parallel Resource you need to provide resourcepos_id. In that case no material posting will take place |
|
PersonnelId |
user, pers_id |
Employee Number (Personalstamm BEAS beas_personal.pers_id)) Current user is <system.pers_id> |
|
QuanittyGood |
quantity, menge_gut |
Quantity in Consumption unit of the related Assembly |
|
QuanittyScrap |
scrap, menge_schlecht |
rejected quantity in Consumption unit of the related Assembly |
|
QuantityGoodRUoM |
quantity_rm |
|
|
QuantityScrapRUoM |
scrap_rm |
rejected quantity [feedback unit] |
|
Remarks |
info |
Info |
|
ResourceId |
workcenter, resource_id, aplatz_id |
Work Station beas_aplatz.aplatz_id |
|
RUoM |
unit_rm |
feedback unit. If emtpy, storage unit |
|
RUoMFactor |
faktor_rm |
amount Inventory per feedback unit ( conversion factor) |
|
SetLeaving |
setleaving |
if activ (1, true, yes), then personell is leaving (time-system)if |
|
SystemNumber |
entry, nr |
Current Number(If 0 than new) |
|
SystemNumber |
nr, entry, load, buchnr_id |
Must be set if you work on a a existing Contract. The parameter you have to pass is the "BEAS_ARBZEIT"."BUCHNR_ID"
|
|
TimeObligation |
timeobligation, bde |
Completion confirmation of time required ? |
|
TimeReceiptRunningId |
ftstmpnumber |
for timecalculate you must set this variable, if you logoff a current timestamp (= "BEAS_FTSTMP"."BUCHNR_ID" ) |
|
TimeType |
messagetype |
set the time type normal time=A, tool time=R, time 2 (H)=H, time 3 (N)=N |
|
ToDate |
todate |
End-Date in Format yyyy/mm/dd |
|
ToMinute |
tominute |
bis-minutes |
|
ToolId |
wkz_id |
the Tool-Id (use only, if beas_wkz.choosable=int) |
|
ToTime |
totime |
to-time |
|
udf=<fieldname> |
udf=<fieldname>=<content> |
You can add new columns in the table "beas_arbzeit" and can fill this fields with this command Example: db.ini column=beas_arbeit=myfield=varchar(50) Save a Time via wotime wotime=udf=myfield=hello world |
|
Udf1...15 |
udf1 ... udf15 |
UDF - Field |
Following Functions will be executed at the time a booking is handled.
Event |
Description |
|
workordermanagement:timerecordingstart |
|
|
workordermanagement:timerecordingend |
Error Messages will be stored in the Variable "errormessage".
Id |
Message |
1000 |
Unknown Personal Number |
1100 |
userfunction timerecordingstart() returned "failure" |
1101 |
userfunction timerecordingend() returned "failure" |
1102 |
Unknown Work Order or (AE_FAW2) invalid resource (get all information from BEAS_APLATZ. Entry not found or SQL Error) |
1103 |
already closed |
1155 |
(rueckmeldabgkz43) Preceding work sequence needs to be completed first. |
1156 |
(AW_FAW1AB) Preceding work sequence confirmed. Reported: already posted: .... A confirmation of is impossible |
1167 |
Error select BEAS_FTAPL_WKZ ue_api_time.wo_time Errorplace:1167 (get price from parallel routing position) |
1195 |
(afogrpressource0234) No confirmations possible for group resources. Please select a resource. |
1199 |
error select last quantity from delivery ue_api_time of_wotime (Table PDN1) or error select sum qty from time receipt (Table BEAS_ARBZEIT) |
1330 |
(bderstanw44) Please log on first in the presence registration! |
1441 |
(afoanmqs95532) Quality assurance in working order sequence is not OK. Registration is not possible! |
1442 |
SQL Error get related QC measure position (BEAS_QSFTMESSUNG) |
1443 |
(afoanmqs9435) In work sequence the QC-inspection has not yet started. Registration is not possible! |
1445 |
SQL Error search for related QC Order |
1500 |
Booking failed |
1600 |
(AE_STEMP1) Error while writing BDE-Entry |
1800 |
SQL Error loading routing position (not found, wrong itemcode, syntax error) |
1801 |
(fsperrung1) Order (BEAS_FTHAUPT) or Position (BEAS_FTPOS) or routing position (BEAS_FTAPL) locked or closed or logon for position is locked or Logon on routing position is locked. You can save a time receipt on closed routing position, if you set setup=fert_afoabgallow=N |
1881 |
(ftstmpminqty234) The minimum value is not reached- Maintenance sequence can not be closed! |
1882 |
(ftstplanqty4954) Planned quantity is exceeded. Planned Quantity ... , Currently receipt ... , Total .... |
1888 |
(ftstmpminbqty523) Minimum quantity not reached. Minimum quantity to confirm |
2000 |
(AE_FAW3FAG) Foreign production step: "Prize entry is compelling, but has not occurred" |
2001 |
(AE_FAW3) Time Entry is compelling, but has not occurred. |
2114 |
Currency not found |
9991 |
Error get old journal entrys |