‎2006 Feb 07 12:55 PM
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
‎2006 Feb 07 12:59 PM
You can run RFC Function module locally also. I that case give RFC destination as 'NONE'. This will behave as a normal function module.
‎2006 Feb 07 1:01 PM
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.
‎2006 Feb 07 1:09 PM
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
‎2006 Feb 07 1:19 PM
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.
‎2006 Feb 07 1:06 PM
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
‎2006 Feb 07 1:07 PM
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
‎2006 Feb 07 1:22 PM
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.
‎2006 Feb 07 1:27 PM
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.