2006 Nov 06 3:56 PM
Hi All,
I have a program that returns data in an internal table. While converting the program J_into a custom FM, <b>is it a must that the exporting table (with data) be declared with reference to a dictionary table/structure?</b>
Hi All,
I have a program that returns data in an internal table. While converting the program J_into a custom FM, <b>is it a must that the exporting table (with data) be declared with reference to a dictionary table/structure?</b>
2006 Nov 06 3:58 PM
2006 Nov 06 4:01 PM
I was hoping you should answer this query Rich
You mean the table being exported from the FM has to have a dictionary reference right?
2006 Nov 06 4:02 PM
I mean the exporting table (say E_MARA) should be referred to a dictionary type (E_MARA TYPE MARA)?
Can't a normal itab declaration in the FM do?
2006 Nov 06 4:03 PM
2006 Nov 06 4:07 PM
2006 Nov 06 4:09 PM
2006 Nov 06 4:16 PM
You can export data in a table parameter with generic Type reference TABLE (any data).
2006 Nov 06 4:18 PM
2006 Nov 06 4:23 PM
I just created, checked & activated a Ztable in the DDIC but it is not being recognized by the FM. Says it doesn't exist. What could be the prob?
2006 Nov 06 4:25 PM
2006 Nov 06 4:26 PM
Hi
It depend on where you're using that ZTABLE and what's the ZTABLE:
- As reference for an export/import parameter?
- As reference for a TABLE parameter?
Rich
Riccardo is right, I don't know which release you're using (my rel. is 4.6C), but It's possible to use the generic type TABLE to define an import or export parameter as table.
Max
2006 Nov 06 4:30 PM
2006 Nov 06 4:30 PM
Hi Max,
I have an internal table being populated exported from the FM. So my question was whether reference for an export/import parameter should be to the DDIC.
BTW I am on ECC 5.0
Message was edited by: Karthik
2006 Nov 06 4:38 PM
Hi
No you don't need to do that, but it would be better to do because it wouldn't be easy to manage a table without reference, you should use the field-symbols.
So I believe it's better to define a dictionary structure like your internal table and define a TABLE paramenter like that structure.
Max
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |