‎2008 Oct 21 10:35 AM
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
‎2008 Oct 21 10:39 AM
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
‎2008 Oct 21 10:39 AM
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
‎2008 Oct 21 10:48 AM
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"
‎2008 Oct 21 10:58 AM
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