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

work area

Former Member
0 Likes
855

Hi,

i have one std table kna1.

Now i wanted to create internal table & work area for this.

Anybody will tell me how to do this??

data: itab_kna1 type standard table of kna1,

wa_kna1 type kna1.

Is it right??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
827

Hi,

This is an simple logic.

declare like this

Data: i_tab type standard table of kna1.

<u>workarea</u>

data: wa_tab like i_tab.

if it is useful dont forget to give an point

9 REPLIES 9
Read only

Former Member
0 Likes
827

u can say

data:itab like kna1.

Regards

Read only

0 Likes
827

I THINK IT IS OK...

OR..

data: itab_kna1 type standard table of kna1,

wa_kna1 LIKE LINE OF itab_kna1.

Read only

0 Likes
827

Hi Kishan,

Kna1 is std table so i think that we can't use type statement as mentioned. I have one more problem

If u will solve i will be much thankful to u

the prob is

Update Document Currencyfield WAERKS_DOC with the PO Document Currency (EKKO-WAERS)

will u tell me how to do this??

Read only

Former Member
0 Likes
827

Yes it is very correct.

For some local TYPES also you can follow this

TYPES: begin of t_table,

..............,

..............,

end of t_table.

DATA: i_table type standard table of t_table,

w_table type t_table.

Regards

Kathirvel

Read only

baskaran00
Active Participant
0 Likes
827

Hi,

U can declare as follows:

DATA : ITAB LIKE TABLE OF kna1,

WA_ITAB LIKE LINE OF ITAB.

Read only

Former Member
0 Likes
828

Hi,

This is an simple logic.

declare like this

Data: i_tab type standard table of kna1.

<u>workarea</u>

data: wa_tab like i_tab.

if it is useful dont forget to give an point

Read only

Former Member
0 Likes
827

Hello,

It is right. ´But I would suggest always declare internal table using work area. Like,

data: wa_kna1 type kna1,

itab_kna1 like standard table of wa_kna1.

Regs,

Venkat Ramanan N

Read only

anversha_s
Active Contributor
0 Likes
827

hi salil,

try this.

<b>TABLES : data_base_table.

data : itab like data_base_table occurs 0 with header line.</b>

this will get an internal table and work area.

regards,

anver

pls mark hlpful answers

Read only

abdul_hakim
Active Contributor
0 Likes
827

hi

use the below syntax..

<b>data: itab like table of kna1,

wa like line of itab.</b>

Cheers,

Abdul Hakim