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 Question

Former Member
0 Likes
362

Hello,

I need to select all the matnrs from MARC and I need to check whether these materials exist in A383. If not then I shud display this material. How do I do this.

Please Help.

Thanks

Viky

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
341

HI

SELECT MARCMATNR INTO TABLE ITAB FROM MARC INNER JOIN A383 ON MARCMATNR NE A383~MATNR.

Regards

SAB

2 REPLIES 2
Read only

Former Member
0 Likes
342

HI

SELECT MARCMATNR INTO TABLE ITAB FROM MARC INNER JOIN A383 ON MARCMATNR NE A383~MATNR.

Regards

SAB

Read only

Former Member
0 Likes
341

Hi Vicky,

Try this.....

data: tab1 like a383 occurs 0 with header line.

data: tab2 like marc occurs 0 with header line.

ranges: r_matnr for mara-matnr.

select * from a383 into table tab1.

loop at tab1.

r_matnr-sign = 'I'.

r_matnr-option = 'NE'.

r_matnr-low = tab1-matnr.

append r_matnr.

clear: r_matnr.

endloop.

select * from marc into table tab2

where matnr in r_matnr.

loop at tab2.

  • << display all the records.

endloop.

Pavan Kothapalli