tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiCompanyId | i | |
tJournal.JournalCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLayer.LayerCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLayer.LayerTypeCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingAddGLNbr | i | =,>=,>,<>,<=,< |
tPosting.PostingDate | t | =,>=,>,<>,<=,< |
tPosting.PostingInvoiceReferenceTxt | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingIsReplacement | l | =,<> |
tPosting.PostingIsReversing | l | =,<> |
tPosting.PostingOriginatorReference | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginDaybookCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginDaybookNumber | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginDocument | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginDocumentType | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginIsExternal | l | =,<> |
tPosting.PostingOriginReference | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingOriginTransType | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingPeriod | i | =,>=,>,<>,<=,< |
tPosting.PostingText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPosting.PostingVoucher | i | =,>=,>,<>,<=,< |
tPosting.PostingYear | i | =,>=,>,<>,<=,< |
tPosting.PostingYearPeriod | i | =,>=,>,<>,<=,< |
iiCompanyId | integer | Company id |
field name | data type | db field | description |
---|---|---|---|
tiPostingAddGLNbr | integer | Posting.PostingAddGLNbr | When additional GL numbering is enabled for an entity, all postings for this entity are assigned a continuous, uninterrupted incremental sequence numbers as the value for this field. |
api annotation: | When additional GL numbering is not enabled for the current entity, value for this field defaults to 0. | ||
tlPostingIsReplacement | logical | Posting.PostingIsReplacement | Indicate whether the posting is a replacement of an existing posting. |
api annotation: | Value for this field defaults to "false". For reversal postings, either automatic or manual - this value defaults to "true". | ||
tlPostingIsReversing | logical | Posting.PostingIsReversing | Indicate whether the posting is a reversal of an existing posting. |
api annotation: | Value for this field defaults to "false". | ||
tcPostingOriginatorReference | character | Posting.PostingOriginatorReference | Original Posting Reference. this field must contain the key values of the refered posting, if this posting is a manual reversal or replacement of an existing posting. |
api annotation: | Value for this field defaults to blank. | ||
tcPostingInvoiceReferenceTxt | character | Posting.PostingInvoiceReferenceTxt | When the posting is part of an invoice posting, then this field contains the invoice number (Year/Daybook/Voucher extended with supplier invoice Reference in case of a supplier invoice). Used for information purpose on reports and browsers. |
api annotation: | Value for this field defaults to blank | ||
tiCompany_ID | integer | Posting.Company_ID | Link to Company |
tiPostingYearPeriod | integer | Posting.PostingYearPeriod | The GL calendar year/period for the posting. This field is determined by "PostingPeriod" and "PostingYear". |
api annotation: | If Partial Update is true, the value defaults using PostingPeriod and PostingYear. | ||
tcLayerCode | character | Layer.LayerCode | Layer Code |
tiJournal_ID | integer | Posting.Journal_ID | Daybook Code |
tiPostingPeriod | integer | Posting.PostingPeriod | The GL period for the posting. The period must be open. |
tiPostingYear | integer | Posting.PostingYear | The GL calendar year for the posting. |
tcJournalCode | character | Journal.JournalCode | A daybook code (maximum eight characters). |
tiPostingVoucher | integer | Posting.PostingVoucher | Voucher is a sequential number that uniquely identifies the journal entry (within the combination of an entity and a daybook code). |
api annotation: | In create mode,enter 0 in this field - the voucher number is generated by the system. In Modify/Delete, the correct voucher number must be entered because this identifies the record. | ||
ttPostingDate | date | Posting.PostingDate | The accounting date on which the journal entry is posted. The posting date must be a valid calendar date and must be within the GL calendar year (PostingYear) and period (PostingPeriod). |
tcPostingText | character | Posting.PostingText | Free text describing the posting. |
api annotation: | Value for this field defaults to blank | ||
tcLayerTypeCodeCalc | character | calculated | |
tcLayerTypeCode | character | Layer.LayerTypeCode | Layer Type |
tiPosting_ID | integer | Posting.Posting_ID | Record ID |
tlPostingOriginIsExternal | logical | Posting.PostingOriginIsExternal | Indicate whether the posting is from an External Origin. When creating cross company postings, set this to true. |
api annotation: | Value for this field defaults to false. | ||
tcPostingOriginReference | character | Posting.PostingOriginReference | GL Reference Number. Format is ZZYYMMDD999999 where ZZ = module (IC, SO, WO) YY = Year, MM = Month, DD = Day, 999999 = Running Journal Number. MfgPro equivalent: glt_ref |
tcPostingOriginDocument | character | Posting.PostingOriginDocument | Transaction History Number (Inventory or Operations) or Invoice Number (Sales Order) MfgPro equivalent: glt_doc |
tcPostingOriginDocumentType | character | Posting.PostingOriginDocumentType | Document Type (I for Invoice, OP for Work Orders) MfgPro equivalent: glt_doc_type |
tcPostingOriginTransType | character | Posting.PostingOriginTransType | System generated code used to identify a transaction (IC for Inventory, WO for Work Orders, SO for Sales Orders, FA for Fixed Assets) MfgPro equivalent: glt_tr_type |
tcPostingOriginDaybookCode | character | Posting.PostingOriginDaybookCode | Daybook Code (normally this corresponds with our JournalCode) MfgPro equivalent: glt_dy_code |
tcPostingOriginDaybookNumber | character | Posting.PostingOriginDaybookNumber | Daybook Number (normally this corresponds with our PostingVoucher) MfgPro equivalent: glt_dy_num |
PostingCustom | character | calculated | custom fields |
JournalCustom | character | calculated | custom fields |
LayerCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(Posting),rowid(Journal),rowid(Layer) |
define temp-table ttContext no-undo field propertyQualifier as character field propertyName as character field propertyValue as character index entityContext is primary unique propertyQualifier propertyName index propertyQualifier propertyQualifier. define dataset dsContext for ttContext. define variable vhContextDS as handle no-undo. define variable vhExceptionDS as handle no-undo. define variable vhServer as handle no-undo. define variable vhInputDS as handle no-undo. define variable vhInputOutputDS as handle no-undo. define variable vhOutputDS as handle no-undo. define variable vhParameter as handle no-undo. /* Create context */ create ttContext. assign ttContext.propertyName = "programName" ttContext.propertyValue = "BJournalEntry". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "SelectPostingByReplacement". create ttContext. assign ttContext.propertyName = "applicationId" ttContext.propertyValue = "fin". create ttContext. assign ttContext.propertyName = "entity" ttContext.propertyValue = "1000". create ttContext. assign ttContext.propertyName = "userName" ttContext.propertyValue = "mfg". create ttContext. assign ttContext.propertyName = "password" ttContext.propertyValue = "". /* Create input dataset */ create dataset vhInputDS. vhInputDS:read-xmlschema("file", "xml/bjournalentry.selectpostingbyreplacement.i.xsd", ?). vhParameter = vhInputDS:get-buffer-handle("tParameterI"). vhParameter:buffer-create(). assign vhParameter::icRange = "A" vhParameter::icRowid = "" vhParameter::iiRownum = 0 vhParameter::iiNumber = 5 /* Number of records to read */ vhParameter::icSortColumns = "" vhParameter::ilCountOnly = false vhParameter::ilForwardRead = true vhParameter::iiMaximumBrowseRecordsToCount = 0. vhParameter = vhInputDS:get-buffer-handle("tFilter"). vhParameter:buffer-create(). assign vhParameter::<field-name-1> = <field-value-1> vhParameter::<field-name-2> = <field-value-2> ... /* Connect the AppServer */ create server vhServer. vhServer:connect("-URL <appserver-url>"). if not vhServer:connected() then do: message "Could not connect AppServer" view-as alert-box error title "Error". return. end. /* Run */ assign vhContextDS = dataset dsContext:handle. run program/rpcrequestservice.p on vhServer (input-output dataset-handle vhContextDS by-reference, output dataset-handle vhExceptionDS, input dataset-handle vhInputDS by-reference, input-output dataset-handle vhInputOutputDS by-reference, output dataset-handle vhOutputDS). /* Handle output however you want, in this example, we dump it to xml */ if valid-handle(vhExceptionDS) then vhExceptionDS:write-xml("file", "Exceptions.xml", true). if valid-handle(vhOutputDS) then vhOutputDS:write-xml("file", "Output.xml", true). /* Cleanup */ vhServer:disconnect(). assign vhServer = ?. if valid-handle(vhInputDS) then delete object vhInputDS. if valid-handle(vhOutputDS) then delete object vhOutputDS. if valid-handle(vhExceptionDS) then delete object vhExceptionDS.