Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI

Former Member
0 Likes
330

Hi,

I have created my own BAPI in my system which is having server name as XXX..Now i want to call this BAPI from another server YYY..

How to connect between the system and access..Plz tell me the steps.

2 REPLIES 2
Read only

Former Member
0 Likes
312

Hi

To connect those servers , u please ask ur basis help. then

u can use the following code.

data: variable type gsval.

case sy-sysid.

when 'where u want'(logical name of the system)

eg

when 'CCC'.

concatenate 'destname ' 'CLNT'' ' no into 'variable.

endcase.

'

'

Edited by: karthikeyan palaniayya on Feb 20, 2008 12:44 PM

Read only

Former Member
0 Likes
312

You can call from some other server by

CALL FUNCTION func DESTINATION dest parameter list.

Here destination will be your RFC destination.

Please check following links:

http://help.sap.com/saphelp_nw04/helpdata/en/b8/8e1b228add6c4d8509adff5eab2167/content.htm

http://en.wikipedia.org/wiki/Remote_function_call

Thanks,