Hello All,
How can we implement below query logic in bods.
ifthenelse( sql( 'ktl_ds_kd2','select count(*) from cgc_rar.pire_seg_comp where mandt=\''|| Query.MANDT ||
'\' and Rems_guid=\'' || Query.REMS_GUID || '\' and pire_seg_id in (select pire_seg_id from cgc_rar.pire_seg where
seg_type like \'Bottles%\')' ) <> 0, $Dateinvarchar ,Query.VALID_FROM).