Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing type pool data type to RFC function module

Former Member
0 Kudos

Hi,

I have obtained the information regarding the user selected fields in an ALV in a variable of type SLIS_SELFIELD (declared in type pool SLIS). Now I need to pass on this information to an RFC enabled funtion module.

I have declared an import parameter of type SLIS_SELFIELD in the function module. However I get an error message 'Type SLIS_SELFIELD is neither known nor allowed'. However, using this type is allowed for a normal function module.

I want to know if there is any way of passing this field to the RFC enabled function module, or any other data dictionary type which I can use.

Any pointers would be helpful.

Regards,

Saurabh

4 REPLIES 4

Former Member
0 Kudos

Hi Saurabh,

I guess the most easiest way is to declare a Data Dictionary structure yourself based on the definition in type-pool SLIS and use this structure as reference.

Regards,

John.

athavanraja
Active Contributor
0 Kudos

just declare the type pool (SLIS) in the top include (global data) of the function group. then you will be able to use it in all the FMs within the function group

And i dont think its RFC related issue.

Regards

Raja

0 Kudos

Hi Raja,

I have already done that. But even then it gives the same error.

However, if I mark my FM as a normal (non RFC) function module it does not give the error and works fine.

Regards,

Saurabh

0 Kudos

Hi Saurabh,

Sorry, i should have looked into the type pool for definition. in RFC functions you cannot use local structure. (SLIS_SELFIELD is a local structure). to be able to use it with RFC enabled FMs , it has to be a physical structure created in SE11.

Regards

Raja