Codeunit 18123004 EOS063 Outb. Purch. EDoc. Mgt.
Codeunit 18123004 EOS063 Outb. Purch. EDoc. Mgt.
Gather all functions related to purchase outbound documents
Methods
CreateSendElectrDocFromPostedDoc
procedure CreateSendElectrDocFromPostedDoc(RecRef: RecordRef;CreateFile: Boolean;Send2IXFE: Boolean) Result: Boolean
Create and Send the Electronic Document From Posted Doc
Parameters / Return Value
- RecRef - RecordRef- The Document 
- CreateFile - Boolean- If true, create the file 
- Send2IXFE - Boolean- If True send to IX FE the created document 
- Returns - Boolean- true equals success 
SetRecRef
procedure SetRecRef(VAR RecRef: RecordRef)
Set the RecRef that need to create the XML (handle only Purchase Invoice/Cr.Memo)
Parameters / Return Value
- RecRef - RecordRef- RecordRef 
SetAction
procedure SetAction(newAction: option Create,Send)
Set Action: could be create or Send (send will also create the document)
Parameters / Return Value
- newAction - option- Create(0) ,- Send(1)- option Create,Send 
Is1.6ExportFormat
PROCEDURE "Is1.6ExportFormat"(HideDialog: Boolean): Boolean
Parameters / Return Value
- HideDialog - Boolean
- Returns - Boolean
GetTDDefault
PROCEDURE GetTDDefault(RecRef: RecordRef) EDocType: Code[5]
Parameters / Return Value
- RecRef - RecordRef
- Returns - Code[5]
IsForeignVendor
procedure IsForeignVendor(RecRef: RecordRef): Boolean
Parameters / Return Value
- RecRef - RecordRef
- Returns - Boolean
GetSelfInvoice_IDSDI
procedure GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header") IDSDI: BigInteger
Parameters / Return Value
- PurchaseHeader - Record "Purchase Header"
- Returns - BigInteger
ReferredToDocumentItSelf
procedure ReferredToDocumentItSelf(PurchaseHeader: Record "Purchase Header"): Boolean
Parameters / Return Value
- PurchaseHeader - Record "Purchase Header"
- Returns - Boolean
Events
OnBeforeRunEDocFileSending
local procedure OnBeforeRunEDocFileSending(var RecRef: RecordRef; var IsHandled: Boolean)
Raised before global XML document sending
Parameters / Return Value
- RecRef - RecordRef- Document you’re processing 
- IsHandled - Boolean- No following standard app code will be executed 
OnAfterRunEDocFileSending
local procedure OnAfterRunEDocFileSending(var RecRef: RecordRef)
Raised after global XML document sending
Parameters / Return Value
- RecRef - RecordRef- Document you’re processing 
OnAfterEDocCreated
local procedure OnAfterEDocCreated(var RecRef: RecordRef; EOS063OutbPEDocData: Record "EOS063 Outb. P. EDoc. Data")
On After EDoc Created
Parameters / Return Value
- RecRef - RecordRef- The header of the document (it can be Purchase Cr.Memo, Purchase Invoice) 
- EOS063OutbPEDocData - Record "EOS063 Outb. P. EDoc. Data"- Table containing info about created file 
OnBefore_GetSelfInvoice_IDSDI
local procedure OnBefore_GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header"; var IDSDI: BigInteger; var IsHandled: Boolean)
Raised before retrieving related ID SDI from applied document
Parameters / Return Value
- PurchaseHeader - Record "Purchase Header"- Reference document 
- IDSDI - BigInteger- Return ID SDI value 
- IsHandled - Boolean- if true then skip the standard logics 
OnAfter_GetSelfInvoice_IDSDI
local procedure OnAfter_GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header"; var IDSDI: BigInteger)
Raised after retrieving related ID SDI from applied document
Parameters / Return Value
- PurchaseHeader - Record "Purchase Header"- Reference document 
- IDSDI - BigInteger- Return ID SDI value 
OnAfterEDocFileNameAssignation
local procedure OnAfterEDocFileNameAssignation(EOS063OutbPEDocData: Record "EOS063 Outb. P. EDoc. Data"; var NewEDocDataFileName: Text[30])
Raised after assigning the Filename field to the OutbPEDocData record
Parameters / Return Value
- EOS063OutbPEDocData - Record "EOS063 Outb. P. EDoc. Data"- Outbond purchase Electronic Document data record 
- NewEDocDataFileName - Text[30]- New Electronic Document data Filename 
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.