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

Regarding RFC Destination in BAPI Function Modules

Former Member
0 Likes
3,180

Hi,

Can anybody tell me in which parameter we will give the RFC Destination [Logical Destination] in BAPI Function Modules.

Thanks & Regards,

Rayeez.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,967

You need to call your FM as:

CALL FUNCTION 'BAPI_...'

DESTINATION <system name>.

IMPORTING...

EXPORTING..

Sudha

9 REPLIES 9
Read only

Former Member
0 Likes
1,968

You need to call your FM as:

CALL FUNCTION 'BAPI_...'

DESTINATION <system name>.

IMPORTING...

EXPORTING..

Sudha

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,967

WE HAVE TO SET RFC DESTINATION IN SM59.

CALL BAPI DESTINATION <DEST>.

Read only

0 Likes
1,967

Hi,

If we take example BAPI as <b>'BAPI_SALESORDER_CHANGE'</b> after running that BAPI F.M in program exactly in which parameter we will get the <b>RFC Destination</b>.

I want that parameter name.

Thanks for those replies.

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,967

Hi,

While executing a BAPI, the destination is passed as part of the CALL FUNCTION statement, instead of passing as an Import parameter. Hence the BAPI does not store it anywhere as a parameter (unless you have an error in connecting to the system - in which case you might see an error message in the BAPI return table with the name of the logical system that it was unable to connect to).

Hope this helps.

Sudha

Read only

0 Likes
1,967

Hi,

here you will mention the destination name like this..

call fnction 'BAPI_SALESORDER_CHANGE' Destination <DEST>

this <DEST> value you will maintain using SM59, once you specify it it will check the availble destinations , and if it is there then it will proceed..

parameter type <b>RFCDEST</b>

Regards

vijay

Read only

0 Likes
1,967

Hi All,

Thanks for those replies.

I am closing the post by assigning points.

Thanks,

Rayeez.

Read only

Former Member
0 Likes
1,967

Hi,

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' DESTINATION DES.

destination are maintained using SM59.

Regards

vijay

Read only

0 Likes
1,967

Hi,

Without maintaining Logical Destination in SM59 also

can't we connect to RFC Destination through some parameter in BAPI Function Modules.

Thanks & Regards,

Rayeez.

Read only

0 Likes
1,967

No, you will need maintain a logical destination in SM59 for the BAPI to connect to a remote system.

Sudha