Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data declaration

Former Member
0 Likes
674

Hi all,

Do we declare the structure & the workarea as

data: ws_output or wa_output.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
642

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®

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
643

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®

Read only

0 Likes
642

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

Read only

Former Member
0 Likes
642

thank you

Read only

praveen_hannu
Contributor
0 Likes
642

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