cancel
Showing results for 
Search instead for 
Did you mean: 

BAPIs available for CCMS

Former Member
0 Kudos

HI

I am currently developing a java application which reads actual values from the CCMS Monitoring using the JCo, In this regard I wanted to know the BAPIs available for CCMS that I can use.

Accepted Solutions (1)

Accepted Solutions (1)

former_member193379
Active Contributor
0 Kudos

Hi Akrem,

Please try below BAPIs as per your requirement

BAPI_SYSTEM_MTE_GETPERFCURVAL - Read the Current Performance Values Basis - Monitoring

BAPI_SYSTEM_MTE_GETTIDBYNAME - Read TID for a Uniquely-Named MTE Basis - Monitoring

Thanks,

Hamendra

Former Member
0 Kudos

hi Hamendra

thanks for your help,

Akrem

Former Member
0 Kudos

hi hamendra

I'm beginer in sap ,and i search an exemple(java code) that uses jco to call this bapi(BAPI_SYSTEM_MTE_GETPERFCURVAL) .


Thanks in advance for any help


akrem

former_member193379
Active Contributor
0 Kudos

Hi Akrem,

Please find the code below, this is just for your reference and based on JCO 2.*. On the basis of below you can build your code.

import com.sap.mw.jco.*;

public class callBapi {

   JCO.Client mConnection;
   JCO.Repository mRepository;

    public callBapi() {

       try {

         // Change the logon information to your own system/user


         mConnection =
            JCO.createClient("001", // SAP client

              "<userid>", // userid
               "****", // password
              null, // language
              "<hostname>", // application server host name
              "00"); // system number

        mConnection.connect();
        mRepository = new JCO.Repository("SAPJCo", mConnection);

      }catch (Exception ex) {

        ex.printStackTrace();
     }
      JCO.Function function = null;
      JCO.Table codes = null;

      try {

         function = this.createFunction("BAPI_SYSTEM_MTE_GETPERFCURVAL");

         if (function == null) {
          System.out.println("Please check your BAPI Name");

         }

         mConnection.execute(function);
         JCO.Structure returnStructure =
           function.getExportParameterList().getStructure("<Structure Name>");

         }

         codes =

           function.getTableParameterList().getTable("<TableName>");

         for (int i = 0; i < codes.getNumRows(); i++) {
           codes.setRow(i);
           System.out.println(codes.getString("<FieldName>") + '\t' +

                             codes.getString("<FieldName>"));

         }

      }


      catch (Exception ex) {

        ex.printStackTrace();
        System.exit(1);

      }

Thanks,

Hamendra

Former Member
0 Kudos

hi hamendra


thanks for your help

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

you should no longer build applications based on JCo 2.x. It has been out of support since March 2013.

Best regards,

Markus

former_member193379
Active Contributor
0 Kudos

Hi Markus,

That's true and JCo 3.x should be used.

Thanks,

Hamendra

Answers (0)