Upload smartform output to DMS
I am trying to upload a smartform output in DMS without having to save the output in a local memory (like desktop or server). Directly upload from internal table data to DMS. I tried to use the BAPI : 'BAPI_DOCUMENT_CREATE2' but this BAPI picks the file from a local memory and then uploads the same in DMS. Kindly suggest ways to develop for this requirement.