How call a BAPI

Question: I developpe a B2B application on BW ... I need to call a remote Bapi in an other system (a r/3). I would like to do it in BPS application.
On event OnInitialisation I set my BAPI - It's work to call a local Bapi, but how to call a remote BAPI ? Wher can I find some documentations on exemple ? I search on OSS note, but ... unsuccess

(I beginner on this BSP : I was JAva and .NEt dev)

Best Regards
J

Answer:
CALL FUNCTION func DESTINATION dest.

Extras:
1. The same as with CALL FUNCTION func

2. ... EXCEPTIONS syst_except = rc MESSAGE mess

Effect
Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.

To maintain existing destinations, choose Tools → Administration, Administration → Network → RFC destinations.

Answer:
Hi wiraone ! Great

With BAPI Browser included in SE80 I success to call a remote BAPI (after create a RFC) ...

But the "funny" event, is that I cant create a type of table from type of my remote BAPI ....

If I call a BAPI on my system where WAS runs, I create a Type from the type BAPITABLE
I create my table from the new type
And all work !!!!

But with a remote BAPI the system says that it impossible to create a new data type from BAPITABLE type ...

Answer:
To tell you the truth, my BAPI experience is very limited too. I've created a FM which can be called from external system, but I haven't try to call an external BAPI FM from my own ABAP. may be somebody here can give a workaround.
Copyright ?2007 - 2008 www.jt77.com