Functional Description
Purpose
This function is to retrieve a Sales Order Detail record and update the Related Order fields with the
Purchase Order Number, Purchase Order Type, Key Company, and Line Number. It will be called from
F4311EndDoc to support direct ship and transfer order processing.
Setup Notes and Prerequisites
This business function is designed to be called from F4311EndDoc.
The Purchase Order fields are the acutal Purchase Order Number, Doc type, etc.
After a Transfer or Direct Ship sales order is entered, F4311EditLine will be called to edit the
purchase order information and a record will be written to the PO Detail work file if there is no error.
If the PO work file header has not been created it will do so.
When processing the F4311EndDoc will call UpdateSOWithPOInfo to update the related order fields in
the F4211 with the Purchase Order info RORN,RCTO, and RKCO.
Special Logic
None.
Technical Specification
2.2Related Tables
Table Table Description
F4211Sales Order Detail
2.3Related Business Functions
Source NameFunction Name
B9800100GetAuditInfo
2.4Processing
1.Using the key fields (DOCO, DCTO, KCOO, and LNID) passed to the function update the purchase
order information to the related order number fields in the sales detail record:
SDRORN = RORN in parameter;
SDRCTO = RCTO in parameter;
SDRKCO = RKCO in parameter;
SDRLLN = RLLN in parameter;
SDPID = PID in parameter;
SDUSER = USER in parameter;
SDJOBN = JOBN in parameter;
SDUPMJ = UPMJ in parameter;
SDTDAY = TDAY in parameter;
2.If a Sales Order record is not found return an error message '0002'.
3.Use standard processing for Suppress Error (EV01) and Error ID (DTAI).
^
D4200350 - UpdateSOWithRelatedPOInfo
Special Input Expected
DOCOSO NumberKey field. Load with RORN from the PO
DCTOSO TypeKey field. Load with RCTO from the PO
KCOOSO CompanyKey field. Load with RKCO from the PO
LNIDSO Line NumberKey field. Load with RLLN from the PO
RORNPurchase Order NumberLoad with DOCO from the PO
RCTOPurchase Order Doc TypeLoad with DCTO from the PO
RKCOPurchase Order Key Co.Load with KCOO from the PO
RLLNPurchase Order Line No.Load with LNID from the PO
PIDProgram ID
UPMJToday's DateOptional. If NULL, call GetAuditInfo.
TDAYTime of DayOptional. If NULL, call GetAuditInfo.
USERUser IDOptional. If NULL, call GetAuditInfo.
JOBNWorkStationIDOptional, If NULL, call GetAuditInfo.
EV01Suppress Error Message
Special Output Returned
DTAIError Message ID
ERRCErrorCode1 if Error, 0 if not
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnSONumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szSOType | DCTO | char | NONE | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
szSOCompany | KCOO | char | NONE | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
mnSOLineNumber | LNID | MATH_NUMERIC | NONE | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
szPurchaseOrderNumber | RORN | char | NONE | NONE |
A number that identifies a secondary purchase order, sales order, or work order that is associated with the original order. This number is for
| ||||
szPurchaseOrderDocType | RCTO | char | NONE | NONE |
A user defined code (system 00, type DT) that indicates the document type of the secondary or related order. For example, a purchase
| ||||
szPurchaseOrderKeyCo | RKCO | char | NONE | NONE |
The key company that is associated with the document number of the related order. | ||||
mnPurchaseOrderLineNo | RLLN | MATH_NUMERIC | NONE | NONE |
A number of the detail line on the related order for which the current order was created. For example, on a purchase order created to fill
| ||||
szProgramId | 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
| ||||
jdTodayDate | UPMJ | JDEDATE | NONE | NONE |
The date that specifies the last update to the file record. | ||||
mnTimeofDay | TDAY | MATH_NUMERIC | NONE | NONE |
The computer clock in hours:minutes:seconds. | ||||
szUserId | USER | char | NONE | NONE |
The code that identifies a user profile. | ||||
szWorkstationId | JOBN | char | NONE | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
cErrorCode | ERRC | char | NONE | NONE |
Special Output Returned
| ||||
cSalesOrderInteropFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
B9800100 Get Audit Information |
F4211 Sales Order Detail File |