Give the syntax of Inner,outer Join?"

Answer Posted / ravi ranjan

*&-----------------------------------*
*& Report ZSELECT_STA *
*& *
*&-----------------------------------*
*& Author : Ravi Ranajn upadhyay *
*& *
*&-----------------------------------*

REPORT zselect_sta.
TABLES: mara.
TYPES:BEGIN OF it_mara,
ernam TYPE mara-ernam,
matnr TYPE mara-matnr,
meins TYPE mara-meins,
burks TYPE ekpo-bukrs,
werks TYPE ekpo-werks,
END OF it_mara.

DATA:its_mara TYPE TABLE OF it_mara,
wa_mara TYPE it_mara.

SELECT m~matnr m~ernam m~meins k~werks k~bukrs
INTO CORRESPONDING FIELDS OF TABLE its_mara
FROM mara AS m inner JOIN ekpo AS k
ON m~matnr = k~matnr.


LOOP AT its_mara INTO wa_mara.
WRITE: / wa_mara-ernam,
wa_mara-matnr,
wa_mara-meins,
wa_mara-burks,
wa_mara-werks.
ENDLOOP.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How collect statement is different from append?

533


While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc

762


Does the table can have multiple foreign keys?

590


What are the system table used in abap?

585


What is the difference between Classic badi and Kernal badi ?

1787






What are the various events associated with screen programming?

689


What are the different types of parameters?

567


Explain what are the problems in processing batch input sessions?

533


wat is the default file name of BAPI trace?

1816


What are client dependant objects in abap/sap?

672


What is the structure of the bdc table? : abap bdc

726


Some Realtime Examples on Exits .

1722


What are authorization objects and what statement is used to perform an authorization check in an abap program?

561


What are the field and chain statements?

579


What are extracts?

566