cancel
Showing results for 
Search instead for 
Did you mean: 

Asynch RFC Sender to File Receiver Szenario (table content)

TobiasFehringer
Explorer
0 Kudos

Hi,

I have the following szenario: RFC(R/3) => XI => File

At the moment I implemented the following:

1. Z-Report in R/3 calls a function module:

CALL FUNCTION 'Z_RFC_TO_XML'

IN BACKGROUND TASK

DESTINATION xi_dest

EXPORTING

it_table = it_table.

COMMIT WORK.

2. The RFC Sender Adapter on XI takes the RFC data and convert it to RFC-XML

3. There is a message mapping from RFC-XML to XML-Structure

4. The File Receiver Adapter write the XML document to the file system

The scenario is working without error and the file is created. But on R/3 side the it_table is filled with 20 rows before the function module Z_RFC_TO_XML is called. But on xi side I only receive one row (the header line).

Is it possible to transmit the whole table content to xi and not only one row? And if yes, how can I do this?

Thanks,

manuku

Accepted Solutions (1)

Accepted Solutions (1)

turmoll
Active Contributor
0 Kudos

> CALL FUNCTION 'Z_RFC_TO_XML'

> IN BACKGROUND TASK

> DESTINATION xi_dest

> EXPORTING

> it_table = it_table.

> COMMIT WORK.

> Is it possible to transmit the whole table content to xi and not only one row? And if yes, how can I do this?

Absolutely, it is possible

First try to pass the body of the table to FM like:

it_table = it_table[].

and make sure that type of import parameter it_table is table type.

Regards,

Jakub

TobiasFehringer
Explorer
0 Kudos

Thanks Jakub.

Due to your help it works now )

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tobias,

Currently am doing this scenarioa RFC to file

CALL FUNCTION 'Z_RFC_TO_XML'

>         IN BACKGROUND TASK

>         DESTINATION xi_dest

>         EXPORTING

            p_werks = 'Plant no'

           TABLES

>           it_table = it_table.

>       COMMIT WORK.

But here am using Exporting and Tables parameter.. When i debug this FM, the debugger is not going to the FM.

Can you help me in solving this issue....

Thanks and Regards,

Vijay vikram