How can I retrieve a List of BAPIs with JCO?

Hello!
I want to retrieve a list of BAPIs in Java. Does anyone have a code sample how to do this with JCO and SWO_QUERY_API_METHODS?
Regards,
Jan

Hi Diana,
I've written a small example here (refresh my rusty JCo!) which returns just the function names in a Vector.
Hope this helps,
Gregor
* Fetch a list of BAPIs
* @author Gregor Brett
import com.sap.mw.jco.*;
import java.util.*;
public class GetBapis
   private JCO.Client client;     
   private JCO.Repository repository;
   private Vector bapis;
   public GetBapis()
      try
         client = JCO.createClient("CLIENT","USERNAME","PASSWORD","EN","SERVERNAME","00");
         client.connect();
         repository = new JCO.Repository("Gregor", client);
           IFunctionTemplate ftemplate = repository.getFunctionTemplate("SWO_QUERY_API_METHODS");
           JCO.Function function = ftemplate.getFunction();
           client.execute(function);
            JCO.Table table = function.getTableParameterList().getTable("API_METHODS");
            bapis = new Vector();
         do
            JCO.Field functionName = table.getField("FUNCTION");
               bapis.add(functionName.getString());
           while(table.nextRow());
      catch(Exception e)
         System.out.println("Error: " + e.getMessage());
         e.printStackTrace();
   public Vector getBapiList()
           return bapis;
   public static void main(String[] args)
           GetBapis gb = new GetBapis();
           Vector v = gb.getBapiList();
           System.out.println("Fetched " + v.size() + " BAPIs.");

