UpdateF4001ZAndF4011Z

Update F4001Z And F4011Z

Major Business Rule

Object Name: B4200660

Parent DLL: CDIST

Location: Client/Server

Language: C




Functional Description


Purpose


The purpose of this function is to update the EDSP field in both the F4001Z & F4011Z on the server 

provided.  If the szDataSource parameter is blank it will default to your local default set up in the 

F98611 file.

 



Setup Notes and Prerequisites


None.


Special Logic


None.


Technical Specification



The purpose of this function is to update the EDSP field in both the F4001Z & F4011Z files on the 

server (datasource) provided.  If the DataSource parm is blank, it will default to your local set up in 

F98611.


Date Structure


NameData Dictionary Item

szDataSourceDSC1

mnDocumentNumber   EDOC

szDocumentType EDCT 

szDocumentCompanyEKCO

mnLineNumber       EDLN

cPreviouslyProcessedEDSP

cF4001ZOrF4011Z   EV01

cErrorCode         ERRC

cSuppressErrorMsg  EV01

szErrorMsgID   DTA1




Related Tables


Table Table Description
F4001Z

F4011Z


Related Business Functions


None.



Processing 



If  F4001Z Or F4011Z == '1'
    Fetch the F4001Z record using the parms passed in 

and update the EDSP field with the parms passed in

End


If F4001ZOrF4011Z == '2'

    Fetch the F4011Z record using the parms passed in
and update th EDSP field with the parms passed in.

End



Data Structure

D4200660 - Update F4001Z And F4011Z

<pre>

Special Input Expected


Parameters:


Data Item      Data Structure Description    I/ORequiredNotes

DSC1           DataSource                  I   N       Name of the                         

                                          datasource

EDOC           DocumentNumber            I   Y

EDCT           OrderType                  I   Y

EKCO           DocumentCompany            I   Y

EDLN           LineNumber                  I   Y      if updating                         

                                          F4011Z

EDSP           PreviouslyProcessed            I   Y

EV01             F4011Z or F4001Z            I        Y      1 = update                          

                                         F4001Z,

                                                                  2 = update                          

                                         F4011Z

EV01           SuppressErrorMsg            I



Special Output Returned


Parameters:


Data Item Data Structure Description   I/ORequiredNotes

ERRC         ErrorCode                      O

DTAI       ErrorMsgID                      O



^

Parameter NameData ItemData TypeReq/OptI/O/Both
szDataSourceDSC1charNONENONE

Brief information about an item; a remark or an explanation.

mnDocumentNumberEDOCMATH_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).

szDocumentTypeEDCTcharNONENONE

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.

szDocumentCompanyEKCOcharNONENONE

Company - Key (EDI - Document Key Co)

mnLineNumberEDLNMATH_NUMERICNONENONE

This is the line number you assign when originating an EDI transaction. This number can represent an order line number (applicable for any 
order type), an invoice pay item, a journal entry line number, and so on.

cPreviouslyProcessedEDSPcharNONENONE

An option that indicates whether a record has been successfully processed. Depending on the application, the system updates the EDSP 
field in a table with one of the following values: 1 Successfully processed Blank (or N or 0) Not processed

cF4001ZOrF4011ZEV01charNONENONE




1 = update F4001Z,

2 = update F4011Z



^

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cSuppressErrorMsgEV01charNONENONE

An option that specifies the type of processing for an event.

szErrorMsgIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

F4001Z Batch Receiver File - Order Headings
F4011Z Batch Receiver File - Order Details