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

JOIN

Former Member
0 Likes
584

Hi all

In d below SELECT statement am comparing MATNR of S012 and MARA i also want to compare the P_WERKS with the WERKS of S012.Please Help

Vijay

PARAMETERS:p_werks type S026-WERKS OBLIGATORY.

SELECT *

INTO CORRESPONDING FIELDS OF TABLE IT_S012

FROM ( S012 AS E

INNER JOIN MARA AS F ON FMATNR = EMATNR ) .

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
564

If you want to use a link on WERKS you cannot use table MARA but table MARC (primary keys : MATNR, WERKS)

Regards

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
565

If you want to use a link on WERKS you cannot use table MARA but table MARC (primary keys : MATNR, WERKS)

Regards

Read only

Former Member
0 Likes
564

select * into corresponding fields of table IT_S012 from s012 as e inner join mara as f on ematnr = fmatnr where e~werks = p_werks.

Read only

Former Member
0 Likes
564

h