what are the Joins used for internal Table?
Answer Posted / viswanath
If you want to retry the data from more then one table
connected with common key , we will go for joins (Inner
joines and outer joins).
1. First we will create an internal table wih fields.
example.
tables: mara.
data:s_matnr for mara-matnr.
data:Begin of itab occurs 0,
MATNR TYPE MATNR, "FROM MARA TABLE
ERSDA TYPE ERSDA, "FROM MARA TABLE
MAKTX TYPE MAKTX, "FROM MAKT TABLE
end of itab.
2. write select statment.
select a~matnr
a~ersda
b~maktx
from makt inner join mara
on a~matnr = b~matnr
into table itab where a~matnr in s_matnr.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
foreign key enforcement?
What is a projection view? : abap data dictionary
What is the use of lock objects?
What is human resource information systems (chris)? : sap abap hr
Can you show multiple alvs on a single screen?
Select up to 1 row and select single difference ?
What are plan versions used for? : sap abap hr
How we format the data before writing a statement in the report?
What are ranges?
what precautions or prerequisites do you follow to update a record into database table and how
hi frends this is bala raju from pune.i want to know diff between 4.7ee and ecc 5.0.if possible give me brief explanation.this question was asked in EDS(tele interview) in pune bye.
Interactive Report that list purchase order details of a vendor. When the user double clicks on material number it shows detail list with fields matkl, meins, brgew, ntgew, gewei.The selection screen consist of sales organisation, distribution channel and material number. plz mention the detail coding Tahnks, Rahul
How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization
Events that can be used in both the classical and interactive reports
What are the prerequisites for creating foreign key relationship?