‎2006 Sep 26 7:16 AM
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??
‎2006 Sep 26 7:30 AM
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
‎2006 Sep 26 7:19 AM
‎2006 Sep 26 7:20 AM
I THINK IT IS OK...
OR..
data: itab_kna1 type standard table of kna1,
wa_kna1 LIKE LINE OF itab_kna1.
‎2006 Sep 26 7:49 AM
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??
‎2006 Sep 26 7:20 AM
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
‎2006 Sep 26 7:22 AM
Hi,
U can declare as follows:
DATA : ITAB LIKE TABLE OF kna1,
WA_ITAB LIKE LINE OF ITAB.
‎2006 Sep 26 7:30 AM
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
‎2006 Sep 26 7:52 AM
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
‎2006 Sep 26 7:58 AM
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
‎2006 Sep 26 8:11 AM
hi
use the below syntax..
<b>data: itab like table of kna1,
wa like line of itab.</b>
Cheers,
Abdul Hakim