Application Development 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: 

select query

Former Member
0 Kudos

pl explain the following query:

SELECT * APPENDING CORRESPONDING FIELDS OF TABLE

bomtable FROM mara

INNER JOIN makt ON maktmatnr = maramatnr

WHERE mara~matkl = GROUP.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jani,

1.APPENDING denotes that it will add records to the internal table rather than overwriting.

U can fetch the same result without this only for few fields.

2. CORRESPONDING denotes that the internal table u used will have the columns other than the main tables u used.This CORRESPONDING matches the fields by itself.Otherwise there will be a mismatch in the fields.

3.Here join is used to join 2 tables MARA and MAKT and will retrieve the fields based on the where condition.

Reward if helpful.

Thanks and Regards

Deepthi K.

5 REPLIES 5

Former Member
0 Kudos

hi

good

i hope this join statement is use to join the table mara and makt with the key field matnr and putting all the data into an internal table bomtable.

thanks

mrutyun^

Former Member
0 Kudos

hi ,

What is there to explain u r selecting the data from 2tables and sending the values to bomtable if u have not used appending also u will get the same result.

Former Member
0 Kudos

u r retrieving the information from mara and makt and

u r appending the records to the table bomtable

based on the where condition.

Madhavi

Former Member
0 Kudos

Jani,

1. Here using table joins MARA. MAKT,

2.APPENDING is denoting that : When ever this select

statemnt executes it will add the records to internal

table "bomtable" instead of over writing.

3. CORRESPONDING : is using because internal table is having the columns other than the columns in MARA, MAKT tables.

Don't forget to reward if useful

Former Member
0 Kudos

Hi Jani,

1.APPENDING denotes that it will add records to the internal table rather than overwriting.

U can fetch the same result without this only for few fields.

2. CORRESPONDING denotes that the internal table u used will have the columns other than the main tables u used.This CORRESPONDING matches the fields by itself.Otherwise there will be a mismatch in the fields.

3.Here join is used to join 2 tables MARA and MAKT and will retrieve the fields based on the where condition.

Reward if helpful.

Thanks and Regards

Deepthi K.