eDoc App Online Help
German English Dutch French
Auto Light Dark
Auto Light Dark
German English Dutch French

Subscriber - Methods

Events and Methods

This page describes the most important events and methods. The documentation is intended for developers and administrators.

Methods

Object

Method

Description

CU: 5518582
"BRAG eDoc Mgmt."

RestBragOutbound(RecId, FilePath, ReportId, TmpBlob, FromSendProfile);

The method takes a document and returns the electronic document as a BASE64 stream in the TmpBlob variable according to the parameterization in the customer master. The method is designed to enable a customer-specific output that can generate electronic documents independently of the use of document sending profiles (standard).

  • Parameter RecId: RecId of the object

  • Parameter FilePath: Export path

  • Parameter ReportId: Alternative ReportId to the standard

  • Parameter TmpBlob: Blob variable

  • Parameter FromSendProfile: True ==> Return in TmpBlob, False ==> Download stream

  • Example output in TmpBlob: RestBragOutbound(RecId, '', 0, TmpBlob, true)

Events

Event

Version

Object

Description

OnBeforeInsert-PurchaseHeader

from 5.7

CU: 5518584
"BRAG eDOC Import Mgmt."
Method: CreateInvoice

Event is called after the BC document is initialized and before the eDoc data are passed. Typically used to influence the document number.

OnAfterInsert-PurchaseHeader

from 5.7

CU: 5518584
"BRAG eDOC Import Mgmt."
Method: CreateInvoice

Called after the BC document is initialized and after the eDoc header data have been passed to the BC document.

OnBeforeValidate-OutboundDocument

from 5.7

CU: 5518583
"BRAG eDOC Import Mgmt."
Method: ValidateOutboundDocument

Called before the validation of the document to be posted takes place. In this subscriber you can implement your own validation routines and, via a "handler implementation", switch off the standard validation routines.

BRAGOnBefore-CodeListLookup

from 5.7

TableExtension: 1237
"BRAG Transformation Rule"
Method: CodeListLookUp

This event allows the search in the codelist to be manipulated or to program a custom search. The event occurs when a transformation rule of the type CodelistLookup is invoked.

OnCreateAttachements-ForOutboundRESTCall

from 5.7

CU: 5518582
"BRAG eDoc Mgmt."
Method: RestBragOutbound

This event allows additional attachments to be added to the ZUGFeRD PDF alongside the XML. The attachments are passed in a temporary buffer table as a stream.

OnBeforeDoPriceCheck

from 6.4

CU: 5518584
"BRAG eDOC Import Mgmt."
Method:

CheckRefDocLineAssignmentV2

Called before the standard price check of an eDoc line. This event can be used to extend the price check or completely replace it with a custom check. If IsHandled is set to true, the standard check will no longer be executed.

OnBeforeDoVATCheck

from 6.4

CU: 5518584
"BRAG eDOC Import Mgmt."
Method:

FinalEDocLineChecks

Called before the standard tax/VAT check of an eDoc line. This event can be used to extend the tax rate check or completely replace it with a custom check. ErrorExist can be used to indicate whether an error exists. If IsHandled is set to true, the standard check will no longer be executed.

OnBeforeFindPostingDate

from 6.5

CU: 5518584

"BRAG eDOC Import Mgmt."
Method:

VerifyDoc

Called before the standard determination of the posting date. This event can be used to set the posting date customer-specifically. If IsHandled is set to true, the standard determination will no longer be executed.

For more information see: brAG eDoc App


Last updated: