that would be a lot of stuff. there are custom tables/ubes/bsfn that make it all work.

but i can summarize.

1)ube that creates the bi docs is setup to insert a record into a table for later attachment processing
2)control the filename of the ube via the bi doc filename control (we have a next number setup per document. 12345_1.pdf,12345_2.pdf etc)
3)ube processing the table runs a bsfn that does all the work of attaching. In our E1 we didn't have the new fancy api for attachments and we store the stuff in the F98MODAT. So i have to manually insert into F98MODAT and F00165