Skip to Content
0
Former Member
Jul 20, 2011 at 09:32 AM

Printing File from DMS in smartform from IW33

113 Views

Hi SAP Gurus,

My requirement is as follows,

In order(IW33) >Operations >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'

EXPORTING

object_id = wa_object_id

client = sy-mandt

  • AS_IS_MODE =

  • RAW_MODE =

  • TEXT_AS_STREAM =

TABLES

  • FILE_ACCESS_INFO =

  • FILE_CONTENT_ASCII =

file_content_binary = it_file_content_binary

EXCEPTIONS

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..

Regards,

Pavan.