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

Former Member
0 Likes
701

hai i need a select statement based on given conditions ,

selection-screen fields: marc-dispo like s_matctr

mara-mtart like s_matty

mara-matkl like s_matgrp

ekko-ekgrp like s_ekgrp

and my data in internal table should be only matnr in the table mara .

can u pls give code for this

6 REPLIES 6
Read only

Former Member
0 Likes
677

Hi ,

All these fields are there in the table MARA , so perform a select on the table MARA.

Regadrs

Arun

Read only

0 Likes
677

ekgrp and dispo r not there in mara tabel yaar

Read only

Former Member
0 Likes
677

hi tell me correctly what are the fields u want to select

from which table

and also the internal table u want to be fill

Read only

0 Likes
677

only one field from mara table and conditions based on those four fields and stores in internal table having only one field matnr-mara

Read only

dev_parbutteea
Active Contributor
0 Likes
677

Hi,

select matnr mtart matkl

from mara

where mtart in s_matty

and matkl in s_matgrp

into it_mara.

Regards.

Read only

Former Member
0 Likes
677

hi

good

you can join these three tables using a common field presnt in these tables,it is confusing that you have mentioned that your internal table should be only matnr in the table mara.

Refer to join statement and write your code to join the three table.

thanks

mrutyun^