Home > Ask the SAP administration / development Experts > Questions & Answers > How can I get a JCo list of supported BAPIs?
Ask The SAP Expert: Questions & Answers
EMAIL THIS

How can I get a JCo list of supported BAPIs?

Thomas  Schuessler EXPERT RESPONSE FROM: Thomas Schuessler

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site
>
QUESTION POSED ON: 21 May 2002

I am a newcomer to both SAP and JCo. I would like to obtain, via JCo, a list of BAPIs supported by an SAP system.

Based on my reading of the JCo doc, I believe after creating a JCo.Repository, I could invoke JCo.Repository.getCachedFunctionInterfaces() to obtain a String array of supported BAPIs. Is this so? Do I need to do some "loading" of the repository that I created? Will the following code do what I want it to do (ie., print all the BAPIs supported in the SAP system that I have connected to)?

JCO.Client JCOClient;
IRepository SAPRep;
String[] SAPInterfaces;

JCOClient = JCO.createClient (client, user, passwd, lang, url);
JCOClient.connect();
SAPRep = new JCO.Repository (repositoryName, JCOClient);

SAPInterfaces = SAPRep.getCachedFunctionInterfaces();
System.out.println ("List of Functions in Repository:n"); System.out.println ("================================n");
for (int count = 0; count < SAPInterfaces.length; count++) {
System.out.println (SAPInterfaces[count] + "n"); }
Many thanks.



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


getCachedFunctionInterfaces() only returns the runtime metadata of all RFMs used so far. To get a list of all supported BAPIs you need to call SWO_QUERY_API_METHODS. If you want a full-blown Metadata Server for SAP written in Java, send me an email (tgs@arasoft.de).




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts