on 04-16-2009 5:39 PM
All,
I have an internal table IT_TAB, which contains the list of customers i am interested in.
I need to delete any records in my SOURCE_PACKAGE if the customer number is not present in IT_TAB.
Please suggest how to do this in 7.0. It should be something like this:
DELETE SOURCE_PACKAGE
WHERE CUSTOMER NOT IN IT_TAB.
thanks
Raj
Hi Raj,
data :w_ind type i. "add this
LOOP AT source_package ASSIGNING <source_fields>.
w_ind = sy-tabix. "add this
READ TABLE it_tab
INTO wa_tab
WITH KEY
KEYXXXX = <source_fields>-XXXXXXXXX.
IF sy-subrc = 0.
DELETE source_package index w_ind. "Add this
ENDIF.
ENDLOOP.
Regards,
Prabhduas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
something like this:
LOOP AT source_package ASSIGNING <source_fields>.
READ TABLE it_tab
INTO wa_tab
WITH KEY
KEYXXXX = <source_fields>-XXXXXXXXX.
IF sy-subrc = 0.
DELETE source_package.
ENDIF.
ENDLOOP.
Best regards,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.