Skip to Content
avatar image
Former Member

About abap and java

I´am somewhat new into this subject, so please excuse if I´m asking nonsense. As far as I know there´s Netweaver to code in JAVA and WAS to run it. Or BSPs coded inside the sapgui (se80) in OOABAP plus jsp or bhtml for its presentation layer.. BUT I heard something about java code embedded into abap.. How is that..? Could anyone please explain me if such thing exists?

Oh and there´s web dynpros!! They can be developed in Netweaver.. can they be developed with the SE80 (or anywhere inside a sapgui) too?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Apr 20, 2004 at 11:13 AM

    Hi Jonatan,

    I´am somewhat new into this subject, so please excuse

    if I´m asking nonsense. As far as I know there´s

    Netweaver to code in JAVA and WAS to run it.

    OK

    Or BSPs

    coded inside the sapgui (se80) in OOABAP plus jsp or

    bhtml for its presentation layer..

    NO, only BSP OR JSP, which is more or less the same either in Java or ABAP.

    BUT I heard

    something about java code embedded into abap.. How is

    that..? Could anyone please explain me if such thing

    exists?

    NO. No chance. You cannot embed Java into ABAP, they are running in different processes in any case.

    Oh and there´s web dynpros!! They can be developed in

    Netweaver.. can they be developed with the SE80 (or

    anywhere inside a sapgui) too?

    Not yet. In the future it is planned to have Web Dynpro for ABAP, but currently it is available for Java only.

    Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2004 at 12:49 PM

    Hi Benny!

    We did some research yesterday with a friend and we didn´t find anything about abap and java, but we DID find an abap class that can run javascript ver1.5..!! That was most probably what I have been hearing about..

    You can check it out running transaction ABAPDOCU (R/3 4.7) or online HELP docs: http://help.sap.com/saphelp_470/helpdata/en/49/a8e3c8d59811d4b2e90050dadfb92b/frameset.htm

    Still, there are MANY doubts.. It doesn´t seem very usefull to run javascript inside a language that already lets you do anything you need.. What´s its purpose?? Whish someone could let me know that!!

    Add comment
    10|10000 characters needed characters exceeded

    • Oh yes, I heard about this.

      But anyway, here is rule number one when asking questions to me: NEVER ask about why things are happening the way they do in ABAP.

      I'm only as deep in ABAP as it is really needed.... (not offending any ABAP Users: as long as you're doing it I don't have to.)

      Benny 😉

  • avatar image
    Former Member
    Apr 30, 2004 at 11:31 AM

    Hi Jonatan,

    SE80

    First of all, just to clear things up (You probably know this by now). SE80 is a transaction code in SAP which is the likely starting point for development.

    It encapsulates functionality to create function modules, screens, ABAP code and yes BSPs.

    ABAP/SAP and THE OUTSIDE WORLD

    As to java code or javascript code being embedded into an abap application. Hmmm... it is possible to call java code or javascript code from ABAP. or .net or C++ for that matter. They are, however, not straightforward. There are no ABAP language components which actually calls external language components(except for C and XML transformations) within the ABAP "IDE".

    ABAP communicates to the outside world through Remote Function Calls. Thus, it is possible to call a C++, .NET or Java library through a remote function call. However,In the day-to-day development of business applications this is typically not done since most of the application components are within SAP already and therefore within reach of ABAP.

    JAVA/JAVASCRIPT IN SAP

    Please also note JAVA and JAVASCRIPT are two totally different languages. Java can create standalone applications and Browser based applets. Javascript can't. Javascript is a non-compilable scripting language which your browser interprets. It is typically used to enhance webpages.

    As such... within SAP, Javascipt can be found within BSP's.

    Java (within SAP), on the other hand, is run off a J2EE server, connected but totally independent of ABAP Environment and SE80. The development environment is called Netweaver Developer Studio - which is SAP's flavor of an open source development environment called Eclipse.

    Hope this helps,

    Wilbert Sison

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Wilbert, you are making clear more than one thing here, which is great for making this messages really usefull for other people..

      I actually know what the differences between java and javascript are, as I´ve worked in web development for years. I also worked developing middlewares with Java and JCO and of course communicating with SAP through RFC.

      Javascript was first developed by Netscape, and as you state java and javascript are different things that don´t even compare to each other. We are talking about javascript here. A language meant to be run on web browsers. SAP has implemented a class (CL_JAVA_SCRIPT) to run javascript INSIDE of sap.. We are not talking about web browsers or making remote functions call at all here.. It´s just plain javascript code being run inside an abap program, binding its variables with abap ones as a way of communicating data.. Javascript is pretty flexible, but I don´t think it has any functionality not already provided by ABAP, that is actually why I´m asking what its purpose could be. 😊

      Please, before anyone answers to this thread, logon to a SAP 4.7 server, run transaction ABAPDOCU and read section ´ABAP and Javascript´, view and run the mini-editor example available and read this online help page at:

      http://help.sap.com/saphelp_470/helpdata/en/49/a8e3c8d59811d4b2e90050dadfb92b/frameset.htm

      That way we will all speak the same language here 😊

      Best Regards,

      - Jonathan