Executed for every line, which 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 DistNumber is not defined, this event is called BEFORE the System generate the DistNumber automatically
Special case Serial Numbers: If you define Quantity > 3, the system execute workordermanagement.receiptline only 1 time, but stockmanagement.receiptline 3 times - for every Serial number 1 time.
Costing Code
In this event you can change the CostingCode.
Note: If this is part of backflush process and you try to cancel the receipt process, the system can't rollback the issue process, which was part of the complete backflush process
Variable
|
Read
|
Write
|
Description
|
e_WoDocEntry
|
x
|
|
Work order number
|
e_WoLineNumber
|
x
|
|
Work order Position
|
e_WoLineNumber2
|
x
|
|
Bill of Material position
|
e_ItemCode
|
x
|
|
ItemCode
|
e_Version
|
x
|
|
Item Version
|
e_Quantity
|
x
|
|
Quantity in Stock unit
|
e_ProjectCode
|
x
|
|
Project Code
|
e_WhsCode
|
x
|
|
Note: The system don't check the Warehouse again, if you change it. No stock control, no reservation control.
If Warehouse not usable or other Accounts defined in Warehouse and 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 Bincode only, if you receipt only one Batch Number / Serial Number or normal item
|
|
e_RFID
|
x
|
x
|
Note: Time Receipt backflushing process and Desktop backflush support Bincode 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
|
|