cancel
Showing results for 
Search instead for 
Did you mean: 

Jco3 Error : Function module "RFC_START_PROGRAM" not found for processing callback request.

Former Member
0 Kudos

Hi,

     I'm trying to User BAPI_DOCUMENT_CHECKOUTVIEW from my java code.

    

     But i'm getting the error as : "RFC_START_PROGRAM" not found for processing callback request

     The example code is somewhat :

          String destinationName = "ABC";
         

          // code : registering Destination using DestinationDataProvider

          .....

          JCoDestination destination = JCoDestinationManager.getDestination(destinationName);

          IDocRepository iDocRepository = destination.getRepository();

          // creating the JcoFunction object for BAPI_DOCUMENT_CHECKOUTVIEW with necessary input data.

          JcoFunction function = repository.getFunction("BAPI_DOCUMENT_CHECKOUTVIEW");

         

          // Set the function import parameters.

          ....

          JCo.setMiddlewareProperty("jco.middleware.allow_start_of_programs","ftp;sapftp;sapftpa;sapkprotp;http;saphttp;saphttpa");


          function.execute(destination);

     .....

This is working code if we want to run other BAPI but for this BAPI it is showing error.

As mentioned at few places i've also set the middleware property before executing the BAPI as follow :

JCo.setMiddlewareProperty("jco.middleware.allow_start_of_programs","ftp;sapftp;sapftpa;sapkprotp;http;saphttp;saphttpa");


Still the error persits.

Anyone could suggest what might be the reason?

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Yogesh,

Have you tried to excecute the function in the ECC system?, if the bapi show any dynpro you can call the bapi from a third system.

Are you using SAP PI?

Regards.

Former Member
0 Kudos

Hi,

Yes we tried to use "BAPI_DOCUMENT_CHECKOUTVIEW" from Sap GUI and it works fine.

But when we try to execute it from Java Code using SapJCo we are facing this issue.