Short Description
Provides inventory control.
Stored Procedure
com_update_inv_changeinvctl
Functionality
Change the following attributes of the current inventory record (DBA.inventory_current
) based on the PLU number (item):
CanOder
MinStockAmt
MaxStockAmt
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Retrieves the transfer detail.
Stored Procedure
com_get_store_transfer_dtl
Functionality
You make the query based on the parameters Documentnum
and Plunum
. SAP POS stores the results in memory. You can access the stored results by calling get_Qty
, get_Qtyreceived
,
and get_Shortove
.
Preconditions
You have registered TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
Short Description
Inquires on the inventory for a specific item.
Stored Procedure
com_get_inventory_current
Functionality
Search for an inventory record in the database based on the PLU number. SAP POS stores the first record it finds in memory for use by the function calls that follow, such as get_StoreNumber
. You
can find a list of similar calls in TmxApi.tlh
. There is a corresponding get
method for every single field in the table DBA.inventory_current
.
You can provide a collection format by calling put_collectionFormat
before the inquiry.
If you provide a collection format, get_collection
returns the fields corresponding to the collection format.
If you do not provide a collection format, get_collection
returns the entire record.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
Short Description
Runs a batch of inventory inquiries and outputs the results to a file.
Stored Procedure
com_get_inventory_current
Functionality
Search for inventory records in the database based on the values you provide in the parameter ItemListFile
. ItemListFile
is a comma delimited file with the following
two fields:
Plunum
Itemtype
SAP POS stores the result in memory for use by the function calls that follow, such as ManualAdjustment
. SAP POS also outputs the results of the inventory record to the file with the name passed in the parameter OutputFile
.
Preconditions
TmxAPI.DLL
must be registered.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
Short Description
Define a list of the fields that you want to query.
Functionality
Define a list of fields that you want to query based on the following available tokens:
PluNumber,ItemType,CanOrder,QuantityMinimum,QuantityMaximum,CreationDate,QuantityPreissue,QuantityCurrent,LastOrderedDate,LastReceivedDate,LastVendorCost,LastVendorID,LastSoldDate,LastReturnDate,PeriodStartDate,InventoryControlled,QuantityOnOrder,StoreNumber
Field tokens must be comma delimited.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
Short Description
Creates a store transfer record.
Stored Procedure
com_insert_store_transfer
Functionality
Insert a store transfer record into the database.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Provides an inventory manual adjustment.
Stored Procedure
com_manualadjustment
Functionality
Update the inventory adjustment record based on the input. If you set the UpdateTLOGFlag
parameter to TRUE this method also updates the TLOG
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Updates the physical inventory.
Stored Procedure
com_physical
Functionality
Update the physical inventory record based on the input. If you set the UpdateTLOGFlag
parameter to TRUE this method also updates the TLOG
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Creates a receiving record.
Stored Procedure
com_receiving
Functionality
Creates an inventory receiving record based on the input. If you set the UpdateTLOGFlag
parameter to TRUE this method also updates the TLOG
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Resets the inventory quantity.
Stored Procedure
com_update_inv_reset
Functionality
Set the current inventory quantity to 0 in the table inventory_current
and delete all records from the table invertory_current_ext
.
Preconditions
TmxAPI.DLL
must be registered.
Result
HRESULT
Short Description
Starts inventory control processing.
Stored Procedure
com_update_inv_startinvctl
Functionality
SAP POS performs the following actions:
Inserts the proper records into the inventory tables.
Sets the field invcontrolled
in the PLU table to Y based on the PLU number (Item) and SkuType
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Stops inventory control processing.
Stored Procedure
com_update_inv_stopinvctl
Functionality
SAP POS performs the following actions:
Removes the PLU (Item) from the tablesinventory_current
and inventory_history
.
Updates the PLU table for the PLU item by setting the incontrolled
field to N.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
Short Description
Initiates a transfer.
Stored Procedure
com_transfer
Functionality
SAP POS updates or inserts inventory records for the item (PLU number). Based on the FunctionType
parameter, SAP POS adds to the quantity (it is set to transfer in) or subtracts from the quantity
(it is set to transfer off). If you set the UpdateTLOGFlag
to TRUE this method also updates the TLOG
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Update the inventory.
Stored Procedure
com_update_inventory
Functionality
SAP POS updates all related inventory tables with the input. If you set the UpdateTLOGFlag
parameter to TRUE this method also updates the TLOG
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Update the inventory using batches.
Stored Procedure
com_update_inventory
Functionality
Similar to the method update
except that this methods processes multiple records from the input file FileName
. If you set the UpdateTLOGFlag
parameter
to TRUE this method also updates the TLOG
.
The input file is comma delimited and has the following format:
CashierNum,BusinessDate,ItemNum,ItemType(InvItemPLU,InvItemCrossReference),AdjustmentType(InvLoss,InvGain,InvQuantityOnHand),quantity,reason id,function id(InvManualAdjustment,InvTransferIn,InvTransferOut,InvReceiving,InvPhysical,InvStartInventoryControl,InvStopInventoryControl,InvChangeInventoryControl),note,vendor
cost,last vendor,suggested order,minimum stock amount,maximum stock amount,open stock
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Updates store transfer detail.
Stored Procedure
com_update_store_transfer_dtl
Functionality
Call the method InsertStoreTransfer
before calling this method to update the tablestore_transfer_dtl
.
Preconditions
You must register TmxAPI.DLL
.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
|
IN |
|
Short Description
Validates the store transfer document number.
Stored Procedure
com_validate_store_transfer_doc_num
Functionality
SAP POS uses the input to check whether the record exists in the database.
Preconditions
TmxAPI.DLL
must be registered.
Result
HRESULT
Parameter Name |
Parameter Type |
Data Type |
---|---|---|
|
IN |
|
|
IN |
|
|
IN |
|