and loc_no like '%' + #{loc_no} + '%' and matnr like '%' + #{matnr} + '%' and batch like '%' + #{batch} + '%' and maktx like '%' + #{maktx} + '%' and specs like '%' + #{specs} + '%' and model like '%' + #{model} + '%' = #{begin_date} ]]> and loc_no like '%' + #{loc_no} + '%' and matnr like '%' + #{matnr} + '%' and (maktx like '%' + #{maktx} + '%' or matnr like '%' + #{maktx} + '%' or lgnum like '%' + #{maktx} + '%' or tbnum like '%' + #{maktx} + '%' or tbpos like '%' + #{maktx} + '%' or zmatid like '%' + #{maktx} + '%' or maktx like '%' + #{maktx} + '%' or werks like '%' + #{maktx} + '%' or anfme like '%' + #{maktx} + '%' or altme like '%' + #{maktx} + '%' or zpallet like '%' + #{maktx} + '%' or bname like '%' + #{maktx} + '%' ) = #{begin_date} ]]>