2006 May 29 6:50 AM
I need to join two tables BKPF and BSEG and get some fields .. but my issue is that BSEG is a cluster table and it doesnt allow me to join.
Please give me a way out.
thanks in advance
arshad
I need to join two tables BKPF and BSEG and get some fields .. but my issue is that BSEG is a cluster table and it doesnt allow me to join.
Please give me a way out.
thanks in advance
arshad
2006 May 29 6:55 AM
Hi arshad,
1. FOR ALL ENTRIES.
2. It is recommended that
first select entries from only one table
(say, BKPF),
3. After that, using the internal table,
FOR ALL ENTRIES, and BSEG table,
select the relevant entries from BSEG table.
4. Performance wise, this will be very fast.
regards,
amit m.
2006 May 29 7:12 AM
you can't directly join on BSEG but depending on which data you want to access you might be able to use an alternative table. eg, BSID or BSAD for open or cleared customer items or BSIK/BSAK for open or cleared vendor items.
2006 May 29 7:26 AM
HI
GOOD
No,it is not possile to join cluster table like BSEG
I would suggest you to do a selection from BKPF ( into table t_bkpf ) and then do the second selection on BSEG using "for all entries in t_bkpf" .
THANKS
MRUTYUN
2006 May 29 7:50 AM
hi,
use bsis/bsas, bsik/bsak, bsid/bsad
-> here're fields of bkpf and bseg for different kinds of accounts
A.