cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass table in RFC and use that table to populate fields in Mapping?

Former Member
0 Kudos

Hi,

I have a requirement FIle to CSV, the file consists of thousand lines...

What I did first is to put RFC look up per line. It is taking too long to process the message.

One work around that I could think of is to pass all the values to a table then pass the table to RFC then RFC returns another table, so only one RFC call is required.

How am I going to use the table returned by the RFC? Please advise how to achieve this scenario.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I use an ABAP RFC function, which has a parameter that contains many rows.

In ABAP, I create a two types. First is a ROW - contains some fields, for example, param1, param2, etc.

Second is a TABLE - contains multiple count of ROW.

Then I create a Remotecallable Function that has this TABLE-type as parameter (you can make this parameter as INPUT and OUTPUT). So in my mapping program after import RFC Function, I see a message looks like this:

MY_TABLE_PARAM (Occurences: 1)

-


item (Occureces: 0..unbounded)

-


param1 (Occureces: 1)

-


param2 (Occureces: 1)

-


etc (Occureces: 1)

Regards.