Sunday, June 26

SAP EP Connecting to SAP Backend systems

SAP Enterprise portal is a single point of access to enterprise wide information. This information can reside in various types of databases and various type of systems. SAP EP does not generate data on its own. It simply displays data which it fetches from various backend systems. How does it do so? How does it fetch data. There has to be some connection established. This connection is called JCO, the Java Connector.
In case you want to fetch only transaction data, you need not use JCOs. Systems objects would be enough for fetching transaction data.
When you have a portal component, none of the above mentioned connectors will be useful. You will have to use connector using SAP Connector Framework which is based on JCA. These three connection types in detail are written below.
Transaction Data:
So for transaction data, you have to create a system object on SAP EP. For this, go to system admin->system configuration. Right Click on a folder and say create system. Enter all mandatory parameters needed to create a system, its host name, port number etc. Enter system alias. Alias is the name by which system is identified when transports are done. Once you enter system alias and mandatory parameters, you are done. This system object which you just created can help you getch transaction data in SAP enterprise portal.
RFC or BAPI data in WDJ application:
For this you have to create JCO. In SAP Enterprise portal, screens are provided to create and maintain JCO. There is nothing much to explain here as the screen for creating and maintenance of JCO is self explanatory. You can go web dynpro console on sap ep and say create a JCO destination. You will need to provide system object name and user ID and password to logon to that system.
SAP Connector Framework using JCA:
Here we use connector based on JCA. This is one of the most important connections to the backend as it connects a portal component to backend. JCA code is available on the sap help portal. Copy the code from there. Create a system object in SAP EP and configure a Alias for it. Then you need to provide this Alias in the JCA code which you copied from the sap help portal.
In the process of establishing connection, JCA hands over the control to system object which is identifies in the code. System object in turn fetches data from the backend and the control is again transferred to JCA.
Two important things to be noted here are system Alias and user mapping. When a system is transported to another environment in the landscape, its user mapping and alias have to transported along with it manually. If this is not done, none of the connections using that system would work.

No comments:

Post a Comment

You are welcome to express your views here...