Skip to Content
author's profile photo Former Member
Former Member

Recreating the BAPI Explorer in Java

Hi

I'm using JCo to try to recreate something like the BAPI Explorer in a java program.

I can do something like the alphabetical view by using SWO_QUERY_API_OBJTYPES to get all objects, and then calling SWO_QUERY_API_METHODS to get the BAPIs on those objects.

Has anyone any idea what methods I would use to create the hierarchical view?

TIA

Ian

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 25, 2005 at 03:54 PM

    Hi,

    Probably you have use java.util.tree for the same kind of output which BAPI gives you.

    Rdgs,

    Guru

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 05:25 PM

    Hi Ian,

    Yes your approach is correct. Use <b>TOJTB</b> which will give you the list of objects available. Then the FM's use suggested will be good enough i suppose. Once you have the details you can build a tree using JSP or Swing.

    For swing refer this link,

    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

    For JSP/Javascript

    http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3913&lngWId=2

    http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4354&lngWId=2

    Hope that helps you.

    Thanks & Regards,

    Kathirvel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sorry, maybe my post wasn't clear enough.

      I wasn't after what java methods I would use, I'm trying to work out what SAP 'functions' I need to use to present all the BAPIs in a hierarchical fashion, in the same way that the BAPI explorer does.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.