Application Development 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: 

Regarding RFC Destination in BAPI Function Modules

Former Member
0 Kudos

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

Former Member
0 Kudos

You need to call your FM as:

CALL FUNCTION 'BAPI_...'

DESTINATION <system name>.

IMPORTING...

EXPORTING..

Sudha

9 REPLIES 9

Former Member
0 Kudos

You need to call your FM as:

CALL FUNCTION 'BAPI_...'

DESTINATION <system name>.

IMPORTING...

EXPORTING..

Sudha

hymavathi_oruganti
Active Contributor
0 Kudos

WE HAVE TO SET RFC DESTINATION IN SM59.

CALL BAPI DESTINATION <DEST>.

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

Hi All,

Thanks for those replies.

I am closing the post by assigning points.

Thanks,

Rayeez.

former_member188685
Active Contributor
0 Kudos

Hi,

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' DESTINATION DES.

destination are maintained using SM59.

Regards

vijay

0 Kudos

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.

0 Kudos

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

Sudha