you can insert placeholders to header and footer between <...>
These are the placeholders:
source_header  | 
header of document. All fielsd, e. g. ORDR for order. Attention: When previewing (as soon as this function is available) not all fields are filled.  | 
source_line  | 
Document-Lines all Fields, example Order all Fields e.c. from rdr1 or inv1  | 
document_header  | 
All fields from beas_document_header  | 
document_line  | 
All fields from beas_document_line  | 
companyinfo  | 
Special fields from oadm (Company):  | 
contactadr  | 
All fields from OCPR (Ansprechpartner)  | 
owneradr  | 
Special fields from Personal (ohem):  | 
invoiceadr  | 
invoice address  | 
shipadr  | 
shipping address. All fields from OCRD  | 
payment  | 
all Fields from Payment OCTG  | 
skonto  | 
Discount-Table ocdc: code and tabledesc  | 
My Adress: <companyinfo.compnyaddr>