on 08-25-2005 10:22 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Probably you have use java.util.tree for the same kind of output which BAPI gives you.
Rdgs,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.