Similar Messages

  • How can i retrieve deleted notes from iphone4 with no back up

    how can i retrieve deleted notes from iphone4 with no back up

    No Backup?
    Simply put, you can't.
    I won't rub salt into it anymore, but I guess you have just learned the importance of backing up your information.
    A mistake we've all made (once).

  • How can I get a list of locations with address and contact info?

    In Adobe Story Plus, I've gone through the effort of entering address and contact info for all locations. I would like to now use this information.
    When I choose Sets and Locations, I get the set names only, separated by Studio and Location. No locations, no addresses.
    When I choose to export the Set List as XML, I get an XML file that seem to contain the address information. However, it does not appear to be a valid XML file, readable neither in Excel nor Google Docs.
    Are there reports that I can create that include this information? Is there a useful way to export XML and open in Excel/Number/Google Docs/Word, etc?
    I'm about to embark on a search to how the XML can be formatted properly but this isn't really where I wanted to be spending my time on this project.
    Thanks.

    Yes. I tried it on Windows version.
    Would you mind doing the following steps to view that XML file as a table in Safari? Then from safari, you can copy paste it Excel.
    1. Export the Set List XML from Story.
    2. Extract the 'transformSetListIntoTable.xsl' file from the attached zip file and place it in the same directory in which Set List XML is present.
    3. Open the Set List xml file in a text editor and paste the following text at its very beginning.
    <?xml-stylesheet type="text/xsl" href="transformSetListIntoTable.xsl"?>
    4. Save the changes.
    5. Open the Set List xml file in Safari
    6. In Safari, Select All and paste it inside Excel.

  • How can I get a list of users with reset password ability?

    We are trying to tighten our security, but thanks to the environment we are in this is a bigger task than it should be. As part of this I have been asked to get a list of users who have the ability to reset other users passwords. there are the obvious suspects,
    domain admins, service desk etc., but we also appear to have random people who can do this because of a requirement during test or development stages way back. Is there a way to get this, I looked at using powershell but there doesn't seem to be much out there
    to give me a pointer, things like ADManager+ do not work, when I try to search on permissions it sits there doing nothing then crashes.
    Is there a way to build a function using powershell that can do this or is there some third party cmdlet or app that will provide me this info?
    Any help gratefully accepted.

    Hi,
    Based on my knowledge, except for those default groups users, such as domain admins and enterprise admins and so on, have reset password ability for other users, we can use delegation control to give other common users permissions to reset password for others,
    to view or delete Active Directory Delegated Permissions, please go through the below article:
    https://social.technet.microsoft.com/wiki/contents/articles/6477.how-to-view-or-delete-active-directory-delegated-permissions.aspx
    And if you were editing single user's security tab to give specific users reset password permissions, then I think we should create a script to get all those users, for scripting, please also post in the official scripting guys forum:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Regards,
    Yan Li
    Regards, Yan Li

  • I connected my ipad to a diff. Laptop then i think the laptop synced with ipad. When i opened the ipad,  i cannot log in to my icloud account, the fb of the owner of the laptop synced with my ipad, all my photos were deleted. How can i retrieve every

    I Connected my ipad air2 to a different laptop and it synced. i lost all my photos, they,re asking for the apple id of the person who pwned the laptop. How can i retrieve my icloud account and how can i retrieve everything

    Have you tried syncing with your own computer. The one you used to sync the photos to your iPad in the first place?
    Do you have a backup of your iPad on your own computer? Or in iCloud?
    If your iPad is stuck to the Apple ID and password used by the different laptop have the owner of that laptop remove your device from their iCloud account. They can go to iCloud.com on their laptop, enter their Apple ID and password and then remove your iPad from their account.
    Once you sign into your own Apple ID and password and then sign in to your iCloud account, many of your lost items should come back. Specifically these include your Contacts andCalendar entries.

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • HT201272 How can I retrieve hidden apps on purchase list? I am careless to select "hidden"

    I am careless swift the icon "hidden" on purchase list. It is disappeared. How can I retrieve it?

    Help here >  iTunes Store: Hiding and unhiding purchases

  • Organized tags disappeared into an alphabetic list from the cloud.  How can I retrieve the original

    In Photoshop Elements 8 orgainzer my neatlyy organized tags, categories and subcategories have disappeared and in its place I find and alphabetical list of them all from the cloud?  How can I retrieve my original organized list?

    Are you talking about Places and Events categories from PSE8 catalog?
    If yes, please find them under Imported keyword tags category in the tags panel, present on the right hand side of the app.
    Thanks
    Andaleeb

  • How can we retrieve list and library data from rest services

    Hi Everybody,
    How can we get the list or library data from sharepoint 2010 rest services.
    Here is the URL I am trying: https://siteurl/_vti_bin/listdata.svc
    Can anybody please provide sample c# code to pull the info.
    Thanks in advance,
    Krishna
    Krishnasandeep

    Here is reference material:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    And an example:
    http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I have a user who has permissions on site A B C 's some libraries. How can I get a list for all the contents the user have permission for?

    The user has permissions on site A B, and C. within the sites, the user has permissions on some lists/libraries.
    how can i retrieve an entire list to see what the user has permissions on?
    thank you 
    I might be a newbie in some area. But I'm working hard. :)

    You can get the report using powershell, please check below posts
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a3252bf-cb03-4488-9a0d-f4e0ce07d497/user-permissionsaccess-report-in-sharepoint-site
    http://reality-tech.com/2011/12/30/reporting-on-all-user-permissions-in-a-web-application/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How can I retrieve my account I forgot my security question?

    Please I want to make a purchase online through my iPad, but I couldn't due to some problem that is related to my ID. How can I retrieve my account? I forgot my security questions

    From an older post by King_Penguin:
    If you can't remember the answers to the security questions, then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox).

  • Question : In "Mail" my entire SAVED FILE HAS DISAPPEARED....how can I retrieve it?

    In MAIL my heading for SAVED ACCOUNT for myself and my husband has completely disappeared with all our saved stuff.  How can I retrieve these saved files? thanks for anyone's help.

    As the link says: "Make sure Mail is the current app."
    Once you open Time Machine, you will see your folder list on the left like this just as you do when not in Time Machine:
    If you have more than one "Sent" mailbox (as I do above), just click the little flippy triangle to the left of "Sent" to see them all.

  • How can I retrieve imessages after I restored my iphone to factory settings but didn't back up prior to restore?

    How can I retrieve imessages after I restored my iphone 4 to factory setting and didn't back up prior to restore?

    If you synch your phone to your computer via itunes,it performs a backup prior to synching. You can check by luanching itunes select preferences>devices,all backups should be shown there. If in fact there is a backup of your phone listed then do a restore of that back up.

  • How can I retrieve 'ign' table

    Dear All,
    I was getting ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found in homogeneous system copy and during system import i skipped that table(SAPSR3.TPALOG)  on which ORA-01452 error was occurring mean i just change the 'err' with 'ign' in TSK file. now please tell me how can I retrieve that ignored table(TPALOG).
    Regards,
    majamil

    Dear Orkun,
    I am getting follwing error during table import.
    BR0280I BRSPACE time stamp: 2011-12-26 23.34.11
    BR0658I List menu 362 - please select one entry
    List of BRSPACE exports for import
    Pos.  Run           Date                   Tables  Dumps       Size[KB]  Util.
      1 = sehnigrl.tbe  2011-12-26 21.55.41        1      1          11748   EXP
      2 - sedqoohl.tbe  2010-07-11 23.56.09        1      1             58   EXP
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your selection:
    1
    BR0280I BRSPACE time stamp: 2011-12-26 23.34.16
    BR0663I Your selection: '1'
    BR1170E Dump file 'G:\oracle\PRD\sapreorg\sehnigrl.edd\expdat.dmp' not found
    BR0669I Cannot continue due to previous warnings or errors - you can go back to
    repeat the last action
    BR0280I BRSPACE time stamp: 2011-12-26 23.34.16
    BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
    while expdat.dmp file is exist in mentioned directory.
    hi deepak,
    I have released following request but  this request is not exist in trans/Co nd Data folder while its log exist in Log folder.
    Released
        PRDK900047       AJAMIL       HSC: Export Table TPALOG for SI
            Object List of Request
                Table
                    TPALOG
            Request Attributes
                SAPCOMPONENT
                    IS-H,600,0006
                    IS-M,600,0006
                    IS-OIL,600,0006
                    IS-PS-CA,600,0006
                    IS-UT,600,0006
                    LSOFE,600,0006
                    PI_BASIS,2006_1_700,0015
                    SAP_ABA,700,0025
                    SAP_AP,700,0025
                    SAP_APPL,600,0020
                    SAP_BASIS,700,0025
                    SAP_BW,700,0027
                    SAP_HR,600,0007
                    SEM-BW,600,0006
                    ST-PI,2005_1_700,0002
                    EA-APPL,600,0006
                    EA-DFPS,600,0006
                    EA-FINSERV,600,0006
                    EA-GLTRADE,600,0006
                    EA-HR,600,0007
                    EA-IPPE,400,0006
    Regards,

  • HT4865 not sure if you can help my daughter forgot her password for her iphone 4 how can I retrieve it.

    how can i retrieve password for iphone 4s

    If you mean the passcode, there's no way to retrieve it.  If she enters it incorrectly too many times, the phone will become disabled and she will have to restore it to remove the passcode.  If this happens, have her follow one of the solutions listed at the bottom of this article: http://support.apple.com/kb/HT1212.  The preferable solution is to back it up and restore it in iTunes on the last computer it was synced with (see "If you have previously synced your device with iTunes").

Maybe you are looking for

  • Applet-Servlet , AttributeValues does not work in browser

    I am using Applet on Server, when I 'Run on server' it runs in a browser but statements and code after this statement don't work. AttributeValues values = new AttributeValues(); I get error access denied (java.lang.RuntimePermission accessClassInPack

  • I can no longer receive text messages on my iphone 4 after ios 5.

    i upgraded to ios 5 and since then i cannot receive text messages. i can send sms messages but i am not receiving them. all my phone is saying my inbox is full. any help would be great. thanks

  • HT4623 how do I get my contacts back after upgrading to ios 6 !?!

    Got a prompt on iPhone to upgrade to ios 6 this morning. I did so and now all contacts are gone. Now what? The contacts are priceless and I "have aged" this day. Can anyone help. A tech support person tried to help but got a couple of error messages

  • Include driver in jar file

    Hi, i need include de jdbc driver for postgres en my jar application file... i use netbeans 4 but i dont know make this... Help meeeeeeeeeeeeeee

  • Capturing VGA to DV

    This may be considered off topic, but here goes anyway. I do a bunch of lecture videos. These frequently include software demos. I'm looking for a solution to capture video out from a VGA port directy to DV. I've tried one of those $100 boxes - total