Skip to Content
0
Apr 24, 2014 at 01:36 PM

SAP HR question

108 Views

Hi All,

I am using FM SDOK_PHIO_LOAD_CONTENT, to get the content of document in Binary form in SAP HR and converting the binary form into xstring using FM SCMS_BINARY_TO_XSTRING.But it is not getting converted to xstring form.So,is 'SDOK_PHIO_LOAD_CONTENT' is correct fm to get content of document in SAP HR and how to convert the binary data into XString .

Below is the part of code which I am using

call function 'SDOK_PHIO_LOAD_CONTENT'

exporting

object_id = lv_object_id

client = sy-mandt

as_is_mode = 'X'

raw_mode = 'X'

text_as_stream = 'X'

tables

file_access_info = lt_sdokfilaci

file_content_ascii = lt_sdokcntasc

file_content_binary = lt_sdokcntbin.



call function 'SCMS_BINARY_TO_XSTRING'

exporting

input_length = lv_size

importing

buffer = lv_buffer

tables

binary_tab = lt_sdokcntbin.

thanks