on 06-07-2007 11:01 PM
Hi Gurus,
I have limited knowledge with ABAP.
i need to write a code at update rules start routine level.
my code is as follows .
LOOP AT DATA_PACKAGE.
case DATA_PACKAGE-COSTCENTER.
when'204'.
Delete : DATA_PACKAGE where COSTELMNT GE 611000 and COSTELMNT LE
613999.
WHEN '205'.
Delete : DATA_PACKAGE where COSTELMNT GE 611000 and COSTELMNT LE
613999.
when'206'.
Delete : DATA_PACKAGE where COSTELMNT GE 611000 and COSTELMNT LE
613999.
WHEN '217'.
Delete : DATA_PACKAGE where COSTELMNT GE 611000 and COSTELMNT LE
613999.
endcase.
endloop.
i am not sure i went wrong. i debugged the code at update rules using simulate update . when costcenter = 204 then it should perform the delete statement. but it's comming out. can any one give me que on this
Thanks
Roopa
You don't need a loop. Just use one delete statement similar to the following.
Delete DATA_PACKAGE where COSTELMNT GE '611000' and COSTELMNT LE
'613999' and ( costcenter = '204' or costcenter = '206' or ... ).
...
Message was edited by:
Rick Chau
Message was edited by:
Rick Chau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.