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

How to compate two text fields

Former Member
0 Likes
512

hi all,

i have two table having address of customer and contact person

how can i compare them to find out both are having same address

how can i do this.

how can i compare two non text fields.

thanks

SAI

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
444

loop at itab1.

read table itab2 with key name = itab1-name.

if sy-subrc = 0.

write : 'name is same'.

endif.

endloop.

Regards

- Gopi

3 REPLIES 3
Read only

gopi_narendra
Active Contributor
0 Likes
445

loop at itab1.

read table itab2 with key name = itab1-name.

if sy-subrc = 0.

write : 'name is same'.

endif.

endloop.

Regards

- Gopi

Read only

Former Member
0 Likes
444

U can simply compare two fields like

LOOP FIRST TABLE..

READ TABLE2 AND COMPARE ..

Read only

Former Member
0 Likes
444

Hi,

If the contact person and Customer name is same then the comparison is simple as other have put it.

For every customer there will be contacy person, using this read the contact person details from the second table. Then you can compare individual fields.

Thanks...