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

coading

Former Member
0 Likes
751

hi,

where we can exactly use 'into corresponding fields key word',what is main use of this?

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
725

INTO CORRSEPONING will serch for the field names in the internal table, and will insert.

so evn if the internal structure is in differnt order,it will work. but it will rslt in low performace.

6 REPLIES 6
Read only

Former Member
0 Likes
726

INTO CORRSEPONING will serch for the field names in the internal table, and will insert.

so evn if the internal structure is in differnt order,it will work. but it will rslt in low performace.

Read only

Former Member
0 Likes
725

if the order of the fields in sending structure different to the order of the fields in receiving structre then by using into corresponding-fields we can pass the values into same field names irrespective of their position.

Read only

Former Member
0 Likes
725

Hi,

Into corresponding fields need to be used when two internal tables structures are diff, so that only those field names which are same data will me moved one table to the other. And also done use into corresponding fields in the select statements because it will effect performance.

Rgds,

Hemanth.

Read only

Former Member
0 Likes
725

To copy the results of the SELECT statement into the Internal Table fields having the same name as the table field name

Regards

Wenceslaus

Read only

Former Member
0 Likes
725

Hi Raju,

Check this and the sysntax is provided in the help.

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39eb358411d1829f0000e829fbfe/content.htm

" To read data into one, use the following in the INTO clause:

SELECT ... INTO [CORRESPONDING FIELDS OF] wa ...

The target area wa must be at least as large as the line to be read into it. When you read the data into wa, its previous contents are overwritten. However, the components of wa that are not affected by the SELECTstatement retain their previous values.

If the work area is structured, you can use the CORRESPONDING FIELDS addition. This transfers only the contents of fields whose names are identical in the database table and the work area. This includes any alias column names that you specified in the selection. "

Hopefully this shd help.

Please provide points for helpful answers

Br,

Sri

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
725

Hi,

If you h ave an internal table with 10 fields but u want to populate only 5 of them , u can use INTO CORRESPONDING FIELDS ... it will only populate the matching fields.