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 statement info needed

Former Member
0 Likes
471

Hello all,

My req. with select statement is as below.

Need to select all materials from MARA where the product hierarchy (PRDHA) contains u20180050000501u2019 as the first ten characters, and insert them into an internal table .

awaiting for earlier response.

Thanking you.

Bharat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
444

Hi,

Check this code..

data: t_mara type standard table of mara.

* Make sure to remove * and check whether there is an index on the field PRDHA.
SELECT * FROM MARA INTO TABLE t_mara
             where PRDHA LIKE '0050000501%'.

Thanks

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
444

select * from mara into table itab

where PRDHA like '0050000501%'.

Read only

Former Member
0 Likes
445

Hi,

Check this code..

data: t_mara type standard table of mara.

* Make sure to remove * and check whether there is an index on the field PRDHA.
SELECT * FROM MARA INTO TABLE t_mara
             where PRDHA LIKE '0050000501%'.

Thanks

Naren

Read only

Former Member
0 Likes
444

Thanks for your help...