Item Collection
Property
|
Description
|
Table
|
OITM
|
Primary key
|
ItemCode/c
|
$transaction
|
issuewo,receiptwo,issue,receipt,receiptpo
|
$branch
|
no
|
$mask
|
no
|
Fields
Name
|
Type
|
Description
|
ItemCode
|
Edm.String(50)
|
Entity Relation: ItemWareHouse -> ItemCode
Entity Relation: ItemVersion -> ItemCode
Integration hub: Importable
Mandatory field
Primary key
Database: "OITM"."ItemCode"
|
|
ItemName
|
Edm.String(100)
|
Integration hub: Importable
Database: "OITM"."ItemName"
|
|
IVersionId
|
Edm.String(20)
|
Version number of the item
editable. If it's defined in Item Version Control, it's not editable and the system is working with Item Version control
Linked table: BEAS_OITM_VERSION
Integration hub: Importable
Database: coalesce("OITM"."U_beas_ver",'')
|
|
ForeignName
|
Edm.String(100)
|
Integration hub: Importable
Database: "OITM"."FrgnName"
|
|
MainSupplier
|
Edm.String(15)
|
Linked table: OCRD
Linked column: CardCode
Integration hub: Importable
Database: "OITM"."CardCode"
|
|
Barcode
|
Edm.String(254)
|
Integration hub: Importable
Database: "OITM"."CodeBars"
|
|
CardCode
|
Edm.String(20)
|
Linked table: OCRD
Linked column: CardCode
Integration hub: Importable
Database: "OITM"."CardCode"
|
|
ItemType
|
Edm.String(1)
|
Integration hub: Importable
Database: "OITM"."ItemType"
|
|
InventoryItem
|
Edm.Boolean
|
Database: case when "OITM"."InvntItem" = 'Y' then 1 else 0 end
|
|
ManageBatchNumbers
|
Edm.Boolean
|
Database: case when "OITM"."ManBtchNum" = 'Y' then 1 else 0 end
|
|
ManageSerialNumbers
|
Edm.Boolean
|
Database: case when "OITM"."ManSerNum" = 'Y' then 1 else 0 end
|
|
BatchnumberGeneration
|
Edm.String(1)
|
Define automatic batch number / serial number generation
can generate the batch automatically for a receipt transaction.
Here you can set up whether the batch is entered manually or generated automatically when posing in material.
Batch according to material
===========================
If an assembly is posted in, as batch number is determined that one of the first material in the BOM of the assembly which was last posted in.
Example:
Assembly: "Paste y in container x"
|- Bill of Materials: Paste y
|---|- 1. issue batch aaa
|---|- 2. issue batch bbb
If "Paste y in container x" is now produced and posted in, the batch number of "Paste y" of the last posting, i.e. batch "bbb" is assigned.
Automatic batch determination
=============================
Batches are generated automatically, at stock correction the next number can be requested.
see Batch generation
Special case at SAP-posting processes:
If the entry field for quantity is left with Ctrl-Tab, the batch assignment screen opens. There is a button "next batch"
Clicking there, the next batch number according to SAP - batch determination program is determined and entered to the current field.
Batches are always determined automatically.
Manual batch input
==================
If activated, manual batch input is always performed for this item.
Default Value: M
Constraints:
batchnum is same as last cunsumed material=J
automatic batch number generation=N
manual batch number=M
Integration hub: Importable
Database: "OITM"."U_batchroh"
|
|
Breakdown
|
Edm.String(1)
|
|
ProcurementMethod
|
Edm.String(1)
|
|
PlanningSystem
|
Edm.String(1)
|
Database: case when "OITM"."PlaningSys"= 'Y' then 1 else 0 end
|
|
IssueMethod
|
Edm.String(1)
|
Return the Issue Method for this item
(Defined in Item Master Data)
B = Backflush
M = Manual
Batch- and Serial number related items always "M"
But you can overwrite this in configuration wizzard - Production - Material Posting - Backflush -
also post batch numbers
also post serial numbers
if this is activated, the system return "B" for Batch or/and Serial numbers too
Database: case when "OITM"."ManBtchNum"='Y' and 'J' = 'J' then 'B' when "OITM"."ManSerNum"='Y' and 'J' = 'J' then 'B' else "OITM"."IssueMthd" end
|
|
ItemVersionAdministration
|
Edm.Int32
|
Default Value: 0
Constraints:
No=0
extented view=1
separate bom=2
Integration hub: Importable
Database: coalesce("OITM"."U_beas_VerControl",0)
|
|
ItemVersionCount
|
Edm.Int32
|
Database: (select count(*) from "BEAS_ITEM_VERSION" where "BEAS_ITEM_VERSION"."ItemCode"="OITM"."ItemCode")
|
|
CalculationPrice
|
Edm.Decimal
|
Integration hub: Importable
Database: "OITM"."U_kalk_pr"
|
|
CalcLotSizeInventoryUOM
|
Edm.Decimal
|
Database: "OITM"."U_losgr_ka"
|
|
CalcLotSizeProductionUoM
|
Edm.Decimal
|
Database: coalesce("OITM"."U_beas_CalcLotsizeWoUnit","OITM"."U_losgr_ka")
|
|
ProductionLotSize
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: "OITM"."U_losgr"
|
|
ProductionLotSizeUnit
|
Edm.Decimal
|
Database: case when coalesce("OITM"."U_beas_prlotsizeU",0)=0 then "OITM"."InvntryUom" else "OITM"."U_me_verbr" end
|
|
MinimumOrderQuantity
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: "OITM"."MinOrdrQty"
|
|
OrderMultiple
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: "OITM"."OrdrMulti"
|
|
InventoryUOM
|
Edm.String(20)
|
Integration hub: Importable
Database: "OITM"."InvntryUom"
|
|
ProductionUnit
|
Edm.String(20)
|
Linked table: BEAS_ME
Linked column: ME_ID
Integration hub: Importable
Database: "OITM"."U_me_verbr"
|
|
PurchaseUnit
|
Edm.String(20)
|
Integration hub: Importable
Database: "OITM"."BuyUnitMsr"
|
|
UnitGroupId
|
Edm.Int32
|
Entity Relation: UnitGroup -> UnitGroupId
Unit of measure groups (UoM groups) are groups of one or more units of measure that you either
allow as units of measure for a product or exclude from the set of possible UoMs for the product.
You can assign UoM groups for the products of both the deliverying and receiving locations.
Linked BSL objects:
UnitGroup, UnitGroupLines
Linked table: OUGP
Linked column: UgpEntry
Integration hub: Importable
Database: "OITM"."UgpEntry"
|
|
OnHand
|
Edm.Decimal
|
Database: "OITM"."OnHand"
|
|
DefaultWareHouse
|
Edm.String(20)
|
Linked table: OWHS
Linked column: WhsCode
Integration hub: Importable
Database: coalesce("OITM"."DfltWH",'')
|
|
DrawingNumber
|
Edm.String(50)
|
Integration hub: Importable
Database: "OITM"."U_znr"
|
|
MatchCode
|
Edm.String(20)
|
Integration hub: Importable
Database: "OITM"."U_match"
|
|
DIN
|
Edm.String(50)
|
Integration hub: Importable
Database: "OITM"."U_din"
|
|
ItemGroupCode
|
Edm.Int32
|
Entity Relation: ItemGroup -> ItemGroupCode
Integration hub: Importable
Database: "OITM"."ItmsGrpCod"
|
|
MaterialGroupId
|
Edm.String(20)
|
Entity Relation: MaterialGroupId ->
Integration hub: Importable
Database: "OITM"."U_gruppe"
|
|
ShelfLife
|
Edm.Int32
|
Integration hub: Importable
Database: "OITM"."U_haltbark"
|
|
RawMaterialId
|
Edm.String(20)
|
Entity Relation: RawMaterial -> RawMaterialId
Linked table: BEAS_WST
Linked column: WST_ID
Integration hub: Importable
Database: "OITM"."U_wst_id"
|
|
SpecificWeight
|
Edm.Decimal
|
Related to the settings of "artikel_spezgew":
If "J" (by Item) then OITM.U_BEAS_DICHTE
If "N" then BEAS_WST.DICHTE
If NULL value, then 1
Integration hub: Importable
Database: coalesce("OITM"."U_spezgew",1)
|
|
PurchaseUnitHeight1
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: coalesce("OITM"."BHeight1",0)
|
|
PurchaseHeightUoM1
|
Edm.String(20)
|
Database: (select "OLGT"."UnitDisply" from "OLGT" where "UnitCode"="OITM"."BWdth1Unit")
|
|
PurchaseUnitWidth1
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: coalesce("OITM"."BWidth1",0)
|
|
PurchaseWidthUoM1
|
Edm.Int32
|
Database: (select "OLGT"."UnitDisply" from "OLGT" where "UnitCode"="OITM"."BWdth1Unit")
|
|
PurchaseUnitLength1
|
Edm.Decimal
|
Default Value: 0
Integration hub: Importable
Database: coalesce("OITM"."BLength1",0)
|
|
PurchaseLengthUoM1
|
Edm.Int32
|
Database: (select "OLGT"."UnitDisply" from "OLGT" where "UnitCode"="OITM"."BLen1Unit")
|
|
Picture1
|
Edm.String(50)
|
Integration hub: Importable
Database: "OITM"."PicturName"
|
|
Picture2
|
Edm.String(50)
|
Integration hub: Importable
Database: "OITM"."U_picture2"
|
|
Picture3
|
Edm.String(50)
|
Integration hub: Importable
Database: "OITM"."U_picture3"
|
|
Relations
Join to Entiy Object
|
Relation
|
RawMaterial
|
RawMaterialId
|
ItemWareHouse
|
ItemCode
|
UoM
|
UoMCode=InventoryUOM
|
WareHouse
|
WhsCode=DefaultWareHouse
|
MaterialGroupId
|
|
ItemGroup
|
ItemGroupCode
|
ItemVersion
|
ItemCode
|
ItemVersionDefault
|
ItemCode,IVersionId
|
UoMPurchase
|
PurchaseUoMCode=PurchaseUnit
|
UnitGroup
|
UnitGroupId
|
Functions
Function
|
Parameter
|
Description
|
GetPrice
|
ItemCode/c,Warehouse/c,CardCode/c,Quantity/i,Valuation/c)
|
Return Price from current item
if cardcode is defined and valuation is a price list, the system use the DI-API from SAP, otherwise own system
Valuation:
xx (number) = Price List
D Average Price
L Last purchase price
K beas calculation price oitm.u_kalk_price
B last valuation price
W last incoming good price
N with out all for second valuation (24.4.14 M.Heigl)
I Item Price from last Issue document
R Item Price from last Receipt document
// beas Script Example: Return calculation price
instance bsl b
b.get=Item(<itemcode>,<whscode>,<cardcode>,<quantity>,"K")
messagebox=<b.price>
|
|
GetDocuments
|
ItemCode/c)
|
Return all attachment, documents and pictures related to an Item
- Beas Attachments
- SAP Attachments
- Pictures
In JSON format with follow properties
Type:
-- "beas"=Beas Attachments (BEAS_DOKUMENT)
-- "SAP"=SAP Attachments (ATC1)
-- "Picture"=Picture 1-3 from OITM. It return always all 3 pictures. If not define, filename = NULL
Nr:
-- internal reference
Info
-- Only Beas: Additional info / notes
FileName
-- The file name with attachment
Example:
{
"value": [
{
"Type": "beas",
"Nr": 1,
"Info": "Second File",
"FileNAme": "C:\\beas\\beas\\bmp\\classic\\button.png"
},
]
}
|
|
My Example
Item("1111")
{
"value":
{
"ItemCode": "1111",
"ItemName": "Simple Version Admin Item 1",
"IVersionId": "",
"ForeignName": "",
"MainSupplier": "V4894",
"Barcode": "111-222-333",
"CardCode": "V4894",
"ItemType": "I",
"InventoryItem": true,
"ManageBatchNumbers": false,
"ManageSerialNumbers": false,
"BatchnumberGeneration": "N",
"Breakdown": "K",
"ProcurementMethod": "B",
"PlanningSystem": 0,
"IssueMethod": "B",
"ItemVersionAdministration": 0,
"ItemVersionCount": 0,
"CalculationPrice": 55.355,
"CalcLotSizeInventoryUOM": 99,
"CalcLotSizeProductionUoM": 99,
"ProductionLotSize": 0,
"ProductionLotSizeUnit": "Pcs",
"MinimumOrderQuantity": 0,
"OrderMultiple": 0,
"InventoryUOM": "Pcs",
"ProductionUnit": "Pcs",
"PurchaseUnit": "Pcs",
"UnitGroupId": -1,
"OnHand": 707.7,
"DefaultWareHouse": "01-locke",
"DrawingNumber": null,
"MatchCode": null,
"DIN": null,
"ItemGroupCode": 100,
"MaterialGroupId": "HM",
"ShelfLife": 0,
"RawMaterialId": null,
"SpecificWeight": 0,
"PurchaseUnitHeight1": 0,
"PurchaseHeightUoM1": null,
"PurchaseUnitWidth1": 0,
"PurchaseWidthUoM1": null,
"PurchaseUnitLength1": 0,
"PurchaseLengthUoM1": null,
"Picture1": null,
"Picture2": null,
"Picture3": null,
"U_symbol1": null,
"U_lagtemp": null,
"U_egnr": null,
"U_flammpkt": null,
"U_lagerinf": null,
"U_formula": null,
"U_alloy": null,
"U_fluxproz": null,
"U_brand": null,
"U_prodtyp": null,
"U_Mesh": null,
"U_fluxtype": null,
"U_coresize": null,
"U_weight": null,
"U_dim": null,
"U_diameter": null,
"U_qgrade": null,
"U_pack": null,
"U_divbez": null,
"U_beas_prlotsizeU": 0,
"U_DW_AUTORECEIPT": null,
"U_DW_PACKAGEQTY": null
}
}