‎2009 Mar 26 6:00 AM
hi all 'smart forms' gurus...
how to declare table fields in global defination wat is to rite under variable name and associated type..
‎2009 Mar 26 9:44 AM
variable typeaassinment associatedtype
LT_ITAB type table of bseg
‎2009 Mar 26 6:03 AM
Hi,
Create a type in global definitions in TYPES TAB and the declare the internal table and work area in GLOBAL DATA TAB
Also variable can be declared in GLOBAL DATA TAB.
In the variable name write the internal table name.
In Type assignment write TYPE.
In Associated type write STANDARD TABLE OF followed by type name created in TYPES
Regards,
Tarun
Edited by: Tarun Gambhir on Mar 26, 2009 11:33 AM
‎2009 Mar 26 6:08 AM
‎2009 Mar 26 6:10 AM
‎2009 Mar 26 6:10 AM
Hi,
Yes, variable name can be either an internal table name, work area name or variable name.
Regards,
Tarun
‎2009 Mar 26 6:17 AM
Hi,
In 'Global Data' tab, variable name is name of internal tables or work areas or global variables etc...
Ex:
In 'Types' tab declare all user defined structures, data types.
TYPES:
BEGIN OF r_itab,
vbeln TYPE vbrk-vbeln,
vkorg TYPE vbrk-vkorg,
vtweg TYPE vbrk-vtweg,
spart TYPE vbrk-spart,
fkdat TYPE vbrk-fkdat,
END OF r_itab.
In 'Global Data' tab, declare internal tables, work areas, global variables.
Varibale name Type assignment Associated type
ITAB TYPE TABLE OF R_ITAB <----- Internal table
WA TYPE R_ITAB <----- Work area
VAR TYPE I <----- Variable
‎2009 Mar 26 6:03 AM
1. The name of your internal table
2. The associated (table) type.
‎2009 Mar 26 6:05 AM
just give a Variable name and write TYPE under type assignment and give a data type (LAF1-NAME1, CHAR10) under associated type.
‎2009 Mar 26 6:05 AM
In data-dictionary you must create your datatype Table Types....example : EKKO_TTY
Under global data in smartforms you can define your internal table:
tmp_ekko type ekko_tty
‎2009 Mar 26 6:06 AM
Hi,
Global definition is useful to create the variables, workareas and internal tables which are using in entire smartforms. for user defined work areas create Types structrures in Types Tab . Those can be used to create Internal tables.
‎2009 Mar 26 6:08 AM
Hi:
Under global definition u can declare as
lt_itab type standard table of but000.
lt_itab type but000.
like this
[LInk|http://mustafayalcin.com/blog/?p=61]
Regards
Shashi
‎2009 Mar 26 9:44 AM
variable typeaassinment associatedtype
LT_ITAB type table of bseg
‎2009 Mar 27 5:10 AM
if u want to create a table of standard type with header line, eg. i_mkpf of type mkpf.
variable :- i_mkpf
Type :- type
Assos Type :- mkpf occurs 0.
And table withot a header line:-
variable :- i_mkpf
Type :- type table of
Assos Type :- mkpf .