Skip to Content
0
Former Member
Aug 04, 2005 at 02:24 PM

help in the abap code

91 Views

hi folks,

I need your help here....

Here is my code....

loop at cdata into zcdata where knumv = bodyitabtotal-knumv.

zzconditionnumber = bodyitabtotal-knumv.

read table cdata into zcdata

with key knumv = zzconditionnumber

kschl = 'ZAGR'.

if sy-subrc = 0.

CTEXT3 = 'AGREED PRICE'.

MOVE zcdata-kbetr to w_accitab-zrate.

MOVE zcdata-kwert to w_accitab-zamount.

???????

else.

case zcdata-kschl.

.

.

.

.

when others.

continue.

endcase.

MOVE CTEXT3 to w_accitab-zdescription.

CLEAR CTEXT3.

append w_accitab to accitab.

clear accitab.

clear w_accitab.

endif.

endloop.

endloop.

My question is when it finds a record for 'ZAGR' I read the data into the work area and has to exit the case.... endcase statement and process the

statement

MOVE CTEXT3 ....

How can I do it? How can I get out of the case... endcase statement and not the loop.

Thanks

Santhosh