cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve BITWISE AND operation in SAP BODS

kalyani_kolli
Explorer
0 Kudos

Hi All,

case when (columnname & power(2,(24-1))= power(2,(24-1))) then 'Y' else 'N' end

I tried the above requirement by using custom function in BODS but it takes more time to fetch the records.

Custom function:

$Result_Ind= SQL('Data_store' ,'Select case when ($ColumnValue) & power(2,(24-1))= power(2,(24-1))) then \'Y\' else \'N\' end');

return $Result_Ind;

So could you please suggest me how to do it with less time.

Appreciate quick response.

Kalyani

kalyani_kolli
Explorer
0 Kudos

Can any one please respond..

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187605
Active Contributor
0 Kudos

Including a call to the sql function in a custom function generates an additional round trip to the database for every record processed in the Query transform. This is bad programming practice. Obvious that processing will be (much) slower.

kalyani_kolli
Explorer
0 Kudos

Can you please suggest the other solution for this problem..

former_member187605
Active Contributor
0 Kudos

Implement the logic in a custom function (without calls to the underlying database).