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 into another select statement

Former Member
0 Likes
648

Hi all.

Can i write a statement like this

select matnr                                                              "the number of the material

           (select maktx from makt where mantr eq mantr) "the name of the material

from mara

It is a example, but explain what i am looking for; write a select into another select statement

It is posible?

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
557

Hi Luiz,

Yes you can write such a statement(select inside another select statement).

Refer:http://help.sap.com/saphelp_nw04/helpdata/en/dc/dc7614099b11d295320000e8353423/content.htm

However, this is not recomended.

Refer:http://wiki.scn.sap.com/wiki/display/Community/ABAP+Performance+tips

Thanks
Sabal

Read only

Former Member
0 Likes
557

Hi,

Better use a join between those two tables.

Regards

Miguel

Read only

Former Member
0 Likes
557

Hi all

Thansk a lot for the help.

Following your opinion I could correct my mistake