Functional Description
Purpose
The purpose of the Write Invoice To Cache business function is to cache Invoices (F03B11 records).
The full key to the invoice -DOC, DCT, KCO and SFX- must be passed to the function. All other
parameters, with the exception of CurrentInvoiceNumber, are optional. CurrentInvoiceNumber is the number of
the invoice being processed, and should be passed for each new invoice encountered. You are expected
to keep track of this total outside the business function.
Setup Notes and Prerequisites
None
Special Logic
None
Technical Specification
Parameters
Item DescriptionI/O Req? Notes
DOCInvoice NumberI Y Must be passed to function (makes up key)
DCTDocument TypeI Y Must be passed to function (makes up key)
KCODocument CompanyI Y Must be passed to function (makes up key)
SFXDocument Pay ItemI Y Must be passed to function (makes up key)
COCompanyI N Only necessary if you want this field written to
cache
GLCGL GlassI N Only necessary if you want this field written to
cache
AAPAmount OpenI N Only necessary if you want this field written to
cache
ADSCDiscount AvailableI N Only necessary if you want this field written to
cache
CRCDCurrency Code FromI N Only necessary if you want this field written to
cache
CRRExchange RateI N Only necessary if you want this field written to
cache
FAPForeign Amount OpenI N Only necessary if you want this field written to
cache
CDSForeign Discount AvailableI N Only necessary if you want this field written to
cache
MCUCost CenterI N Only necessary if you want this field written to
cache
DDNJDiscount Due DateI N Only necessary if you want this field written to
cache
INT01Current Invoice NumberI Y Should keep runing total of invoices outside
function
ADSA mnAmountDiscountTaken I N Only necessary if you want this field written to
cache
CDSA mnForeignDiscountTaken I N Only necessary if you want this field written to
cache
CRDC szCurrencyCodeTo I N Only necessary if you want this field written to
cache
Related Tables
None
Related Functions
None
Processing
Initialize Cache structure and Index to NULL.
Set up KeyCache Index.
Get handle to Cache.
Determine the current invoice.
Load Invoice Cache Key Index.
Write current Invoice Cache Key Index to Cache.
^
D03B0122 - DS For Write Invoice To Cache
Purpose
This function data structure is used by Write Invoice To Cache function.
Parameters
Item DescriptionI/O Req? Notes
DOCInvoice NumberI Y Must be passed to function (makes up key)
DCTDocument TypeI Y Must be passed to function (makes up key)
KCODocument CompanyI Y Must be passed to function (makes up key)
SFXDocument Pay ItemI Y Must be passed to function (makes up key)
COCompanyI N Only necessary if you want this field written to
cache
GLCGL GlassI N Only necessary if you want this field written to
cache
AAPAmount OpenI N Only necessary if you want this field written to
cache
ADSCDiscount AvailableI N Only necessary if you want this field written to
cache
CRCDCurrency Code FromI N Only necessary if you want this field written to
cache
CRRExchange RateI N Only necessary if you want this field written to
cache
FAPForeign Amount OpenI N Only necessary if you want this field written to
cache
CDSForeign Discount AvailableI N Only necessary if you want this field written to
cache
MCUCost CenterI N Only necessary if you want this field written to
cache
DDNJDiscount Due DateI N Only necessary if you want this field written to
cache
INT01Current Invoice NumberI Y Should keep runing total of invoices outside
function
ADSA mnAmountDiscountTaken I N Only necessary if you want this field written to
cache
CDSA mnForeignDiscountTaken I N Only necessary if you want this field written to
cache
CRDC szCurrencyCodeTo I N Only necessary if you want this field written to
cache
RMKszNameRemarkI N Only
necessary if you want this field written to cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnInvoiceNumber | DOC | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szDocumentType | DCT | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szDocumentCompany | KCO | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szDocumentPayItem | SFX | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szCompany | CO | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szGlClass | GLC | char | NONE | NONE |
Item ab Description I/O Req?ab Notes
| ||||
mnAmountOpen | AAP | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnAmtDiscountAvailable | ADSC | MATH_NUMERIC | NONE | NONE |
Item Description I/O Req? Notes
| ||||
szCurrencyCodeFrom | CRCD | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnExchangeRate | CRR | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnAmountForeignOpen | FAP | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnForeignDiscountAvail | CDS | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szCostCenter | MCU | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
jdDateDiscountDueJulian | DDNJ | JDEDATE | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
nCurrentInvoiceNumber | INT01 | integer | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnAmountDiscountTaken | ADSA | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
mnForeignDiscountTaken | CDSA | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szCurrencyCodeTo | CRDC | char | NONE | NONE |
Item ab Descriptionab I/O Req?ab Notes
| ||||
szNameRemark | RMK | char | OPT | NONE |
A generic field that you use for a remark, description, name, or address. |
None |
None |