Skip to Content
avatar image
Former Member

JCA BAPI Call Failures

The bit of code below works.  But exchange BAPI_PO_ITEMS for BAPI_PO_GETDETAIL and it fails.

function = this.createFunction("BAPI_PO_GETDETAIL");

if (function == null)

{

  System.out.println("Function" + " not found in SAP.");

  System.exit(1);

}

JCO.ParameterList input = function.getImportParameterList();

input.setValue("5000000021", "PURCHASEORDER");

mConnection.execute(function);

We get the error message:

com.sap.mw.jca.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The function module "BAPI_PO_GETITEMS" not released for 'remote' calls.

But it is!  Active, RFC enabled, and released. Works in SE37 called from another R/3 instance.

The only differences we see is that BAPI_PO_GETITEMS uses instance independent methods and has a mandetory table parameter.

We've tried it with other BAPIs and think it's always the instance independent ones with mandetory table parameters (but not 100% sure).

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 15, 2004 at 04:31 PM

    Any example in making calls to BAPI_PO_GETDETAIL with passing in a parameter i.e. PO_NUMBER (in PoItems table)???

    Add comment
    10|10000 characters needed characters exceeded