powered by CADENAS

Manual

Manual

4.21.  Further settings in erpcustom.cfg

$CADENAS_SETUP/ erpcustom.cfg :

This configuration file is used in order to customize ERP processing.

The file is subdivided in a couple of blocks:

USERDIALOG, VARS, LOAD, BEFTBLLOAD, AFTTBLLOAD, MAIL, ADDTODB

Entries can be made per group (role). Thereby the behavior of PARTsolutions can be adjusted on role level.

  • Block [VARS]

    The block VARS contains common keys.

    The following entries can be made per group (role). Thereby the behavior of PARTsolutions can be adjusted role-specific.

    Example:

     [VARS(Rolle1)]

    • ERPFIELDDB=ERP_PDM_NUMBER

      Key value is the variable name of the database column. In the user interface, you can set it in PARTlinkManager under Extras menu-> Configure ERP environment.

    • ERPFIELDLoc=

      If you enter a database field here the ERP number is copied into this field (for multiple locations only).

    • TIMESTAMPNR=0/1

      0: The ERP number entered by the user or the number returned by the ERP system is inserted in the link database.

      1: A so called timestamp number is generated and inserted into the link database. This setting only makes sense in special cases (e.g. at multiple location systems).

    • ERPADD=$CADENAS_SETUP/erpadd.cfg

      Contains the path to the configuration file erpadd.cfg.

      The block name contains the path to the PARTsolutions project file (part family), the key name is the identifier for the ERP-System, key value is fixed or a variable name of the PARTsolutions table. A variable name starts with a $ character and ends with . (point).

      Example:

      [norm/din_en_iso/schrauben/zylinderschrauben/din_912.prj]
      NAME=Screw
      FIELD1=$D.

      For more details please see in the config file itself.

    • CLASS=

      e.g. CLASSVARLIST(eclass)

      The given entry is searched in the respective PARTsolutions project file and exported to the ERP system.

    • E-mail settings

      [Note] Note

      Normally the settings in plinkcommon.cfg are used and not these. See Section 4.17.6, “E-mail settings / plinkcommon.cfg -> Block [MAIL]”.

      • SENDTO=standardisation@company.com

        Address of the e-mail recipient when requesting a new ERP number via e-mail.

    • SENDFROM=user@company.com

      Address of the e-mail sender when requesting a new ERP number via e-mail.

    • SUBJECT=subject....

      Subject line for the e-mail process.

    • SERVER=mail.company

      Name of the e-mail server for requesting a new ERP number via e-mail.

    • NEWASTATE=1

      State of the new created part.

      Possible values are 0 (locked), 1 (released) and 2 (expired).

      See Section 4.21.2, “ Default value for new "ACATIVE_STATE" values - erpcustom.cfg -> Block [VARS] -> Key "NEWASTATE" ”.

    • IFACEEXE=$CADENAS/iface/sap/sapcadenassrv.exe

      Path to ERP interface (obsolete)

  • Block [MAPPING]

    Mapping between the ERP-interface and PARTsolutions

    (only used at SAP integration)

  • Block [LOAD]

    A list of scripts which is loaded at startup of erpcustom.vbb.

  • Block [BEFTBLLOAD]

    A list of scripts which is loaded before startup of erpcustom.vbb.

  • Block [AFTTBLLOAD]

    A list of scripts which is loaded after startup of erpcustom.vbb.

  • Block [MAIL]

    The scripts indicated here will be loaded by pressing the button Request ERP number per e-mail .

  • Block [ADDTODB]

    The scripts indicated here will be loaded by pressing the button Add dataset to link database .