cancel
Showing results for 
Search instead for 
Did you mean: 

Flow Logic : Call of a RFC Function Module passing back a table

Former Member
0 Kudos

Hi forum,

I cerated a service w/ templates including some flow logic files accoringly.

All what I want to achieve for the beginning to call an RFC FM that returns back a table that can be e.g. being shown on the html page (template).

I managed to pass simple fields back and forth. But as soon as I try to pass back a table. It doesn't work regardless, if the table ist definded untder TABELS or passed out under EXPORT parameter.

I always find the ITS Context the following:

borerrormsg = Failed to retreive RFC method `Z_R1W_RS_ITS_TEST_TAB'. Check if method exists or program exception occured

But I reduced the RFC function (which it is not a method), so that there are no exceptions anymore.

Please help - I am missing somehting aubstantial but what !??

Cheers,

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I had done the same scenario using flow logic.These are the steps i followed :

Say if we have a table named ZTEST in TABLES for your RFC and ZTEST has fields Name,Telephone etc

Then call the RFC from flow logic as follows :

<module name="ZTEST" type="RFC">

Give input mapping if required

</module>

To retreive the values in HTML use the following code in HTML Template :

`repeat with i from 1 to ZTEST-NAME.dim`

Then use `ZTEST-NAME(i)` to get the name at ith row.

Hope this helps. Do get back for further classification.

Regards,

Vijith

Former Member
0 Kudos

> Hi,

>

> I had done the same scenario using flow logic.These

> are the steps i followed :

>

> Say if we have a table named ZTEST in TABLES for your

> RFC and ZTEST has fields Name,Telephone etc

>

> Then call the RFC from flow logic as follows :

>

> <module name="ZTEST" type="RFC">

> Give input mapping if required

> </module>

>

> To retreive the values in HTML use the following code

> in HTML Template :

>

> `repeat with i from 1 to ZTEST-NAME.dim`

>

> Then use `ZTEST-NAME(i)` to get the name at ith row.

>

> Hope this helps. Do get back for further

> classification.

>

> Regards,

> Vijith

Hi Vijth,

thanks for your reply! But this is exactly what I tried but I still encounter the problem. As soon I remove the table from the equation (RFC Module), it works like a champ!

But with the table I get the error as described above!

Any settings are missing !? What could be the problem here !?

Cheers,

Christian

Answers (0)