Development in JAVA within SAP ERP
i have a general question. My last attempt was testing a Java application which connects via JCo and RFC to an ABAP module and receives some table data or send some integers to that module.
The approach was to write a Java application that handles all the logic and then do some RFC's to get data within a SAP database table and then process this data in the Java application again.
After some beginner problems, everything is working fine now. But now i want to test 2 more approaches.
First, i want to do most of the logic in ABAP and just the most necessary in JAVA, is it possible to do a RFC from ABAP to call a JAVA module? (just the reverse direction as i tried it the last time).
Second, is it possible to deploy a Java application inside a SAP ERP system, that the application can access to all the SAP databases without using an ABAP RFC? I want to write everything in Java that i do not have to write a single line in ABAP but whithout having any limitations.
Thanks in advance!