‎2008 Jan 31 11:17 AM
Hi All
I am working on 4.6c , I am developing a salesinvoice using smartforms. I want a define a internal table and its workarea, How can I define a internal table in Global definitions.
regards
AJ
‎2008 Jan 31 12:07 PM
Hi AJ,
In Se11 Create a "Table type" for ur structure and then use 'TYPE' statement with table type. this way will create an internal table.
For creating work area, use "TYPE" with ur structure.
Regards
Gaurav
‎2008 Jan 31 11:22 AM
Hi,
Declare a type definition of structure in the TYPES tab with the
fields from different structures.
Declare a table of that declared structure..
TYPES : BEGIN OF type_table,
matnr TYPE mara-matnr,
werks TYPE marc-werks,
lgort TYPE mard-lgort,
END OF type_table.
TYPES : t_table TYPE STANDARD TABLE OF type_table.
In the Global data Tab, declare the table of the above declared table...
I_TABLE TYPE T_TABLE .
Regards,
Satish
‎2008 Jan 31 11:26 AM
Hi Satish
When I click on the Types tab, I cant write any thing there, what I need to do to write my code there.
Actually there are three buttons, 1. check, 2. Statement Structure, 3. Pretty Printer.
When I click on the statement structure.....it opens a window.with call function and other moules..
pls guide
regards
AJ
‎2008 Jan 31 11:22 AM
first u need to create a structure in se11
and then in smartforms> global definitions>global data (tab)
tablename type structurename
Madhavi
‎2008 Jan 31 12:03 PM
Hi Madhavi
I have define a structure, but I want to define a internal table in the global data....but there is no type assignment for 'type table of', how can I define an internal table.
please guide
regards
AJ
‎2008 Jan 31 12:07 PM
Hi AJ,
In Se11 Create a "Table type" for ur structure and then use 'TYPE' statement with table type. this way will create an internal table.
For creating work area, use "TYPE" with ur structure.
Regards
Gaurav