on 05-08-2009 1:14 PM
Hi,
Can anyone tell me how to declare an internal table for smartform?
Regards,
Sumedha
Hi
If you need it as global object, you need to declare a type table and then declare your internal table based on that type.
So in the TYPE section:
TYPES: BEGIN OF TY_LINE,
FIELD1 TYPE ......,
FIELD2 TYPE ......,
FIELD3 TYPE ......,
END OF TY_LINE.
TYPES: TY_TABLE TYPE TABLE OF TY_LINE.
And then in GLOBAL section u can define the internal table based on the tyoe TY_TABLE
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, you have quite a few areas when you can declare them.
If you want to declare them globally, just declare a custom type in the TYPES area and then declare the variable in the Global Data area (both being in the Global Definitions).
For local internal tables it's just the same as in a normal report.
Best regards,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.