‎2010 Mar 16 8:42 AM
Hi all,
Do we declare the structure & the workarea as
data: ws_output or wa_output.
‎2010 Mar 16 8:45 AM
Declaration will get differ client to client. In some client they used work area declaration as
data: w_output.
and sttructure as
data : st_output.
a®
‎2010 Mar 16 8:45 AM
Declaration will get differ client to client. In some client they used work area declaration as
data: w_output.
and sttructure as
data : st_output.
a®
‎2010 Mar 16 8:52 AM
Hi,
Declaration of the variables and work area will vary for every customer. So check the coding standards of your organization.
Example as below.
Variables
Global variables
u2022 Types: GTY_XXXX
u2022 Data: GD_XXXX
u2022 Structure: GS_XXXX
u2022 Internal table: GT_XXXX
u2022 Constants: GC_XXXX
Local Variables
u2022 Types: LTY_XXXX
u2022 Data: LD_XXXX
u2022 Structure: LS_XXXX
u2022 Internal table: LT_XXX
u2022 Constants: LC_XXXX
Internal Tables
Declare Internal tables WITHOUT Header line. Use explicit work area.
Specify internal table type depending on requirement, e.g.: standard, sorted or hash.
Occurs addition is no longer allowed.
Ex.:
Data: GT_VBAP type sorted table of VBAP,
GS_VBAP type VBAP.
Regards,
Vijay V
‎2010 Mar 16 8:47 AM
‎2010 Mar 16 9:58 AM
Hi
Its up to your project naming convension standards.
Normally people will declare;
Global data which can access accross the program;
for internal tables : gt_tab or it_tab
for workareas: gw_tab or wa_tab
For Local data: which can access only in that perticula block
for internal tables : lt_tab
for workareas: lw_tab
Thanks
Praveen