2009 Jan 13 5:22 AM
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?
2009 Jan 13 5:27 AM
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
2009 Jan 13 5:27 AM
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.
2009 Jan 13 5:28 AM
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.
2009 Jan 13 5:30 AM
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
2009 Jan 13 5:31 AM
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
2009 Jan 13 5:32 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |