‎2006 Jul 25 12:48 PM
Hi,
I have Internal Table like
Data : Begin of test occurs 0,
vbeln like vbrp-vbeln,
posnr like vbrp-posnr,
bzirk like vbrp-bzirk,
end of test.
If suppose in my internal table with vbeln = 90800100, 10 line items its having.
I want to delete all the entries in the internal table which is having Vbeln = 90800100.
How can i do this what is the exact statement I can use for this.
Thanks & Regards
Venkat
‎2006 Jul 25 12:50 PM
Hi venkata,
1. simple
2. DELETE TEST WHERE VBELN = '908001000'.
regards,
amit m.
‎2006 Jul 25 12:51 PM
HI,
<b>DELETE test WHERE vbeln = '90800100'.</b>
REgards,
Wasim Ahmed
‎2006 Jul 25 12:52 PM
To delete more than one line using a condition, use the following statement:
DELETE <itab> WHERE <cond>.
‎2006 Jul 25 12:52 PM
Hi,
You can do like ths.
DELETE test WHERE vbeln = '90800100'
Regards,
Raghav
‎2006 Jul 25 12:52 PM
sort itab by vbeln
delete itab where vbeln eq '90800100'.
regards
Prabhu
‎2006 Jul 25 12:52 PM
‎2006 Jul 25 12:52 PM
Hi Venkata,
Use <b>DELETE</b> statement to delete entries in internal table.
Try as follows::
<b>DELETE TEST WHERE VBELN = '90800100'.</b>
To know more about DELETE statment check the following link:
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/delete_i.htm
Thanks,
Vinay
Message was edited by: Vinaykumar G
‎2006 Jul 25 12:54 PM
Hi Venkata,
Use
V_vbeln = '90800100'.
Delete test where vbeln = v_vbeln.
Hope it would help you.
Cheers,
Prashanth
‎2006 Jul 25 1:02 PM
Hi
use the DELETE statement
DELETE test WHERE VBELN = 90800100
Regards
Beena
‎2006 Jul 25 1:22 PM
Hi,
The problem is not very critical. Every one has given you the correct solution .
Just after getting all the records in your "test" internal table just delete the records where the VBELN matches the data. If still the problem is not solved I think you better clarify the problem in detail.
‎2006 Jul 25 1:29 PM
Hi,
I don't think the problem is very critical.Every one has given you the correct solution that is first get the data in your internal table and then delete the records where VBELN matches with the data.If still the problem is not solved then I think you better clarify it in detail.
Regs
Somnath