Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

How to search in Internal table for a value and flag

$
0
0

Hi ABAP gurus,

 

 

we have accounts of with different contract types like RS - residential, CI - commercial, LT - leased.

 

 

My requirement is,

 

using 1 account i put all the entries in an internal table along with contract type

 

so 1 account can have any number of lines ie.100 or 200 and possibly each line with a different contract type

 

like this

 

 

Account             contract type

 

1234                   RS

 

1234                   LT

 

1234                   CI

 

 

I want to be able to look at all the records in the internal table be it 100 or 200 or more and if at all even 1 entry contains something other than LT , I want to populate flag as X. so for example if an account has 100 lines and all 100 have LT, then will not populate the flag. however out of the 100 lines. if 99 lines have LT and EVEN if a single line has RS or CI.

 

this is different from a typical scenario because, I have a higher level DSO in which I have only accounts of contract types with LT. but an account can have both LT and non LT contracts. i want to flag accounts which have contracts of non - LT types in addition to LT . please note these accounts have been filtered and already correspond to LT. i am interested in reading the lower level DSO and seeing if they have any contracts in addition to just LTs and flag it

 

please let me know your thoughts on how I can achieve this.

 

thank u very much

 


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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