Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Decode SDOKCONT1.CLUSTD

Former Member
0 Likes
1,612

Hi All,

I wish to know is there any Function Module which will help decode the field SDOKCONT1.CLUSTD

This is the field where the employee pic is stored in LRAW (hexadecimal) format.

e.g. we used READ_TEXT to decode STXL.CLUSTD

Thanks!!

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,249

You don't need to decode, you must use SAP APIs to read it: SDOK* function modules. See [SAP Library - DMS programming interface|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/4d26696ab411d3aece0000e82deb58/frameset.htm] and forum for further information. People also use ARCHIVOBJECT_GET_TABLE.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,250

You don't need to decode, you must use SAP APIs to read it: SDOK* function modules. See [SAP Library - DMS programming interface|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/4d26696ab411d3aece0000e82deb58/frameset.htm] and forum for further information. People also use ARCHIVOBJECT_GET_TABLE.

Read only

0 Likes
1,249

Hi Sandra,

So many function modules in SDOK series.

I am in kind of a fix. I actually want to display employee photos along with their other details in crystal reports. I am working on SAP ECC6.

I actually dont know for sure how and where the employee pics are stored in the SAP database.

Currently i assume that the employee pics are in location SDOKCONT1.CLUSTD.

Contents of this field are Hexadecimal and the type LRAW (String 64000).

Can u please confirm that i am looking at the right place? and if not thn where i would find the employee pics?

and if this is the right field then i assume that there must be some specific Function Module to convert these Hexadecimal contents into a jpeg?

Can u help.

Thanks a lot already

Read only

0 Likes
1,249

Could you tell more about the values of keys you have to access SDOKCONT1 (object id + class?), how pictures were stored in your SAP system (GOS, BDS, Mime repository, name of external software...), etc.?

If you have object id and a class of type PH(ysical), you may extract the image using SDOK_PHIO_LOAD_CONTENT only.

Read only

0 Likes
1,249

Ummmm...

What i want is to display some employee details along with their photographs; in a report developed in Crystal Reports.

Rest of the data i can get from usual HR tables, but i am unable to find their pics. I have employee PERNR to locate their pics.

How can i do it