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
What is web dynpro for abap?
What are the differences between transparent tables, pooled tables & cluster tables? : abap data dictionary
How do you retrieve the data for repetitive structures ? : abap hr
When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization
What are the events in screen programming?
What is the company code? : sap abap hr
How do you set up background jobs in sap?
What is PS structure
Did you use buffering?
Can we set page headers to details lists?
Explain about sap fico testing and the tools used? : abap bdc
What is a table cluster? : abap data dictionary
Define spool request?
How to select valid lines for secondary list?
Update types in Call transaction method. What is the difference?