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

select record

Former Member
0 Likes
539

Hi,

Now I have to select estat from TJ30T where estat starts with 'E'. Is it possible?

what is the efficient way?

Regards,

Subbu

1 ACCEPTED SOLUTION
Read only

abdulazeez12
Active Contributor
0 Likes
513

Select ESTAT from TJ30T into table itab where ESTAT like 'E%'.

4 REPLIES 4
Read only

gopi_narendra
Active Contributor
0 Likes
513
DATA : it_tj30t TYPE TABLE OF tj30t INITIAL SIZE 0.
SELECT * FROM tj30t
            INTO TABLE it_tj30t
            WHERE estat LIKE 'E%'.

Regards

Gopi

Read only

abdulazeez12
Active Contributor
0 Likes
514

Select ESTAT from TJ30T into table itab where ESTAT like 'E%'.

Read only

varma_narayana
Active Contributor
0 Likes
513

Hi..

Perform a wild card search using LIKE Operator

<b>select estat from TJ30T where estat LIKE 'E%'.</b>

<b>reward if helpful.</b>

Read only

Former Member
0 Likes
513

Hi Subba Reddy,

Please try this and tell me the result.

Modify the code according to your requirement...

TABLES : tj30t.

DATA : itab TYPE TABLE OF tj30t,

wa LIKE LINE OF itab.

SELECT * FROM tj30t INTO CORRESPONDING FIELDS OF TABLE itab WHERE estat LIKE 'E%'.

SORT itab BY estat.

LOOP AT itab INTO wa.

WRITE : / wa-estat.

ENDLOOP.

Regards,

Sai