Executed for every line that is sent to this function.
You can cancel the calculation for this work order position with return failure.
Special case Receipt:
If this is a batch or serial managed item and the DistNumber is not defined, this event is called BEFORE the system generates the DistNumber automatically.
Special case Serial Numbers: If you define Quantity > 3, the system executes workordermanagement.receiptline only once, but stockmanagement.receiptline 3 times - for every serial number once.
Costing Code
In this event you can change the CostingCode.
Note: If this is part of the Backflushing process and you try to cancel the receipt process, the system cannot roll back the issue process which was part of the complete backflushing process.
Variable
|
Read
|
Write
|
Description
|
e_WoDocEntry
|
x
|
|
Work order number
|
e_WoLineNumber
|
x
|
|
Work order Position
|
e_WoLineNumber2
|
x
|
|
Bill of Materials position
|
e_ItemCode
|
x
|
|
Item Code
|
e_Version
|
x
|
|
Item Version
|
e_Quantity
|
x
|
|
Quantity in Stock unit
|
e_ProjectCode
|
x
|
|
Project Code
|
e_WhsCode
|
x
|
|
Note: The system does not check the Warehouse again, if you change it. No stock control, no reservation control.
If the Warehouse is not usable or other Accounts are defined in the Warehouse and the Account definition is per Warehouse, this can produce problems (Receipt not possible, wrong accounting and so on)
|
|
e_BinCode
|
x
|
x
|
Note: Time Receipt backflushing process and Desktop backflush support Bin code only. if you receipt only one Batch Number / Serial Number or normal item
|
|
e_RFID
|
x
|
x
|
Note: Time Receipt backflushing process and Desktop backflushing support Bin code only if you receipt only one Batch Number / Serial Number or normal item
|
|
e_CostingCode
e_CostingCode2-
e_CostingCode5
|
|
x
|
Define costing code 1 - 5 (only available in first entry)
|
e_CloseId
|
x
|
|
1= Close position after receipt process
|
e_AccountId
|
x
|
x
|
It is possible to change the Account ID for this receipt process
Issue: The WIP Account, Receipt: The warehouse Account
Note Issue process: The Account must be a WIP Account and must be registered in Beas as WIP Account
You must set the AccCode from Table OACT. The formated Account Id is saved in OACT.FormatCode
Example:
Related to the project use another WIP Account

// Define WIP for Issue
function IssueLine
// Projects starting with "AZ" using Account 501-01
if <e_ProjectId,left 2> = "AZ" then
select "AcctCode" into e_AccountId from "OACT" where "FormatCode"='501-01'
return 1
end if
// Projects starting with "AB" using Account 501-01
if <e_ProjectId,left 2> = "AB" then
select "AcctCode" into e_AccountId from "OACT" where "FormatCode"='500-03'
return 1
end if
// For all other :
select "AcctCode" into e_AccountId from "OACT" where "FormatCode"='500-01'
end function
|
|