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
1,289

Hello

while trying to resolve my removal of sub contract cell ,the piece of code given below:-

data: begin of t_ekko occurs 0 ,

ekorg like ekko-ekorg, "Purchasing organization

ekgrp like ekko-ekgrp, "Purchasing group

bedat like ekko-bedat, "Purchasing document date

lifnr like ekko-lifnr, "Vendor

date like ekko-bedat, "PO date.

eknam like t024-eknam, "Description of pur. group

end of t_ekko.

select * from ekko

into t_ekko

where EKGRP<>'SUB'.

I am getting an error:-

The work area ''T_EKKO" is not large enough.Need help as to how about go about it .

Regards

Somnath

13 REPLIES 13
Read only

Former Member
0 Likes
1,254

use INTO TABLE

select * from ekko

into<b> TABLE</b> t_ekko

where EKGRP<>'SUB'.

Read only

0 Likes
1,254

even then the same message is thrown

Read only

andreas_mann3
Active Contributor
0 Likes
1,254

hi,

use t_ekko type ekko

or

select... into coressponding fileds of t_ekko

A.

Read only

Former Member
0 Likes
1,254

hi somnath,

in u r select query

write select * from ekko into corresponding fields of table t_eeko where.....

Read only

Former Member
0 Likes
1,254

Change your select according to this code:

select ekko~ekorg

ekko~ekgrp

ekko~bedat

ekko~lifnr

ekko~bedat

t024~eknam

from ekko

inner join t024 on ekkoekgrp = t024ekgrp

into table t_ekko

where EKKO~EKGRP<>'SUB'.

Regards,

Ravi

Read only

Former Member
0 Likes
1,254

Hi,

Use the statement like

select * from ekko

into <b>table</b> t_ekko

where EKGRP<>'SUB'.

Regards,

Ram

Pls reward all the helpful answers

Read only

0 Likes
1,254

No ram it didnot work.

Read only

Former Member
0 Likes
1,254

Hi,

Modify your query as follw,

select * from ekko into TABLE t_ekko where EKGRP<>'SUB'.

Read only

Former Member
0 Likes
1,254

Hi,

Modify your query as follw,

select * from ekko into TABLE t_ekko where EKGRP<>'SUB'.

Read only

Former Member
0 Likes
1,254

Hi,

data: begin of t_ekko occurs 0 ,
ekorg like ekko-ekorg, "Purchasing organization
ekgrp like ekko-ekgrp, "Purchasing group
bedat like ekko-bedat, "Purchasing document date
lifnr like ekko-lifnr, "Vendor
date like ekko-bedat, "PO date.
eknam like t024-eknam, "Description of pur. group
end of t_ekko.

select ekorg
       ekgrp
       bedat
       lifnr
       date
      eknam
      from ekko
into TABLE t_ekko
where EKGRP<>'SUB'.

TBALE is missing.

Also dont use * instead select the fields as above.

Use NE 'SUB' instead of <>. Also specify key field EBELN in the where condtion.

Please reward points and close the theread if ur problem got solved.

Message was edited by:

Judith Jessie Selvi

Read only

Former Member
0 Likes
1,254

Hi,

As you are trying to select all the fields(select *) into t_ekko,you are getting that error.Please check this select statement.

DATA: BEGIN OF t_ekko OCCURS 0 ,

ekorg LIKE ekko-ekorg, "Purchasing organization

ekgrp LIKE ekko-ekgrp, "Purchasing group

bedat LIKE ekko-bedat, "Purchasing document date

lifnr LIKE ekko-lifnr, "Vendor

END OF t_ekko.

SELECT SINGLE ekorg ekgrp bedat lifnr FROM ekko

INTO (t_ekko-ekorg,t_ekko-ekgrp,t_ekko-bedat,t_ekko-lifnr)

WHERE ekgrp <> 'SUB'.

You can try with a similar select statement with all the required fields.

reagrds,

Priya.

Read only

Former Member
0 Likes
1,254

hi try this code.

types:begin of gs_ekko,

ekorg type ekko-ekorg, "Purchasing organization

ekgrp type ekko-ekgrp, "Purchasing group

bedat type ekko-bedat, "Purchasing document date

lifnr type ekko-lifnr, "Vendor

date type ekko-bedat, "PO date.

eknam type t024-eknam, "Description of pur. group

end of gs_ekko.

data: t_ekko type table of gs_ekko.

select * from ekko into corresponding fields of table t_ekko where.......

Read only

Former Member
0 Likes
1,254

Hi Somnath,

If t_ekko is a work area , then u should use

select single * into corresponding fields

if t_ekko is an internal table u should use

select * from ekko into corresponding fields of table

Perfomance wise it is better to specify the field names in the select query and avoid into corresponding fields statement