cancel
Showing results for 
Search instead for 
Did you mean: 

Start Routine

Former Member
0 Kudos

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

View Entire Topic
Former Member
0 Kudos

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