EDOCGetNextNumber

EDI Document Number, Get Next Number

Major Business Rule

Object Name: N4700050

Parent DLL: COPBASE

Location: Client/Server

Language: NER

This Named ER will retrieve the EDI Document Number (EDOC) next number.  It will then verify against the EDI header table and EDI detail table that a 
document does not exist in these two files with this EDI Document Number, EDI Document Type, and EDI Document Key Company.


The File Name parameter will contain the name of the header table for the transaction you are working with.  Currently, this Named ER will only be used 

by Outbound Extraction programs.

Data Structure

D4700050 - EDI Document Number, Get Next Number

Parameter NameData ItemData TypeReq/OptI/O/Both
szFileNameFILEcharNONENONE

The number of a specific table. For example, the Account Master table name is F0901. See the Standards Manual on the programmers' 
menu for naming conventions.

szCompanyKeyEdiOrderEKCOcharNONENONE

Company - Key (EDI - Document Key Co)

szEdiDocumentTypeEDCTcharNONENONE

The document type that is assigned by the transmitter in an EDI transaction. In a non EDI environment, this would be consistent with the order 
type (DCTO) assigned at order entry time, an invoice document type, a voucher document type, and so on.

mnEdiDocumentNumberEDOCMATH_NUMERICNONENONE

The document number that is assigned by the transmitter in an EDI transaction. In a non EDI environment, this would be consistent with the 
order number assigned at order entry time (DOCO).

Related Functions

None

Related Tables

F47011 EDI Purchase Order Header - Inbound
F47012 EDI Purchase Order Detail - Inbound
F47013 EDI Purchase Order Detail (SDQ) - Inbound
F47016 EDI Purchase Order Header - Outbound
F47017 EDI Purchase Order Detail - Outbound
F47021 EDI P.O. Acknowledgment Header - Inbound
F47022 EDI P.O. Acknowledgment Detail - Inbound
F47026 EDI P.O. Acknowledgment Header - Outbound
F47027 EDI P.O. Acknowledgment Detail - Outbound
F47031 EDI Shipping Notice Header - Inbound
F47032 EDI Shipping Notice Detail - Inbound
F47036 EDI Shipping Notice Header - Outbound
F47037 EDI Shipping Notice Detail - Outbound
F47041 EDI Invoice Header - Inbound
F47042 EDI Invoice Detail - Inbound
F47044 EDI Invoice Summary - Inbound
F47046 EDI Invoice Header (Sales) - Outbound
F470461 EDI Invoice Additional Header - Outbound
F47047 EDI Invoice Detail (Sales) - Outbound
F470471 EDI Invoice Additional Detail - Outbound
F47061 EDI Planning Schedule Header - Inbound
F47062 EDI Planning Schedule Detail - Inbound
F47066 EDI Planning Schedule Header - Outbound
F47067 EDI Planning Schedule Detail - Outbound
F47071 EDI Receiving Advice Header - Inbound
F47072 EDI Receiving Advice Detail - Inbound
F47076 EDI Receiving Advice Header - Outbound
F47077 EDI Receiving Advice Detail - Outbound
F47091 EDI Request for Quote Header - Inbound
F47092 EDI Request for Quote Detail - Inbound
F47093 EDI Request for Quote Detail (SDQ) - Inbound
F47096 EDI Request for Quote Header - Outbound
F47097 EDI Request for Quote Detail - Outbound
F47101 EDI Response to RFQ Header - Inbound
F47102 EDI Response to RFQ Detail - Inbound
F47106 EDI Response to RFQ Header - Outbound
F471061 EDI Response to RFQ Additional Header - Outbound
F47107 EDI Response to RFQ Detail - Outbound
F471071 EDI Response to RFQ Additional Detail - Outbound
F47121 EDI Product Activity Data Header - Inbound
F47122 EDI Product Activity Data Detail - Inbound
F47123 EDI Product Activity Data (SDQ) - Inbound
F47126 EDI Product Activity Data Header - Outbound
F47127 EDI Product Activity Data Detail - Outbound
F47128 EDI Product Activity Data (SDQ) - Outbound
F47131 EDI Purchase Order Change Header - Inbound
F47132 EDI Purchase Order Change Detail - Inbound
F47136 EDI Purchase Order Change Header - Outbound
F47137 EDI Purchase Order Change Detail - Outbound
F47141 EDI P.O. Change Acknowledgment Header - Inbound
F47142 EDI P.O. Change Acknowledgment Detail - Inbound
F47146 EDI P.O. Change Acknowledgment Header - Outbound
F47147 EDI P.O. Change Acknowledgment Detail - Outbound