on 04-26-2006 12:53 AM
Is it possible to "programmatically" achieve the following using XI 3.0? How?
1) Introspect the list of BAPIs in R/3 and BW. I am interested in only those BAPIs that return data from SAP. I do not want to update data in R/3 or BW.
2) Introspect the methods exposed by any BAPI
3) Get the request and response schema for any BAPI
4) Execute a BAPI with and get the response
Any pointers to documents would be helpful.
Thanks.
Hi,
Not sure what the intent here is, but there is no generic way of finding whether a BAPI is going to update / get the details. However, if you are looking at a specific BAPI, you can clearly identify whether the BAPI is going to create / update something or fetch the details, just by looking at the name of the BAPI.
Regards,
Ravi
Note :Please mark all the helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can do that by accessing the sytem tables where the details of the functions are stored. However, I am still confused how you are going make use of it from XI.
You will have write custom code to do the same on the application system and call that from the XI box.
Regards,
Ravi
Note : Please mark all the helpful answers
Hi,
Usually the way you execute or call a BAPI is using the RFC Adapter. So, you will have to configure a RFC Adatper and execute your integration scenario. Take a look at the information here ...
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
http://help.sap.com/saphelp_nw04/helpdata/en/33/c6e63b60c25767e10000000a11402f/content.htm
I am still missing big picture, what are you trying to do?
Regards,
Ravi
Hi Daisychain
One possible solution can be:
Programmatically you can make use of JCO to get the metadata of a BAPI. All you need to know is the BAPI name in advance (Since BAPI is a standard FM with RFC protocol so knowing its name in advance won't be a problem) and do the following...
1) IFunctionTemplate ftemplate = repository.getFunctionTemplate(YOUR BAPI NAME)
2) To get import,export & etc parameter list
JCO.ParameterList implist = function.getImportParameterList();
JCO.ParameterList explist = function.getExportParameterList();
JCO.ParameterList tablist = function.getTableParameterList();
By doing so you will be able to get the metadata for a particular BAPI/RFC. Please refer to JavaDocks of JCO for more details (Sorry I don't remember the link to java dock right now).
Using JCO you can even execute the BAPI and get response.
Regards
Vijendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.