I am a new comer to both SAP and JCo. I established connection to a SAP Server and I would like to print a list of BAPIs in my program . is there any way to do it?? I am using sapjco3.jar
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
As far as I know, there is no "BAPI to get a list of BAPIs", so this would be a non-trivial task. You could try to use
RFC_FUNCTION_SEARCH
to search for function modules namedBAPI*
, but that's not guaranteed to give you a) only official BAPIs and b) all of the official BAPIs...You can use the BAPI_MONITOR_GETLIST to get a list of all BAPIs in your system together with meta data.
You could make an ABAP function searching for all RFC functions in table TFDIR, with FMODE ='R' (remote). However, This will give you all remote-callable function, not only BAPIs.
You can also use the function module
SWO_QUERY_API_METHODS
. The following code snippet works with JCo 2: