2008 Jul 07 3:06 PM
Hi,
i use for all entries and i have problem.
i do this select for 50 cost centers and
when i use for all entries commend i get in act 3 wrong fields(i check in se11 for all cost centers in let table )
But when i use Range table for this 50 CC i get it O.K.
what it can be ?
CLEAR : act.REFRESH: act.
SELECT (sel)
FROM /bic/0cz
INTO TABLE act
FOR ALL ENTRIES IN let
WHERE dim0costcenter = let-dim0costcenter
AND dim0calquarter = year_q.
CLEAR : act.REFRESH: act.
SELECT (sel)
FROM /bic/0cz
INTO TABLE act
WHERE dim0costcenter IN ty_range
AND dim0calquarter = year_q.Regards
2008 Jul 07 3:09 PM
Check if U have all the key fields in where condition ..
2008 Jul 07 3:09 PM
2008 Jul 07 3:10 PM
hi
i don't understand :key field of what?
FOR ALL ENTRIES IN let
WHERE dim0costcenter = let-dim0costcenter
Regards
2008 Jul 07 3:27 PM
2008 Jul 07 3:51 PM
Hi,
Two reasons.
First thing r u checking below condition.
CHECK NOT let[] IS INITIAL. "If not it will selet all the records if let[] is initial.
SELECT (sel)
FROM /bic/0cz
INTO TABLE act
FOR ALL ENTRIES IN let
WHERE dim0costcenter = let-dim0costcenter
AND dim0calquarter = year_q.
Second This select will automatically deletes duplicate records based on let-dim0costcenter. This is property of FOR ALL ENTRIES and we can't change it.
Check these things and get back.
Thanks,
Vinod
Edited by: Vinod Reddy Vemuru on Jul 7, 2008 8:24 PM
2008 Jul 07 4:01 PM
Hi Vinod,
i do that, the table let is with 50 CC and i remove duplicates .
i do it in BI7 system maybe this is the problem ,i use for all entries many times but i never face this problem.
Regards
2008 Jul 08 5:37 AM
Hi Ricardo,
I was talking about Duplicates deletion in driven table(i.e the table from where u r selecting data).When we use For all entries this select will automatically deletes duplicates based on the driver table keys in where clause(One field in ur case).
eg: for the key mentioned in where clause(Consider only driver table fields in where clause) if u have 2 entries u will get only one entry in to internal table. that is what i am trying to say.
Driver table duplicates deletion is just to gain performance. Nothing else.
Hope it is clear.
Thanks,
Vinod.
2008 Jul 08 5:47 AM
Hi,
whenever if ur using fro all entries in your program u have to use key fields in where condition. and
if not 1sttable[] is intial.
select.....
endif.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |