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

Defining Interface parameter in a function for a RFC call

Former Member
0 Likes
517

Hello all,

I need to pass a table to an RFC caller.

For this I have created a structure xxx on my data base. In the interface of my function under the tab "Tables" I have defined a parameter name yyy with the type spec. = "type" and associated type = zzz.

While activation I get the message "Flat types may only be referenced using LIKE for table parameters" so I need to enter "LIKE" instead of "TYPE" now my question is:

Is the caller able to get the table I am passing even though the table is defined with "LIKE" if not what I am suppose to do ?

Thanks for your help.

Kami

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

For RFC remember these points

u2022 Do not use u201Ctypeu201D for parameters. Use u201Clikeu201D

u2022 Import parameters must be passed in as u201Cvalueu201D

u2022 Must had u201CReturnu201D parameter

u2022 Must be u201CRFC enabledu201D

3 REPLIES 3
Read only

Former Member
0 Likes
460

For RFC remember these points

u2022 Do not use u201Ctypeu201D for parameters. Use u201Clikeu201D

u2022 Import parameters must be passed in as u201Cvalueu201D

u2022 Must had u201CReturnu201D parameter

u2022 Must be u201CRFC enabledu201D

Read only

0 Likes
459

Thanks for the replay.

Question:

1. That means in my case I would have no problems defining the table referring to a flat structure with LIKE ?

2. What do you mean with "Must have return parameter"

Read only

0 Likes
459

Yes there is no problem in defining table using like.

BAPI must have an export return parameter for returning messages to the calling application.

Source:

http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c2753c111d395fa00a0c94260a5/frameset.htm