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

how to apply cursor to achieve this:

$
0
0

Hi!

 

I need only those belnr gjahr pair (since they form composite key) from BSEG which has KTOSL = WRX more than once.

 

Example:

belnr = 11111; gjahr = 2013; ktosl = 'WRX'

belnr = 11111; gjahr = 2013; ktosl = 'KBS'

belnr = 11111; gjahr = 2013; ktosl = 'WRX'


belnr = 222222 ; gjahr = 2013; ktosl = 'EBS'

belnr = 222222 ; gjahr = 2013; ktosl = 'WRX'

belnr = 222222 ; gjahr = 2012; ktosl = 'WRX'


I need only those pair of  "belnr, gjahr" which has more than 1 record for transaction type = 'WRX'

so final out put should be  - 11111         2013

 

PS. i need to do this without internal table.

 

 

Thankyou much,

 

KS


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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