‎2010 Jan 13 6:32 PM
Hello everyone,
I have my internal table and want to delete the rows with more less than 5 characters. I do not want to use a loop because of perfomance issues, rather I am trying to use the DELETE statement, but I am not being successful.
DATA: it_bseg type STANDARD TABLE OF bseg,
wa_bseg type bseg.
SELECT * FROM bseg
INTO CORRESPONDING FIELDS OF TABLE it_bseg
WHERE bukrs EQ pa_bukrs and
belnr IN so_belnr and
gjahr EQ pa_gjahr.
delete it_bseg WHERE strlen(dbmtr) > pa_min_value.
Thank you in advance
‎2010 Jan 13 6:47 PM
Many reasons:
instead of dbmtr, try DMBTR;
But strlen only works on characters, not currency amounts.
You probably want to use:
delete it_bseg WHERE DMBTR > pa_min_value.But it wouldn't be a performance problem anyway.
Rob
I should have added that it's really a mug's game. ABAP will have to do an internal loop anyway to read each row and decide whether or not to delete it.
Edited by: Rob Burbank on Jan 13, 2010 2:05 PM
‎2010 Jan 13 6:47 PM
Many reasons:
instead of dbmtr, try DMBTR;
But strlen only works on characters, not currency amounts.
You probably want to use:
delete it_bseg WHERE DMBTR > pa_min_value.But it wouldn't be a performance problem anyway.
Rob
I should have added that it's really a mug's game. ABAP will have to do an internal loop anyway to read each row and decide whether or not to delete it.
Edited by: Rob Burbank on Jan 13, 2010 2:05 PM
‎2010 Jan 13 6:56 PM
Sorry...Duplicate post
Edited by: PRITAM MOHANTY on Jan 13, 2010 10:57 AM