I have implemented the SAP Portal with ESS package in our customer.
I developed a WDA to show the employee photo. I have used InteractiveForm to do this.
I got the photo from archivelink (BINARY) and convert it to XSTRING. See the source below:
call function 'SCMS_AO_TABLE_GET'
arc_id = archivelink-archiv_id
doc_id = archivelink-arc_doc_id
comp_id = 'data'
length = lv_length
data = lt_data
error_http = 1
error_archiv = 2
error_kernel = 3
error_config = 4
others = 5.
if sy-subrc ne 0.
call function 'SCMS_BINARY_TO_XSTRING'
input_length = lv_length
buffer = foto
binary_tab = lt_data.
The problem is: Some machines are showing the adobe error "File does not begin with %PDF", therefore others have no problem.
What I can do to solve it ?