Functional Description
Purpose
The purpose of this function is to update the Purchase Order Detail with a new next status. The last
status gets updated with the existing next status and the existing next status gets updated with the
New Next Status from the Bus. Fn data structure.
The Order Activity Rules are checked for the new Las Status code to determine whether the Purchase
Order Ledger needs to be updated. If yes, then a record is written to the PO Ledger.
Technical Specification
2.4Processing
If LineNumber (LNID) is not blank/zero then
If LineNumber (LNID) is blank then
DO
PDLTTR, PDNXTR and PDLNTY from the table F4311.
If next column does not exist then end business function processing.
Using the parameters DCTO, PDLNTY, PDNXTR retrieve the values from the Order Activity rules
table using the business function VerifyActivityRulesStatusCode. Suppress Error Message on the
call of this business function.
If an error code is returned (ERRC = 1) then
If the SuppressErrorMessages is NOT '1' then
The business function VerifyActivityRulesStatusCode sends back five allowed next status code
values. Check that the NewNextStatus is equal to either the NextStatus which is returned from
VerifyActivityRulesStatusCode or to one of the five allowed values.
If not then set the error message 0243 (conditional on SuppressErrorMessage) and end business
function processing.
If no errors found then
Move the NewNextStatus to F4311/PDNXTR.
Call Business Function GetAuditInfo to get basic information to use in the Insert.
Move current time to F4311/PDTDAY.
Move current date to F4311/PDUDMJ.
Move CallingApplication to F4311/PDPDPID.
detail line.
Call Business Function InsertPurchaseLedger to add a record to the Purchase History
ledger.
Clear the memory used by calling FreePtrToDataStructure.
D4300330 - Update PO Next Status
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szOrderType | 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
| ||||
mnOrderNumber | 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,
| ||||
szOrderCompany | 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
| ||||
szOrderSuffix | SFXO | char | NONE | NONE |
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies
| ||||
mnLineNumber | 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
| ||||
szNewNextStatus | NXTR | char | NONE | NONE |
A user defined code (system 40/type AT) indicating the next step in the order flow of the line type. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
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
| ||||
szCallingApplication | PGM | char | NONE | NONE |
The name of an executable program. |
B4000260 Line Type - Activity Rules | ||||
B4300110 Get Purchase Order Detail | ||||
B9800100 Get Audit Information | ||||
X43199 Insert Purchase Ledger |
F4311 Purchase Order Detail File | ||||
F43199 P.O. Detail Ledger File - Flexible Version |