Skip to Content
author's profile photo
Former Member

calling ABAP objects through JCO

Hello,

Could anybody provide an example on how to invoke ABAP Objects through Jco?

I only found documentation on how to invoke Function Modules but nothing regarding ABAP objects.

thanks in advance,

Jose

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Mar 11, 2004 at 01:33 PM

    Hello Jose,

    you can only call RFC enabled Function Modules with JCO.

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Mar 22, 2004 at 06:40 AM

    Hi Jose,

    As given in documentation, we can call only RFM's using JCo. But we can invoke any BAPI by invoking the corresponding RFM. For this, we must know the corresponding RFM for any BAPI. For example, BAPI Customer.GetList is invoked by calling BAPI_CUSTOMER_GETLIST. I hope this helps.

    Regards,

    Vijaya Gopal.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Mar 24, 2004 at 07:24 AM

    Create a RFC wrapper function then instantiae the ABAP Object and execute the methods within the function. Interface would be matched with import and export parameters for the RFM.

    Then you can call it from JCO.

    Message was edited by: Kyo choi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      When I read the version of the JCO document I have, which is 0.8.1 of Developing Applications with the "SAP Java Connector", it seems to say that there is a way to call BAPIs in an object oriented way with JCO. I have not tried it, but the section on the JCo Proxy Generator appears to do show this.

      ~John