Hi Craig,
Please check the tables listed under the below links
Table that link RE and Document Management | SCN
Some useful function modules
BDS_BUSINESSDOCUMENT_CREATEF
BDS_ALL_CONNECTIONS_GET
BDS_BUSINESSDOCUMENT_GET_INFO
BDS_BUSINESSDOCUMENT_GET_TAB
Class – CL_BDS_DOCUMENT_SET
Hope this helps.
Regards,
Deepak Kori