Foren

Ingration with SAP

Geervani BS, geändert vor 13 Jahren.

Ingration with SAP

Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
Hello Experts,

Is there any document/reference which gives step by step explaination for integrating SAP with Liferay portal. I am new to Liferay. I want to retrive some data from SAP BAPIs and display.

Its urgent, any help will be appreciated.

Thanks in advance

Sandhya
thumbnail
Manish Kumar Gupta, geändert vor 13 Jahren.

RE: Ingration with SAP

Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
I don't have any document but I know a way to achieve this.

If you are familiar with JCA (J2EE connector architector), you can use it to access SAP BAPI/RFC from any java application such as portlet.
Geervani BS, geändert vor 13 Jahren.

RE: Ingration with SAP

Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
thanks for the reply manish,

I am facing a problem. pls help to resolve. I am trying to connect to SAP system using the following code:


        Properties connectProperties = new Properties();
        connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "appserver");
        connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR,  "00");
        connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");
        connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "JCOTEST");
        connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "JCOTEST");
        connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");

        MyDestinationDataProvider myProvider = new MyDestinationDataProvider();
        
        [b]com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(myProvider);[/b]
        myProvider.changePropertiesForABAP_AS(connectProperties);
        
        JCoDestination ABAP_AS = JCoDestinationManager.getDestination("ABAP_AS");
        ABAP_AS.ping();

        System.out.println("ABAP_AS destination is ok");


but there is some error in the line com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(myProvider)

if I execute the .java file, it runs fine. but when using in a portlet, its invoking a method called invoke() and getting hanged over there.

Please help. Attached is the complete code i am using

Regards
Sandhya
thumbnail
Gnaniyar Zubair, geändert vor 13 Jahren.

RE: Ingration with SAP

Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Hi,

is there any "SAP with Liferay" integration document ?

I have the same requirement. I need to pull some data from SAP-BO.
How to use Webservices to get SAP-BO datas in liferay?



Thanks in advance

- Gnaniyar Zubair
Jelmi Esteban, geändert vor 10 Jahren.

RE: Ingration with SAP

New Member Beiträge: 2 Beitrittsdatum: 05.11.13 Neueste Beiträge
hello,
as you made the integration with SAP??