on 01-11-2011 11:41 AM
Hi to all,
Please can any one tell me logic to right a START ROUTINE at TRANSFORMATION to filter record.
example : i need to filter record based on field HKONT at START ROUTINE.
data: wa_source like line of SOURCE_PACKAGE.
loop at SOURCE_PACKAGE into wa_source.
if wa_source-HKONT = '00003417 ' OR wa_source-HKONT = '00003417'
OR wa_source-HKONT = '00003418'.
Modify SOURCE_PACKAGE from wa_source.
else.
Delete SOURCE_PACKAGE index sy-tabix .
endif.
endloop.
But i am not getting proper result .
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Jan 11, 2011 12:42 PM
You want records to be deleted only or to be modified also??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why don't you use a filter in the DTP? Unless there is some other context, it seems strange to do this in a transformation routine when the functionality is well supported in the normal DTP filter.
Ethan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use following code:
DELETE SOURCE_PACKAGE where HKONT = '00003417 ' OR HKONT = '00003417' OR HKONT = '00003418'.
Regards,
Geetanjali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.