cancel
Showing results for 
Search instead for 
Did you mean: 

Recreating the BAPI Explorer in Java

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

guru_subramanianb
Active Contributor
0 Kudos

Hi,

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

Rdgs,

Guru