cancel
Showing results for 
Search instead for 
Did you mean: 

Extraction of Documents from SAP Content Server

Former Member
0 Kudos

I've been tearing my hair out trying to find a way to do this for ages now, but to no avail 😕

I need to extract documents from the HTTP-based SAP content server.

To access documents stored in the content server, you need to build up a URL that looks something like this:

http://myserver.mydomain.com:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=ZPLM_RP1...

I can generate all of this, <i>except</i> the <b>secKey </b>parameter.

I've read every document I can find on the subject, for example:

http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm

But I can't find anything anywhere that describes how to <b>generate</b> a secKey.

Can anyone help me with this? It would be much appreciated!

Many thanks,

Colin Anderson

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

You are right, the description how to generate secKey is hard to understand. Unfortunately this is not a main topic in this forum I you may not get an answer. However I found a similar thread here .

Former Member
0 Kudos

This part, I have no problem with - I can generate the hash without any problem. It's the next stage, signing the hash, that I am struggling with because I don't know how to obtain the required private key

Would my question be better posed in another forum?

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello,

you should have a llok at Function Module

SDOK_PHIO_GET_URL_FOR_GET

This should help.

kind regards,

Carl

Former Member
0 Kudos

I eventually gave up this plan :o(

Instead I have created a working solution that SAP BAPIs:

BAPI_DOCUMENT_GETOBJECTDOCS (get documents linked to a given material)

BAPI_DOCUMENT_GETDETAIL2 (get details of a document)

BAPI_DOCUMENT_CHECKOUTVIEWX (download a document)

Many thanks for the responses!

Former Member
0 Kudos

Hello,

the private key, where the hash is signed with is stored

in your AppServer directory $DIR_INSTANCE/sec and is

called SAPSYS.PSE. Where the PSE is a secude (www.secude.de) specific format which contains the private and the publik key.

But I guess you won't get the private key, because its private, unless you are the Administror

Then signig is done via the normal industry standards. (http://www.rsasecurity.com/)

regards,

mumba.

Former Member
0 Kudos

Thanks for your help with this!

Assuming I can convince an administrator to supply me with the SAPSYS.PSE file, what format does the file take? How do I parse the private key out of it?

I had a look at the website www.secude.de but couldn't find anything useful

Former Member
0 Kudos

Hello Colin,

are you generally interested in getting ALL data from the contentserver, or do you plan to provide URLs to specific documents.

What application stored the docs in the CS?

kind regards,

Carl

Former Member
0 Kudos

I plan to provide URLs to specified documents. E.g. the user will be presented with links to all documents linked to a specific material.

The documents have all been manually entered via the SAP GUI.

Former Member
0 Kudos

OK, I've figured out a way to do it. It's not ideal, but disabling security on the Content Manager server .ini file means I don't need to generate a secKey. I can lock things down by IP address within IIS, which should be sufficient for our needs.

Next problem: How is the docId URL parameter generated and encoded?