DEC/EDI Programming

*HyperReader

  CONTENTS

  Title Page

  Copyright Page

  Preface

  1      Introduction to DEC/EDI Programming

  1.1     Types of Application

  1.2     Types of Document

  1.3     Sending Documents

  1.4     Receiving Documents

  1.5     The Application Interface Routines

  1.6     Internal and External Files

  1.7     Developing Applications

  2      Deciding on Trading Standards

  2.1     Agreeing Standards with Trading Partners

  2.2     Defining Internal Document Types

  2.3     Defining Data Labels
    2.3.1      LIST DATA_LABELS Command
    2.3.2      Partner-specific Data Labels
    2.3.3      Data Label Supersets

  2.4     Defining Validation Criteria

  3      Planning Applications Within the System

  3.1     Interfaced and Integrated Connection

  3.2     Applications and Nodes

  3.3     Setting Up Tables

  4      Writing Applications

  4.1     The Tasks Involved

  4.2     Calling the Interface Routines
    4.2.1      The Sending Routines
    4.2.2      The Fetching Routines

  4.3     Including Data Definitions

  4.4     Error Handling

  4.5     Using Default Data in Documents

  4.6     Tracking Documents
    4.6.1      Sending and Reconciling Acknowledgements

  5      Application Interface Routines

  DECEDI$START_SEND

  DECEDI$END_SEND

  DECEDI$START_GROUP

  DECEDI$END_GROUP

  DECEDI$PUT_DATA

  DECEDI$START_FETCH

  DECEDI$START_FETCHW

  DECEDI$END_FETCH

  DECEDI$GET_DATA

  6      Running and Testing Applications

  6.1     Compiling and Running Applications

  6.2     Testing Applications

  6.3     Diagnosing Errors
    6.3.1      Interpreting Return Values
    6.3.2      Reading the Error Log
    6.3.3      Reading the Audit Trail
    6.3.4      Reading the Internal File

  A   Example Application

  A.1     The Example Invoice

  A.2     The Data Structures

  A.3     The Internal File

  A.4     The Trading Partner Profile

  A.5     Application Outline

  A.6     COBOL Send Application

  A.7     COBOL Fetch Application

  A.8     C Send Application

  A.9     C Fetch Application

  A.10   BASIC Send Application

  A.11   BASIC Fetch Application

  FIGURES

  1-1        Document Structure

  1-2        Data Labels and Document Structure

  1-3        Sending Documents

  1-4        Receiving Documents

  2-1        Data Labels and Document Structure

  2-2        LIST DATA_LABELS Screen

  3-1        Interfaced and Integrated Connection

  4-1        LIST TABLES Screen

  5-1        Item List Format

  6-1        LIST DOCUMENT Screen 1

  6-2        LIST DOCUMENT Screen 2

  A-1        Format of the Invoice

  A-2        Document Structure

  A-3        Flowchart of the Sending Application

  A-4        Flowchart of the Fetching Application

  TABLES

  4-1        Document status values

  5-1        Group Levels and Repeats