The purpose of this business function is to calculate the Next Order Date for recurring sales orders 
and to update the Batch Sales Order Header table, F4001Z.
^
D4201020A - Calculate Next Order Date
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnDocumentNumber | EDOC | MATH_NUMERIC | NONE | NONE | 
The document number that is assigned by the transmitter in an EDI transaction.
In a non EDI environment, this would be consistent with the 
  | ||||
| szDocumentType | EDCT | char | NONE | NONE | 
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 
  | ||||
| szCompanyKeyOrder | EKCO | char | NONE | NONE | 
Company - Key (EDI - Document Key Co)  | ||||
| szCallingApplication | PID | char | NONE | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| B9800100 Get Audit Information | 
| F4001Z Batch Receiver File - Order Headings |