cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Lookup Issue

Former Member
0 Kudos

Hello all,

I am doing RFC lookup using JCO function call in UDF . My RFC is returning a table structure . Now I want to assign this returned table elements to the elements from target structure . Can anyone please help me out how this can be done .

Regards,

Keith

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you need to define a global variable (for your mapping)

of type table and fill it inside your UDF

then you need to create as many UDFs as the number of fields

that you return and return one per each

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Thanks Michal,

How can I create global variable of type table ? I have crteated a table in my UDF which I am filling with the table data coming from RFC . Can I access this table outside my UDF ?

Regards,

Keith

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>> I have crteated a table in my UDF which I am filling with the table data coming from RFC . Can I access this table outside my UDF ?

sure but create the table in as global variaable

and just fill it in your UDF

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

clearer now?

Regards,

michal