Skip to Content
0
Former Member
Aug 03, 2005 at 04:01 PM

help in the abap code

33 Views

hi folks,

I am checking for various condition types through this code for various orders. Each order has a different set of condition records.

My requirement: when a order has a condition record for the condition type 'ZAGR' (AGREED PRICE) it should execute that block and ignore all the other condition types for that record and directly go to 'ZBET'to fetch the final amount

How to incorporate that piece code here?

The code goes like this...

loop at cdata into zcdata where

knumv = bodyitabtotal-knumv.

case zcdata-kschl.

when 'ZRAT' OR 'ZFLE' OR 'ZRCR' OR 'ZFIX'.

.

.

.

when 'ZAGR'.

.

.

.

when 'ZONT'.

concatenate zzkeyword zpofield

into CTEXT3

separated by space

MOVE zcdata-kbetr to w_accitab-zrate.

MOVE zcdata-kwert to w_accitab-zsubtotal.

.

.

.

when 'ZSMG'.

.

.

.

when 'ZBET'.

if zcdata-kbetr = ' ' AND zcdata-kwert = ' '.

MOVE ' ' TO w_accitab-zamount.

ELSE.

MOVE zcdata-kwert to w_accitab-zamount.

ENDIF.

when others.

continue.

endcase.

Thanks

Santhosh