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

sap query

Former Member
0 Likes
550

hi,

can some pl send me the steps create a query. How the joins are used. some info.

appreciate your help.

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
0 Likes
527

Hi Sadhu,

Refer this code :

SELECT amatnr amEINS AMTART DMAKTx bwerks clgort c~labst INTO CORRESPONDING FIELDS OF TABLE IT_MATERIAL

FROM mara AS a

INNER JOIN MAKT AS D on amatnr = dmatnr

inner join marc AS b

ON amatnr = bmatnr

inner join MARD as c

ON BMATNR = CMATNR AND BWERKS = CWERKS

where AMATNR IN S_MATNR and bwerks in s_werks.

Regards points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
527

1) create a infoset in sq02, where the required tables will be joined with keys.then generate the infoset.

2) assign this infoset to usergroup.

3)create a query in sq01 by selecting the infoset, select the fields to be dispalyed

in the report, as well as the selection screen fields.

Read only

Former Member
Read only

0 Likes
527

sailaja , excellent work