Skip to Content
0
Former Member
Apr 16, 2010 at 05:09 PM

SAP to ALFRESCO RFC Call

150 Views

Hi

I am currently a junior ABAP developer working on a project where we wish to test whether or not a document within the Alfresco system exists. I have been told that the easiest way to accomplish this would be by using a RFC.

After some reading up all I could find was some that some third party CTAC has developed a connector to do this, although the information regarding this is quite vague.

In our implementation we wish to:

- users should enter the document number, corresponding to a document on the alfresco server

- call a RFC that would check whether the file exists within the alfresco file server.

- if the file does exist it should load the URL for that file on the Alfresco server.

The function to call the URL is working fine and properly. The only problem comes with the validation of the existence of the file on the external server.

Currently we have a Destination set up with the type 'G' for HTTP communication to external server which according to our basis consultant is the correct one.

When trying to run the RFC I receive the following error:

'Illegal destination type 'G''

Here is an example of the calling of the RFC.

call function 'ZRFC_TO_ALFRESCO' destination 'ALFRESCO'

exporting

vbeln = p_docnum

importing

doc_exist = w_result.

Is it not possible to make RFC calls to a type G destination? Is there ways to work around this? Any help would truthfully be appreciated.

Thank you.