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

difference between changing and tables parameter in a function module...

Former Member
0 Likes
2,358

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

5 REPLIES 5
Read only

Former Member
Read only

0 Likes
1,235

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

Read only

0 Likes
1,235

Had to define a separate internal table to receive the values. no other way was found. thanks

Read only

Former Member
0 Likes
1,235

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

Read only

0 Likes
1,235

Hi Ashok,

This is very old thread ,so no need to reply.

Thanks

Gourav.