2008 Dec 19 8:22 PM
Hi,
I am facing an issue...
An RFC enabled function module is used in SAP PI (earlier called as XI ). This FM has few tables defined under "Tables" parameter, say like aaa, bbb and ccc. The PI takes in aaa as inbound paramter, thru this it passes the values from the source system to target system. Happens well and good.
PI defines aaa, bbb and ccc as outbound paramters, means these will pass data from target to source system.Happens fine for bbb and ccc. But aaa is not passed back in source system.
My doubt is should this table aaa be defined under "changing" tab while creating the FM ??
I think tables are passed by reference, right ? So when they r passed back from PI to my source system, aaa should simply get overwritten with the value passed, right ?
You might ask if the mapping between PI and source system for outboubnd parameters is ok ? Yes it is fine. I checked. So what could be wrong ?
any help ?
thnks
2008 Dec 19 8:30 PM
2008 Dec 19 8:47 PM
Hi Amit,
In 4.6 as my source system, there are both tables and changing tabs in SE37. I defined aaa under tables tab. Hence in my case data must be passed from PI to this aaa, right , bcos according to the link u gave tables are passed by reference ? But I am not getting the values updated in 4.6 !! What can be the reason ??
thks
2009 Jan 07 4:16 PM
Had to define a separate internal table to receive the values. no other way was found. thanks
2014 Feb 17 4:29 AM
Changing parameters can be used as work areas as well as tables, tables can not be used as work areas.
Reference Difference between changing and table parameters in Function Modules SAP ABAP - Modularization techn... at SAPNuts.com
2014 Feb 17 4:39 AM
Hi Ashok,
This is very old thread ,so no need to reply.
Thanks
Gourav.