API_METHOD
Hi
I need to know an API which will return me all the names of BAPIS as well as ZBAPI's. Currently I am using the method <b>SWO_QUERY_API_METHODS</b> to get me the list of BAPI's. But this does NOT seem to give the ZBAPI's in the list. Is there another BAPI I should be using to get this information
Thanks in advance
Bikash Choudhury
Welcome to SDN.
Are these Zbapis implemented using BAPI project and used with business objects? if yes the FM mentioned by you will return it. we have been using it.
Regards
Raja
Similar Messages
-
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,
JanHi 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."); -
Hi All,
Is there any way to list out all the activated BAPI's in a system thro' a funtion module or report?
Rgds,
J.JayanthiHi,
Here you are -
DATA : LANGUAGE TYPE SYLANGU VALUE 'EN',
API_METHODS TYPE SWOTMETHOD OCCURS 0.
CALL FUNCTION 'SWO_QUERY_API_METHODS'
EXPORTING
LANGUAGE = LANGUAGE
TABLES
API_METHODS = API_METHODS
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
METHOD_NOT_FOUND = 2
METHOD_NOT_API = 3
METHOD_NOT_RELEASED = 4
PARAMETER_ERROR = 5
OTHERS = 6.
The tabls parameter will give you the information you need. First test it in SE37 and see if you are going to get what you want.
And reward points to the answers and close the thread.
Regards,
Anand Mandalika.
Maybe you are looking for
-
Account determination error (ECC 6.0).
Hi Everyone, I seek an urgent solution for the following issue. We are trying to do a service entry for an account assigned service PO but are getting the following error message :- Account determination for entry XXXX(chart of accounts) KBS(acct. a
-
Undo the "Erase iPhone" action in Find My iPhone
My iPhone was stolen. Without even thinking about it I went to my computer, logged in to icloud.com and clicked to erase my iPhone in Find My iPhone. The service couldn't locate it because it was offline and it still is. But then I read that once my
-
Drop undo tablespace but space not release (du and df show different value)
hi guys, i just change my undo and drop the previous 1. create undo tablespace UNDOTBS4 DATAFILE '/u03/oradata/starhub/undotbs4.dbf' size 2g; Tablespace created. SQL> ALTER SYSTEM SET UNDO_TABLESPACE = undotbs4; System altered. SQL> drop tablespace
-
GNUBox for nokia N73 S60 v3 now available
Good evening,,,,, GNUBox for Nokia N73 S60 v3 is now on available...you can connect your N73 to the internet using the bluetooth form ur pc. Message Edited by nessalpha on 07-Sep-2008 01:37 PM Solved! Go to Solution.
-
How to delete Portal Favorites and Services
Hi Friends, I am getting one issue in portal page. In left side i am getting Services and Portal Favorites. I dont want to display these two options in Portal page itself. PLease tell how to delete these two options in Portal page. Thanks in advance.