eDoc App Online Help

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 is 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 has 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. Custom validation routines can be implemented in this subscriber, and the standard validation routines can be disabled via a "handler implementation."

BRAGOnBefore-CodeListLookup

from 5.7

TableExtension: 1237
"BRAG Transformation Rule"
Method: CodeListLookUp

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

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 as streams in a temporary buffer table.

Last updated: