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

RFC-Function Module

Former Member
0 Likes
922

HI

I need to retreive BILL TO ADDRESS details like name,house no,street etc using FUNCTION MODULE - Z_GET_N_APPROVER. But this FM is a RFC.

Can u help to find out how to retreive the bill to address details from this RFC

Thanks in advance.

Points will be awarded

8 REPLIES 8
Read only

Former Member
0 Likes
897

You can run RFC Function module locally also. I that case give RFC destination as 'NONE'. This will behave as a normal function module.

Read only

Former Member
0 Likes
897

I am assuming that you are retriving data from the same system and so use NONE in the destination. If u are trying to extract it from some other system u will have to give the destination name in the fiels DESTINATION.

Read only

0 Likes
897

No, I need to retreive BILL TO ADDRESS.

THE DESCRIPTION AS FOLLOWS

Get USER ID EKPO-ERNAM and then search a "bill To " belongs to this user ID in SRM Org structure. Utilise Function Module Z_GET_N_APPROVER to retreive it.

Kindly Clarify

Read only

0 Likes
897

Get the ADRNR (Address Number ) from Kna1 table for the bill to retrieved from the Function module. Then pass this Address number to the Function Module ADDR_GET to retrieve the Address details for the Bill to.

Hope this helps.

Read only

Former Member
0 Likes
897

Hi jayasree,

If u have to use this FM in a report then try doing like this------

Replicate the same functionallity to a normal FM and use it

Regards

Usha

Read only

Former Member
0 Likes
897

Hi Jaysree,

RFC is also a FM, it can be used any where in ABAP , so you can call that RFC in a normal way like how you call the FM.

regards

vijay

Read only

Former Member
0 Likes
897

Hi,

if give destination to RFC FMs then only it will work as RFC function module other else it will work as normal function module(Ex BAPIs All are RFC anbles but when you call this with out destination it will excute in the same system). but it's better partice to give destination to RFC function modules . if you want use for your same system give destination as NONE.

Read only

Former Member
0 Likes
897

Hi,

if give destination to RFC FMs then only it will work as RFC function module other else it will work as normal function module(Ex BAPIs All are RFC anbles but when you call this with out destination it will excute in the same system). but it's better partice to give destination to RFC function modules . if you want use for your same system give destination as NONE.