Hi SAP Gurus,
My requirement is as follows,
>Production Resources/ Tools, A document is maintianed. I need to print file from there in a smartform regardless of the file format.
For this I have searched and found the following logic.
from Tables dms_doc2loio, dms_ph_cd1 I am getting Doc details, these details are passed to the below FM,
*This function module will give the content of the file in binary format
CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
object_id = wa_object_id
client = sy-mandt
file_content_binary = it_file_content_binary
not_existing = 1
not_authorized = 2
no_content = 3
bad_storage_type = 4
OTHERS = 5.
After getting the data in binary format, how to print in smartforms, Please help..