Application Development and Automation 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: 
Read only

How to get output data in tables from a function module

Former Member
0 Likes
2,610

Hi I am developing a function module which needs to output some data in tables.

However ,the structure which needs to be output is not a stanadard structure , so i cannot define it into the tables tab using LIKE or TYPE.

How to get the output this structure in tables?

Hi I am developing a function module which needs to output some data in tables.

However ,the structure which needs to be output is not a stanadard structure , so i cannot define it into the tables tab using LIKE or TYPE.

How to get the output this structure in tables?

6 REPLIES 6
Read only

peter_ruiz2
Active Contributor
0 Likes
1,419

Hi Harshit,

A work-around for that is to create a custom structure in SE11 and use it as reference for your function module.

regards,

Peter

Read only

Former Member
0 Likes
1,419

Hi,

Create a structure in se11.

Define a tables parameter in FM with type reference to the structure you created.

Pass the output values to your tables paramater.

Read only

Former Member
0 Likes
1,419

Hi Harshit,

Whatever structure you want in your Function Module, Just create it in SE11.

After that you can use it in your FM.

Regards,

Nitin.

Read only

Former Member
0 Likes
1,419

hi

one way to do it is that you can write a program to Upload the file to an Internal table and then Insert it to the Z table.then Use FM GUI_UPLOAD to upload the data.

also you can do is you can pass Z tables also to FM RFC_READ_TABLE

hope this this helps

regards

Aakash Banga

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,419

Hello Harshit,

You can create a TABLE TYPE for that structure using SE11 & use it in the FM. As to how to create a Table Type, search in SDN )

BR,

Suhas

Edited by: Suhas Saha on Jan 13, 2009 6:31 AM

Read only

Former Member
0 Likes
1,419

Hi Harshit,

First create a type group eg . ZTG1.

then in that type group create a structure and table.

for eg.

types: begin of ztg1_s_struct,

matnr type matnr.

"include all the fields in the structure

end of ztg1_s_struct,

ztg1_t_tab type table of ztg1_s_struct.

and in the export tab of the function module declare

eg.

tab type ztg1_t_tab.

and then in the top -include of the function group

declare this type group.

regards,

Santosh Thorat