Skip to Content
0
Former Member
Jul 11, 2007 at 11:36 AM

Loading documents and attaching them to business objects

331 Views

Hi,

I am trying to load documents (Word and PDF files) into a content management server linked to a SAP CRM system. The documents need to be attached to business objects such as interaction records (BUS2000126) and service tickets (BUS2000116).

I have experimented with FMs <b>BDS_BUSINESSDOCUMENT_CREATEF</b> and <b>ARCHIV_CONNECTION_INSERT</b> but haven't yet found the right combination of values. The best I have done is to create a link which is visible in the GUI as an icon, but when I double click on it, I get an error message saying that the document does not exist (error 404).

The import parameters I am using in BDS_BUSINESSDOCUMENT_CREATEF are:

LOGICAL_SYSTEM = [blank]

CLASSNAME = ZCSIP_LTR (a value from table TOADV)

CLASSTYPE = BO

CLIENT = [default]

OBJECT_KEY = [blank]

FILES

DOC_COUNT = 00000001

COMP_COUNT = 00000001

COMP_ID = [blank]

DIRECTORY = U:\DOCUMENTS\TEST DATA\

FILENAME = FA.PDF

MIMETYPE = application/pdf

SIGNATURE

DOC_COUNT = 00000001

PROP_NAME = BDS_CONTREP

PROP_VALUE = ZT (my content repository name)

The FM returns a GUID as the OBJECT_KEY ...

Then I am using ARCHIV_CONNECTION_INSERT as follows:

ARCHIV_ID = ZT

ARC_DOC_ID = [GUID returned by BDS_BUSINESSDOCUMENT_CREATEF]

AR_OBJECT = ZCSIP_LTR (a value from table TOADV - as above)

MANDANT = [default client as above]

OBJECT_ID = [GUID of the object I want to attach the document to]

SAP_OBJECT = [Business object identifier] e.g. BUS2000126

DOC_TYPE = PDF

Can what I need to do be achieved through just using BDS_BUSINESSDOCUMENT_CREATEF? What import parameters should I use? What values should they contain?

Many thanks in advance,

Peter