1.Functional Description
1.1Purpose
The purpose of this business function is to call an external program to retrieve a document number to be used by the shipping document that has called
this business function.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/OReqNotes
DTAIError Message IDON
SUPPSSuppress Error Message IDIN
INQInquiry flagIYIf set to '1', the next number should be determined and returned to the calling function, but the next number
should not be incremented.
REFQReference QualifierIY
PIDNExternal Program IDI Y
CARSCarrierIN
MOTMode of TransportIN
MCUZPrint DepotIN
COCompanyINValue used to retrieve the internal document number.
EMCUHeader Business UnitINSee CO
MCUBusiness UnitINSee CO
DCTDocument TypeINSee CO
DTDODocument DateINSee CO
DOCDocument NumberINSee CO
KCOKey CompanyINSee CO
DCNSDocument Number SourceINSee CO
REFNReference NumberONumber determined by the external program called and passed back to the caller of B4900820.
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction Name
2.4Processing
This business function will accept the parameters passed and perform a call to the business function name specified in External Program ID (PIDN).
^
D4900820 - Call External Document Number Program
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szErrorMessageID | DTAI | char | OPT | OUTPUT |
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
| ||||
cSuppressErrorMessage | SUPPS | char | OPT | INPUT |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
cUpdateControlFlag | UPCF | char | OPT | INPUT |
Controls whether to update the General Ledger (G/L) for commingled product.
Typically, you update the G/L for the product that belongs to
| ||||
szRefNumberQualifier | REFQ | char | OPT | INPUT |
A code qualifying the Reference Number. Must conform to one of the accepted values for EDI X12 data element 128. | ||||
szProgramIDDocNxtNbr | PIDN | char | REQ | INPUT |
Enter the Form Name (Program ID) of the business function used to derive the external document number. | ||||
mnCarrier | CARS | MATH_NUMERIC | REQ | INPUT |
The address number for the preferred carrier of the item. The customer or your organization might prefer a certain carrier due to route or
| ||||
szModeOfTransport | MOT | char | OPT | INPUT |
A user defined code (00/TM) that describes the nature of the carrier being used to transport goods to the customer. For example, by rail, by
| ||||
szPrintDepot | MCUZ | char | OPT | INPUT |
Identifies a separate entity within a business for which you wish to track costs, for example, a warehouse location, job, project, work center,
| ||||
szCompany | CO | char | OPT | INPUT |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szCostCenterHeader | EMCU | char | REQ | INPUT |
A business unit is an accounting entity required for management reporting. It can be a profit center, department, warehouse location, job,
| ||||
szCostCenter | MCU | char | REQ | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szDocumentType | DCT | char | REQ | INPUT |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
jdDateDocument1 | DTDO | JDEDATE | REQ | INPUT |
The date that the system prints on the document. | ||||
mnDocumentNumber | DOC | MATH_NUMERIC | REQ | INPUT |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szCompanyKey | KCO | char | REQ | INPUT |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
cDocumentNumberSource | DCNS | char | REQ | INPUT |
Determines the source of the document next number. Valid values are: C Company D Depot S Sales Region | ||||
szReferenceNumber | REFN | char | REQ | OUTPUT |
A Reference number or identification number as defined for a particular EDI transaction set or as specified by the Reference Number
| ||||
szDocumentCode | DCCD | char | OPT | NONE |
Identifies the document code the system will use when printing this document. | ||||
mnShipmentNumber | SHPN | MATH_NUMERIC | OPT | NONE |
A "next number" that uniquely identifies a shipment. | ||||
mnRoutingStepNumber | RSSN | MATH_NUMERIC | OPT | NONE |
This is the number assigned to a shipment routing step. The movement of a shipment from the origin to the final destination (ship to
| ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
|
None |
None |