PdcTerminal.Process

From External Bemet Wiki
Jump to: navigation, search

Contents

Declaration

Process as Boolean

Description

This function processes the lines of the terminaltable.

Notes

This function processes the lines of the terminaltable for writeoff material or stock changes.
The terminaltable can be filled with a script or with a handterminal. The field TR_MODE contains the kind of stock change.
1: Writeoff a material on an existing calculation
TR_CALCNR is filled and in production.
TR_MATNR is filled, stock material and not a certificate material (without location management).
TR_QUANTITY is filled with the writeoff quanitity.
2: Stock (and location) change of a material (relatively)
TR_MATNR is filled, stock material and not a certificate material (without location management).
TR_LOCATION is optional.
3: Stock (and location) change of a material (absolutely)
TR_MATNR is filled, stock material and not a certificate material (without location management).
TR_LOCATION is optional.
4: Location change of a material
TR_MATNR is filled, stock material and not a certificate material (without location management).
TR_LOCATION is filled.
5: Book time on a calculation
6: Book materials on a new calculation
TR_MATNR is filled, stock material and not a certificate material (without location management).
7, 8: Writeoff a material on an existing calculation
TR_CALCNR is filled and in production.
TR_DMPOS is filled with an existing pos number of the calculation.
TR_MATNR is filled, stock material and certificate material (with location management).
TR_LMVID is filled with the stockline ID.
TR_INTCRTNR is filled with the certificate number.
TR_QUANTITY is filled with the writeoff quanitity.

Code example

This code processes the terminaltable.

dim objTerminal
 
  set objTerminal = pdc.Terminal
  if IsValid(objTerminal) then
    if not objTerminal.Process then
      msgbox "Error while processing the Terminal, check TR_LOG for more information."
    end if
  end if
  set objTerminal = nothing

Availability

Available since version 4.2 onwards.

Personal tools
Namespaces
Variants
Actions
PdC Scripting Helpfile
Toolbox