Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Inner join condition : zeroes in table fields to truncate and then match.

$
0
0

Hell Everyone,

 

I have a select statement.

 

Select * from Table1 Inner join Table2 on table1-field1 = table2-field2

in corresponding field of itab.

 

Here table1- field1 contains values like : 00010,00020

Corresponding values in table2-field2 is : 000010, 000020.

 

My join condition is failing because of these extra zeroes.

The data type of table1-field1  and table2-field2 is different.

 

Is there any way that I can truncate these zeroes and then compare.

Kindly give your inputs

 

Thanks & Regards,

Rohit.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>