------------------
    	select top 20 a."$rowid$" as rowids,
    		a.vbeln,a.mandt,a.bukrs,a.kunnr,a.umsks,a.umskz,a.augdt as augdts,a.augbl,a.zuonr,a.gjahr,a.belnr,a.buzei,a.buzei as buzeis,
    		a.blart,a.waers,a.wrbtr,a.shkzg,a.budat as budats,a.zfbdt as zfbdts,a.zterm
    	from sapabap1.bsid a
		where a."$rowid$" > '1' and a.mandt = '800'
		order by a."$rowid$"
    </select>
    <select id="selectBsadNew" parameterType="Bsad" resultType="Bsad">
		select top 20 a."$rowid$" as rowids,
    		a.vbeln,a.mandt,a.bukrs,a.kunnr,a.umsks,a.umskz,a.augdt as augdts,a.augbl,a.zuonr,a.gjahr,a.belnr,a.buzei,a.buzei as buzeis,
    		a.blart,a.waers,a.wrbtr,a.shkzg,a.budat as budats,a.zfbdt as zfbdts,a.zterm
    	from sapabap1.bsad a
		where a."$rowid$" > '1' and a.mandt = '800'
		order by a."$rowid$"
		
		
		
    	select 
    		a.vbeln,a.mandt,a.bukrs,a.kunnr,a.umsks,a.umskz,a.augdt as augdts,a.augbl,a.zuonr,a.gjahr,a.belnr,a.buzei,a.buzei as buzeis,
   		a.blart,a.waers,a.wrbtr,a.shkzg,a.budat as budats,a.zfbdt as zfbdts,a.zterm
    	from sapabap1.Bsid a limit 10
    	where a.mandt = #{mandt}
			and a.bukrs = #{bukrs} and a.kunnr = #{kunnr} and a.umsks = #{umsks} and a.umskz = #{umskz} 
			and a.augdt = #{augdts} and a.augbl = #{augbl} and a.zuonr = #{zuonr} and a.gjahr = #{gjahr} 
			and a.belnr = #{belnr} and a.buzei = #{buzeis}
    </select>
    <select id="selectBsadById" parameterType="Bsad" resultType="Bsad">
    	select 
    		a.vbeln,a.mandt,a.bukrs,a.kunnr,a.umsks,a.umskz,a.augdt as augdts,a.augbl,a.zuonr,a.gjahr,a.belnr,a.buzei,a.buzei as buzeis,
   		a.blart,a.waers,a.wrbtr,a.shkzg,a.budat as budats,a.zfbdt as zfbdts,a.zterm
    	from sapabap1.Bsad a limit 10
    	where a.mandt = #{mandt}
			and a.bukrs = #{bukrs} and a.kunnr = #{kunnr} and a.umsks = #{umsks} and a.umskz = #{umskz} 
			and a.augdt = #{augdts} and a.augbl = #{augbl} and a.zuonr = #{zuonr} and a.gjahr = #{gjahr} 
			and a.belnr = #{belnr} and a.buzei = #{buzeis}
			
			