Skip to Content
author's profile photo
Former Member

BADI Implementation in Java?

Hello,

a partner is asking, if it is possible to directly implement BADIs in JAVA, or do they have to write an Implementation of the BADI in ABAP, that starts via JCo the JAVA code?

Thanks for your help,

Martin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Apr 30, 2004 at 02:16 PM

    Hi Martin,

    BADI's are implemented as ABAP Object Classes. They are invoked as part of larger SAP applications only from within the ABAP environment.

    They are not normally started on their own - so calling them from JCo is probably out the window.

    A BADI is started when an ABAP written SAP application hits a code/object related to it.

    The JConnector, on the other hand, calls objects within SAP - it is simply an encapsulation of the existing RFC/BAPI's and does not start typically start a BADI.

    JCo can call BAPI's (different from BADI's). These BAPI's will start applications in SAP which may then contain a BADI.

    BUT!!!

    With a fair bit of arm twisting... It is, however, technically possible to implement a BADI Class that can be invoked from JCo. But yes you have to write some ABAP on your own.

    Hope this helps,

    Wilbert Sison

    Add comment
    10|10000 characters needed characters exceeded