2009 Jun 12 11:33 AM
In driver program:
TYPES: BEGIN OF ty_output,
var1 TYPE c,
var2 type c,
TYPES: END OF ty_output.
DATA: gt_output TYPE TABLE OF ty_output.
how to declare this in smartforms?
Thanks
In driver program:
TYPES: BEGIN OF ty_output,
var1 TYPE c,
var2 type c,
TYPES: END OF ty_output.
DATA: gt_output TYPE TABLE OF ty_output.
how to declare this in smartforms?
Thanks
2009 Jun 12 11:37 AM
Hi,
Declare the types in the TYPES tab in the smartform.
Create a table type of the same over there.
Declare the internal table of the above table type in the global data tab.
Regards,
Ankur Parab
2009 Jun 12 11:38 AM
Did you try Declare the same in the Smartforms Global Definitions->Types. !
TYPES: BEGIN OF ty_output,
var1 TYPE c,
var2 type c,
END OF ty_output.
DATA: gt_output TYPE TABLE OF ty_output.
2009 Jun 12 11:39 AM
Hello,
You can do this in program lines, if you need the structure of table this way and use it for further processing.
Thanks,
Sowmya
2009 Jun 12 11:43 AM
hi
in se11 Create A STRUCTURE for TY_OUTPUT
CLICK >GLOBAL DEFINITIONS->GLOBAL DATA
GT_OUTPUT type table of TY_OUTPUT
Or in Program line
Thanks
2009 Jun 12 11:44 AM
Hi,
You can do this in two ways....
1. If you need the interal table to be accessed globally in the smartform, you can declare the internal table in global definitions
first you need to define TYPES for the internal table in Types tab.
and this needs to be given as reference in Global Data tab for the internal table.
2. You need the internal table to be local ,then you can create a program lines node and declare the internal table as you do in the ABAP program
Hope this helps
Regards,
Sujatha
2009 Jun 12 11:46 AM
Hi,
You can do this in two ways....
1. If you need the interal table to be accessed globally in the smartform, you can declare the internal table in global definitions
first you need to define TYPES for the internal table in Types tab.
and this needs to be given as reference in Global Data tab for the internal table.
2. You need the internal table to be local ,then you can create a program lines node and declare the internal table as you do in the ABAP program
Hope this helps
Regards,
Sujatha
2009 Jun 12 11:52 AM
In global defenitions:
Under types tab:
TYPES: BEGIN OF ty_output,
var1 TYPE c,
var2 type c,
TYPES: END OF ty_output.
types: gt_output TYPE TABLE OF ty_output.
global data: gt_output type gt_output
under table node:
data tab:
loop : gt_output into gt_output
error:gt_output cannot be converted into line type gt_output?
2009 Jun 12 11:58 AM
You should define ONE variable for your internal table GT_OUTPUT (ok) and another variable with OTHER name for your workarea WA_OUTPUT type ty_output.
2009 Jun 17 4:14 PM
1.create a structure of type ty_output
2.create table type and use it in smartforms.
Edited by: BrightSide on Jun 17, 2009 4:15 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |