In the textobjectfield "script" you can set a BEAS-Script.
Here you can get the Datastorevalue document_header and document_line and all sources of the document.
With the command druckobject=settext=<textobject>=text you can describe every textobject of the report.
document_header=setitem=cardname=(<document_header.cardname>)
for=loop=1=<document_line.rowcount>
document_line=setrow=<loop>
document_line=setitem=itemcode=
next
If nobody owns the document then Service else only middlename
if <owneradr.rowcount> n= 0 then
druckobject=settext=t_ownername= - Service -
end if
if <owneradr.rowcount> n= 1 then
druckobject=settext=t_ownername=<ownername.middlename>
end if